Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RotateTool Class Reference

Tool subclass implementing a rotational orientation control with haptic feedback which constrains the position of the pointer to the surface of a sphere while it is being manipulated. More...

#include <P_RotateTool.h>

Inheritance diagram for RotateTool:

Tool UIObject List of all members.

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...


Detailed Description

Tool subclass implementing a rotational orientation control with haptic feedback which constrains the position of the pointer to the surface of a sphere while it is being manipulated.

Definition at line 33 of file P_RotateTool.h.


Constructor & Destructor Documentation

RotateTool::RotateTool (  int    id,
VMDApp *   ,
Displayable *   
) 
 

Definition at line 47 of file P_RotateTool.C.


Member Function Documentation

void RotateTool::do_event (    )  [virtual]
 

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.

int RotateTool::isgrabbing (    )  [virtual]
 

True iff the tool is grabbing something.

Reimplemented from Tool.

Definition at line 42 of file P_RotateTool.C.

Referenced by do_event.

const Matrix4 * RotateTool::orientation (    )  [virtual]
 

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.

const float * RotateTool::position (    )  const [virtual]
 

return the position of this tool.

Reimplemented from Tool.

Definition at line 166 of file P_RotateTool.C.

References Tool::position.

const char* RotateTool::type_name (    )  const [inline, virtual]
 

return the name of this tool. Must be unique to all Tool subclasses!

Implements Tool.

Definition at line 41 of file P_RotateTool.h.


The documentation for this class was generated from the following files:
Generated on Fri Jan 23 01:53:06 2026 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002