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

GrabTool Class Reference

The grab tool allows users to move molecules around. More...

#include <P_GrabTool.h>

Inheritance diagram for GrabTool:

Tool UIObject List of all members.

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


Detailed Description

The grab tool allows users to move molecules around.

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.


Constructor & Destructor Documentation

GrabTool::GrabTool int    id,
VMDApp  ,
Displayable  
 

Definition at line 27 of file P_GrabTool.C.


Member Function Documentation

void GrabTool::do_event   [virtual]
 

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.

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

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

Implements Tool.

Definition at line 30 of file P_GrabTool.h.


The documentation for this class was generated from the following files:
Generated on Tue Apr 23 04:25:37 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002