#include <P_RotateTool.h>
Inheritance diagram for RotateTool:
Public Methods | |
RotateTool (int id, VMDApp *, Displayable *) | |
virtual void | do_event () |
Subclasses should override this method to perform tool-specific actions every display loop. More... | |
virtual const float * | position () const |
return the position of this tool. More... | |
virtual int | isgrabbing () |
True iff the tool is grabbing something. More... | |
virtual const Matrix4 * | orientation () |
return the orientation of this tool. More... | |
const char * | type_name () const |
return the name of this tool. Must be unique to all Tool subclasses! More... |
Definition at line 33 of file P_RotateTool.h.
|
Definition at line 47 of file P_RotateTool.C. |
|
Subclasses should override this method to perform tool-specific actions every display loop.
Reimplemented from Tool. Definition at line 54 of file P_RotateTool.C. References Tool::addplaneconstraint, Tool::dimension, distance, Tool::forceoff, Tool::isgrabbing, isgrabbing, Tool::let_go, Matrix4::mat, mat, Matrix4::multmatrix, NULL, orientation, Tool::position, Tool::sendforce, Tool::setplaneconstraint, Tool::target, TARGET_GRAB, vec_add, vec_normalize, vec_scale, vec_sub, and Tool::wasgrabbing. |
|
True iff the tool is grabbing something.
Reimplemented from Tool. Definition at line 42 of file P_RotateTool.C. Referenced by do_event. |
|
return the orientation of this tool.
Reimplemented from Tool. Definition at line 172 of file P_RotateTool.C. References Matrix4::multmatrix, and Tool::orientation. Referenced by do_event. |
|
return the position of this tool.
Reimplemented from Tool. Definition at line 166 of file P_RotateTool.C. References Tool::position. |
|
return the name of this tool. Must be unique to all Tool subclasses!
Implements Tool. Definition at line 41 of file P_RotateTool.h. |