Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members 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:

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

VMDApp * app

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 * ,
) [virtual]

Reimplemented from PickMode.

Definition at line 59 of file PickModeAddBond.C.

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

void PickModeAddBond::pick_molecule_start ( DrawMolecule * mol,
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]

Reimplemented from PickMode.

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 Tue Nov 18 02:49:49 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

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