#include <PickModeMove.h>
Inheritance diagram for PickModeMove:
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 |
Definition at line 29 of file PickModeMove.h.
|
Definition at line 46 of file PickModeMove.h. |
|
Reimplemented from PickMode. Definition at line 288 of file PickModeMove.C. |
|
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. |
|
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. |
|
Implemented in PickModeMoveAtom. Referenced by pick_molecule_move. |
|
subclasses figure out which atoms are to be translated or rotated.
Implemented in PickModeMoveAtom. Referenced by pick_molecule_move. |