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

PickModeForceAtom Class Reference

PickMode subclass to apply a force to a single atom. More...

#include <PickModeForce.h>

Inheritance diagram for PickModeForceAtom:

PickModeForce PickMode List of all members.

Public Methods

 PickModeForceAtom ()
virtual void pick_molecule_start (DrawMolecule *, DisplayDevice *, int btn, int tag, const int *cell, int dim, const float *pos)
 called for start, moving, and end of pick point. Last argument represents scaled [0,1] coordinates for 2-D and transformed position of pointer for 3-D. XXX should be pure virtual; needed for Query pick mode. More...

virtual void pick_molecule_move (DrawMolecule *, DisplayDevice *, int tag, int dim, const float *pos)

Detailed Description

PickMode subclass to apply a force to a single atom.

Definition at line 43 of file PickModeForce.h.


Constructor & Destructor Documentation

PickModeForceAtom::PickModeForceAtom   [inline]
 

Definition at line 45 of file PickModeForce.h.


Member Function Documentation

void PickModeForceAtom::pick_molecule_move DrawMolecule  ,
DisplayDevice  ,
int    tag,
int    dim,
const float *    pos
[virtual]
 

Reimplemented from PickMode.

Definition at line 77 of file PickModeForce.C.

References DrawMolecule::current, FORCE_SCALE, PickModeForce::get_force, PickModeForce::mytag, and Timestep::pos.

void PickModeForceAtom::pick_molecule_start DrawMolecule   m,
DisplayDevice  ,
int    btn,
int    tag,
const int *    cell,
int    dim,
const float *    pos
[virtual]
 

called for start, moving, and end of pick point. Last argument represents scaled [0,1] coordinates for 2-D and transformed position of pointer for 3-D. XXX should be pure virtual; needed for Query pick mode.

Reimplemented from PickMode.

Definition at line 60 of file PickModeForce.C.

References Mouse::B_MIDDLE, Mouse::B_RIGHT, PickModeForce::mytag, and zeroforce.


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