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

PickModeMolLabel Class Reference

PickMode subclass to add labels to atoms. More...

#include <PickModeMolLabel.h>

Inheritance diagram for PickModeMolLabel:

PickMode PickModeAngles PickModeAtoms PickModeBonds PickModeDihedrals List of all members.

Public Methods

virtual ~PickModeMolLabel (void)
virtual void pick_molecule_start (DrawMolecule *, DisplayDevice *, int, int, const int *cell, int, const float *)
 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, int, const float *)
virtual void pick_molecule_end (DrawMolecule *, DisplayDevice *)
virtual void pick_graphics (int molid, int tag, int btn, DisplayDevice *d)

Protected Methods

 PickModeMolLabel (const char *, int, VMDApp *)
 constructor: name, how many items this object needs, and a VMDApp. More...


Protected Attributes

VMDAppapp

Detailed Description

PickMode subclass to add labels to atoms.

Definition at line 35 of file PickModeMolLabel.h.


Constructor & Destructor Documentation

PickModeMolLabel::PickModeMolLabel const char *   ,
int   ,
VMDApp  
[protected]
 

constructor: name, how many items this object needs, and a VMDApp.

Definition at line 38 of file PickModeMolLabel.C.

References size, and stringdup.

PickModeMolLabel::~PickModeMolLabel void    [virtual]
 

Definition at line 54 of file PickModeMolLabel.C.


Member Function Documentation

void PickModeMolLabel::pick_graphics int    molid,
int    tag,
int    btn,
DisplayDevice   d
[virtual]
 

Reimplemented from PickMode.

Definition at line 121 of file PickModeMolLabel.C.

References app, VMDApp::commandQueue, CommandQueue::runcommand, DisplayDevice::SHIFT, and DisplayDevice::shift_state.

void PickModeMolLabel::pick_molecule_end DrawMolecule  ,
DisplayDevice  
[virtual]
 

Reimplemented from PickMode.

Definition at line 90 of file PickModeMolLabel.C.

References app, BaseMolecule::id, and VMDApp::label_add.

void PickModeMolLabel::pick_molecule_move DrawMolecule  ,
DisplayDevice  ,
int   ,
int   ,
const float *   
[virtual]
 

Reimplemented from PickMode.

Definition at line 76 of file PickModeMolLabel.C.

void PickModeMolLabel::pick_molecule_start DrawMolecule   mol,
DisplayDevice   d,
int   ,
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 63 of file PickModeMolLabel.C.

References app, VMDApp::commandQueue, BaseMolecule::id, CommandQueue::runcommand, DisplayDevice::SHIFT, and DisplayDevice::shift_state.


Member Data Documentation

VMDApp* PickModeMolLabel::app [protected]
 

Reimplemented from PickMode.

Definition at line 49 of file PickModeMolLabel.h.

Referenced by pick_graphics, pick_molecule_end, and pick_molecule_start.


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