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

PickModeAddBond Class Reference

PickMode subclass to add bonds between two atoms. More...

#include <PickModeAddBond.h>

Inheritance diagram for PickModeAddBond:

PickMode List of all members.

Public Methods

 PickModeAddBond (VMDApp *)
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_end (DrawMolecule *, DisplayDevice *)

Protected Attributes

VMDAppapp

Detailed Description

PickMode subclass to add bonds between two atoms.

Definition at line 18 of file PickModeAddBond.h.


Constructor & Destructor Documentation

PickModeAddBond::PickModeAddBond VMDApp  
 

Definition at line 38 of file PickModeAddBond.C.


Member Function Documentation

void PickModeAddBond::pick_molecule_end DrawMolecule  ,
DisplayDevice  
[virtual]
 

Reimplemented from PickMode.

Definition at line 59 of file PickModeAddBond.C.

References BaseMolecule::add_bond, app, BaseMolecule::atom, ATOMNORMAL, MolAtom::bonded, MolAtom::bonds, MolAtom::bondTo, DrawMolecule::force_recalc, BaseMolecule::id, VMDApp::label_add, MAXATOMBONDS, DrawMolItem::MOL_REGEN, and NULL.

void PickModeAddBond::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 47 of file PickModeAddBond.C.

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


Member Data Documentation

VMDApp* PickModeAddBond::app [protected]
 

Definition at line 31 of file PickModeAddBond.h.

Referenced by pick_molecule_end, and pick_molecule_start.


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 01:28:19 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002