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

PinchTool Class Reference

Tool subclass implementing a function similar to TugTool except that the force is only applied in the direction the tool is oriented. More...

#include <P_PinchTool.h>

Inheritance diagram for PinchTool:

Tool UIObject List of all members.

Public Methods

 PinchTool (int id, VMDApp *, Displayable *)
virtual void do_event ()
 Subclasses should override this method to perform tool-specific actions every display loop. More...

virtual int isgrabbing ()
 True iff the tool is grabbing something. More...

virtual void setspringscale (float sc)
const char * type_name () const
 return the name of this tool. Must be unique to all Tool subclasses! More...


Protected Methods

virtual void start_tug ()

Detailed Description

Tool subclass implementing a function similar to TugTool except that the force is only applied in the direction the tool is oriented.

Definition at line 16 of file P_PinchTool.h.


Constructor & Destructor Documentation

PinchTool::PinchTool int    id,
VMDApp  ,
Displayable  
 

Definition at line 16 of file P_PinchTool.C.


Member Function Documentation

void PinchTool::do_event   [virtual]
 

Subclasses should override this method to perform tool-specific actions every display loop.

Reimplemented from Tool.

Definition at line 24 of file P_PinchTool.C.

References dot_prod, Tool::forceoff, Tool::forcescale, Tool::let_go, Matrix4::multpoint3d, Tool::orientation, Tool::position, Tool::sendforce, Tool::setplaneconstraint, start_tug, Tool::target, TARGET_TUG, Tool::tug, vec_add, vec_scale, and vec_sub.

virtual int PinchTool::isgrabbing   [inline, virtual]
 

True iff the tool is grabbing something.

Reimplemented from Tool.

Definition at line 20 of file P_PinchTool.h.

virtual void PinchTool::setspringscale float    sc [inline, virtual]
 

Reimplemented from Tool.

Definition at line 22 of file P_PinchTool.h.

References Tool::setspringscale.

virtual void PinchTool::start_tug   [inline, protected, virtual]
 

Definition at line 30 of file P_PinchTool.h.

Referenced by do_event.

const char* PinchTool::type_name   const [inline, virtual]
 

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

Implements Tool.

Definition at line 27 of file P_PinchTool.h.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:18 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002