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

TugTool Class Reference

A tool for interacting with MD simulations. More...

#include <P_TugTool.h>

Inheritance diagram for TugTool:

Tool UIObject List of all members.

Public Methods

 TugTool (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

A tool for interacting with MD simulations.

This is a tool for use with running MD simulations. It allows the user to grab atoms and pull them around, by sending forces to UIVR.

Definition at line 27 of file P_TugTool.h.


Constructor & Destructor Documentation

TugTool::TugTool int    id,
VMDApp  ,
Displayable  
 

Definition at line 27 of file P_TugTool.C.


Member Function Documentation

void TugTool::do_event   [virtual]
 

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

Reimplemented from Tool.

Definition at line 35 of file P_TugTool.C.

References Tool::dtool, Tool::forceoff, Tool::forcescale, Tool::getTargetScale, Tool::is_targeted, Tool::let_go, Tool::position, Displayable::scale, start_tug, Tool::target, TARGET_TUG, Tool::tool_location_update, vec_add, vec_scale, and vec_sub.

virtual int TugTool::isgrabbing   [inline, virtual]
 

True iff the tool is grabbing something.

Reimplemented from Tool.

Definition at line 31 of file P_TugTool.h.

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

Reimplemented from Tool.

Definition at line 33 of file P_TugTool.h.

References Tool::setspringscale.

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

Definition at line 40 of file P_TugTool.h.

Referenced by do_event.

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

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

Implements Tool.

Definition at line 38 of file P_TugTool.h.


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