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

SpringTool Class Reference

A tool for connecting atoms with springs. More...

#include <SpringTool.h>

Inheritance diagram for SpringTool:

Tool UIObject List of all members.

Public Methods

 SpringTool (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 connecting atoms with springs.

A SpringTool is just like a TugTool, except that when you release the button, a GeometrySpring is added between the atom you were pulling and the atom you were near

Definition at line 18 of file SpringTool.h.


Constructor & Destructor Documentation

SpringTool::SpringTool int    id,
VMDApp  ,
Displayable  
 

Definition at line 17 of file SpringTool.C.


Member Function Documentation

void SpringTool::do_event   [virtual]
 

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

Reimplemented from Tool.

Definition at line 52 of file SpringTool.C.

References UIObject::app, Tool::dtool, Tool::forceoff, Tool::forcescale, get_nearby_atom, Tool::get_targeted_atom, Tool::getTargetScale, Tool::is_targeted, VMDApp::label_add, Tool::let_go, NULL, Tool::position, Displayable::scale, start_tug, Tool::target, TARGET_TUG, Tool::tool_location_update, vec_add, vec_scale, and vec_sub.

virtual int SpringTool::isgrabbing   [inline, virtual]
 

True iff the tool is grabbing something.

Reimplemented from Tool.

Definition at line 22 of file SpringTool.h.

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

Reimplemented from Tool.

Definition at line 24 of file SpringTool.h.

References Tool::setspringscale.

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

Definition at line 32 of file SpringTool.h.

Referenced by do_event.

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

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

Implements Tool.

Definition at line 29 of file SpringTool.h.


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