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

PickModeMove Class Reference

PickMode subclass for moving atoms (no forces applied). More...

#include <PickModeMove.h>

Inheritance diagram for PickModeMove:

List of all members.

Public Methods

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)
virtual void pick_molecule_end (DrawMolecule *, DisplayDevice *)

Protected Methods

PickModeMove ()
virtual void translate (DrawMolecule *, int tag, const float *)=0
subclasses figure out which atoms are to be translated or rotated. More...

virtual void rotate (DrawMolecule *, int tag, const float *, const Quat &)=0

Detailed Description

PickMode subclass for moving atoms (no forces applied).

Definition at line 29 of file PickModeMove.h.


Constructor & Destructor Documentation

PickModeMove::PickModeMove ( ) [inline, protected]

Definition at line 46 of file PickModeMove.h.


Member Function Documentation

void PickModeMove::pick_molecule_end ( DrawMolecule * ,
) [virtual]

Reimplemented from PickMode.

Definition at line 288 of file PickModeMove.C.

void PickModeMove::pick_molecule_move ( DrawMolecule * ,
int tag,
int dim,
const float * pos
) [virtual]

Reimplemented from PickMode.

Definition at line 112 of file PickModeMove.C.

References DrawMolecule::current, DrawMolecule::force_recalc, Timestep::get_transform_from_cell, Matrix4::inverse, mat, DrawMolItem::MOL_REGEN, Matrix4::multpoint3d, Timestep::pos, rotate, Displayable::rotm, DrawMolItem::SEL_REGEN, DisplayDevice::SHIFT, DisplayDevice::shift_state, Displayable::tm, translate, vec_copy, and vec_sub.

void PickModeMove::pick_molecule_start ( DrawMolecule * m,
int theBtn,
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 71 of file PickModeMove.C.

virtual void PickModeMove::rotate ( DrawMolecule * ,
int tag,
const float * ,
const Quat &
) [protected, pure virtual]

Implemented in PickModeMoveAtom.

Referenced by pick_molecule_move.

virtual void PickModeMove::translate ( DrawMolecule * ,
int tag,
const float *
) [protected, pure virtual]

subclasses figure out which atoms are to be translated or rotated.

Implemented in PickModeMoveAtom.

Referenced by pick_molecule_move.


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

AltStyle によって変換されたページ (->オリジナル) /