#include <P_GrabTool.h>
Inheritance diagram for GrabTool:
Public Methods | |
GrabTool (int id, VMDApp *, Displayable *) | |
virtual void | do_event () |
Subclasses should override this method to perform tool-specific actions every display loop. More... | |
const char * | type_name () const |
return the name of this tool. Must be unique to all Tool subclasses! More... |
The grab tool is the most basic of tools, as evidenced by the minimal amount of code it contains. All it does is allow users to grab molecules and move them around, using the functionality provided by UIVR, and maybe provide some force feedback.
Definition at line 25 of file P_GrabTool.h.
|
Definition at line 27 of file P_GrabTool.C. |
|
Subclasses should override this method to perform tool-specific actions every display loop.
Reimplemented from Tool. Definition at line 32 of file P_GrabTool.C. References Tool::forceoff, Tool::isgrabbing, Matrix4::multpoint3d, Tool::orientation, Tool::position, Tool::sendforce, Tool::setforcefield, Tool::target, TARGET_GRAB, vec_copy, vec_negate, and Tool::wasgrabbing. |
|
return the name of this tool. Must be unique to all Tool subclasses!
Implements Tool. Definition at line 30 of file P_GrabTool.h. |