|
VTK
|
class describing a molecule More...
#include <vtkMolecule.h>


Public Types | |
| typedef vtkUndirectedGraph | Superclass |
Public Types inherited from vtkUndirectedGraph | |
| typedef vtkGraph | Superclass |
Public Types inherited from vtkGraph | |
| typedef vtkDataObject | Superclass |
Public Types inherited from vtkDataObject | |
| typedef vtkObject | Superclass |
| enum | FieldAssociations { FIELD_ASSOCIATION_POINTS, FIELD_ASSOCIATION_CELLS, FIELD_ASSOCIATION_NONE, FIELD_ASSOCIATION_POINTS_THEN_CELLS, FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, FIELD_ASSOCIATION_ROWS, NUMBER_OF_ASSOCIATIONS } |
| enum | AttributeTypes { POINT, CELL, FIELD, POINT_THEN_CELL, VERTEX, EDGE, ROW, NUMBER_OF_ATTRIBUTE_TYPES } |
| enum | FieldOperations { FIELD_OPERATION_PRESERVED, FIELD_OPERATION_REINTERPOLATED, FIELD_OPERATION_MODIFIED, FIELD_OPERATION_REMOVED } |
Public Types inherited from vtkObject | |
| typedef vtkObjectBase | Superclass |
Protected Member Functions | |
| vtkMolecule () | |
| ~vtkMolecule () | |
| virtual void | CopyStructureInternal (vtkMolecule *m, bool deep) |
| virtual void | CopyAttributesInternal (vtkMolecule *m, bool deep) |
Protected Member Functions inherited from vtkUndirectedGraph | |
| vtkUndirectedGraph () | |
| ~vtkUndirectedGraph () | |
| virtual void | GetInEdges (vtkIdType v, const vtkInEdgeType *&edges, vtkIdType &nedges) |
Protected Member Functions inherited from vtkGraph | |
| vtkGraph () | |
| ~vtkGraph () | |
| void | AddVertexInternal (const vtkVariant &pedigree, vtkIdType *vertex) |
| void | RemoveVertexInternal (vtkIdType v, bool directed) |
| void | RemoveEdgeInternal (vtkIdType e, bool directed) |
| void | RemoveVerticesInternal (vtkIdTypeArray *arr, bool directed) |
| virtual void | CopyInternal (vtkGraph *g, bool deep) |
| void | SetInternals (vtkGraphInternals *internals) |
| void | SetEdgePoints (vtkGraphEdgePoints *edgePoints) |
| void | ForceOwnership () |
| void | BuildEdgeList () |
| void | AddVertexInternal (vtkVariantArray *propertyArr=0, vtkIdType *vertex=0) |
| void | AddEdgeInternal (vtkIdType u, vtkIdType v, bool directed, vtkVariantArray *propertyArr, vtkEdgeType *edge) |
| void | AddEdgeInternal (const vtkVariant &uPedigree, vtkIdType v, bool directed, vtkVariantArray *propertyArr, vtkEdgeType *edge) |
| void | AddEdgeInternal (vtkIdType u, const vtkVariant &vPedigree, bool directed, vtkVariantArray *propertyArr, vtkEdgeType *edge) |
| void | AddEdgeInternal (const vtkVariant &uPedigree, const vtkVariant &vPedigree, bool directed, vtkVariantArray *propertyArr, vtkEdgeType *edge) |
| void | RemoveEdgesInternal (vtkIdTypeArray *arr, bool directed) |
| virtual void | GetOutEdges (vtkIdType v, const vtkOutEdgeType *&edges, vtkIdType &nedges) |
| virtual vtkIdTypeArray * | GetEdgeList () |
| virtual void | SetEdgeList (vtkIdTypeArray *list) |
Protected Member Functions inherited from vtkDataObject | |
| vtkDataObject () | |
| ~vtkDataObject () | |
| vtkExecutive * | GetExecutive () |
| int | GetPortNumber () |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkStreamingDemandDrivenPipeline * | TrySDDP (const char *method) |
Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| virtual | ~vtkObject () |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | CollectRevisions (ostream &os) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Protected Attributes | |
| vtkAbstractElectronicData * | ElectronicData |
Friends | |
| class | vtkAtom |
| class | vtkBond |
| bool | BondListIsDirty |
| void | SetBondListDirty () |
| void | UpdateBondList () |
Additional Inherited Members | |
Protected Types inherited from vtkDataObject | |
| typedef vtkStreamingDemandDrivenPipeline | SDDP |
Static Protected Attributes inherited from vtkGraph | |
| static double | DefaultPoint [3] |
Static Protected Attributes inherited from vtkDataObject | |
| static const char | AssociationNames [NUMBER_OF_ASSOCIATIONS][55] |
class describing a molecule
vtkMolecule and the convenience classes vtkAtom and vtkBond describe the geometry and connectivity of a molecule. The molecule can be constructed using the AppendAtom() and AppendBond() methods in one of two ways; either by fully specifying the atom/bond in a single call, or by incrementally setting the various attributes using the convience vtkAtom and vtkBond classes:
Single call:
Incremental:
Both of the above methods will produce the same molecule, two hydrogens connected with a 1.0 Angstrom single bond, aligned to the z-axis. The second example also demostrates the use of VTK's vtkVector class, which is fully supported by the Chemistry kit.
The vtkMolecule object is intended to be used with the vtkMoleculeMapper class for visualizing molecular structure using common rendering techniques.
Definition at line 87 of file vtkMolecule.h.
Definition at line 91 of file vtkMolecule.h.
|
protected |
|
protected |
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkUndirectedGraph.
|
virtual |
Reimplemented from vtkUndirectedGraph.
|
static |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUndirectedGraph.
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUndirectedGraph.
|
static |
Reimplemented from vtkUndirectedGraph.
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkUndirectedGraph.
|
virtual |
Initialize to an empty graph.
Reimplemented from vtkGraph.
|
inline |
Add new atom with atomic number 0 (dummy atom) at origin. Return a vtkAtom that refers to the new atom.
Definition at line 99 of file vtkMolecule.h.
| vtkAtom vtkMolecule::AppendAtom | ( | unsigned short | atomicNumber, |
| const vtkVector3f & | pos | ||
| ) |
Add new atom with the specified atomic number and position. Return a vtkAtom that refers to the new atom.
|
inline |
Convenience methods to append a new atom with the specified atomic number and position.
Definition at line 112 of file vtkMolecule.h.
Return a vtkAtom that refers to the atom with the specified id.
| vtkIdType vtkMolecule::GetNumberOfAtoms | ( | ) |
Return the number of atoms in the molecule.
Add a bond between the specified atoms, optionally setting the bond order (default: 1). Return a vtkBond object referring to the new bond.
|
inline |
Add a bond between the specified atoms, optionally setting the bond order (default: 1). Return a vtkBond object referring to the new bond.
Definition at line 130 of file vtkMolecule.h.
Return a vtkAtom that refers to the bond with the specified id.
| vtkIdType vtkMolecule::GetNumberOfBonds | ( | ) |
Return the number of bonds in the molecule.
| unsigned short vtkMolecule::GetAtomAtomicNumber | ( | vtkIdType | atomId | ) |
Return the atomic number of the atom with the specified id.
| void vtkMolecule::SetAtomAtomicNumber | ( | vtkIdType | atomId, |
| unsigned short | atomicNum | ||
| ) |
Set the atomic number of the atom with the specified id.
| void vtkMolecule::SetAtomPosition | ( | vtkIdType | atomId, |
| const vtkVector3f & | pos | ||
| ) |
Set the position of the atom with the specified id.
Set the position of the atom with the specified id.
| vtkVector3f vtkMolecule::GetAtomPosition | ( | vtkIdType | atomId | ) |
Get the position of the atom with the specified id.
Get the position of the atom with the specified id.
| void vtkMolecule::SetBondOrder | ( | vtkIdType | bondId, |
| unsigned short | order | ||
| ) |
Get/Set the bond order of the bond with the specified id
| unsigned short vtkMolecule::GetBondOrder | ( | vtkIdType | bondId | ) |
Get/Set the bond order of the bond with the specified id
Get the bond length of the bond with the specified id
| vtkPoints* vtkMolecule::GetAtomicPositionArray | ( | ) |
Access the raw arrays used in this vtkMolecule instance
| vtkUnsignedShortArray* vtkMolecule::GetAtomicNumberArray | ( | ) |
Access the raw arrays used in this vtkMolecule instance
|
virtual |
Set/Get the AbstractElectronicData-subclassed object for this molecule.
|
virtual |
Set/Get the AbstractElectronicData-subclassed object for this molecule.
|
virtual |
Shallow copies the data object into this molecule.
Reimplemented from vtkGraph.
|
virtual |
Deep copies the data object into this molecule.
Reimplemented from vtkGraph.
|
virtual |
Shallow copies the atoms and bonds from m into this.
|
virtual |
Deep copies the atoms and bonds from m into this.
|
virtual |
Shallow copies attributes (i.e. everything besides atoms and bonds) from m into this.
|
virtual |
Deep copies attributes (i.e. everything besides atoms and bonds) from m into this.
|
static |
Obtain the plane that passes through the indicated bond with the given normal. If the plane is set successfully, the function returns true. If the normal is not orthogonal to the bond, a new normal will be constructed in such a way that the plane will be orthogonal to the plane spanned by the bond vector and the input normal vector. This ensures that the plane passes through the bond, and the normal is more of a "hint" indicating the orientation of the plane. The new normal (n) is defined as the input normal vector (n_i) minus the projection of itself (proj[n_i]_v) onto the bond vector (v):
v ^ | n = (n_i - proj[n_j]_v) proj[n_i]_v ^ |----x | |
/ | | / n_i | | / | |/ If n_i is parallel to v, a warning will be printed and no plane will be added. Obviously, n_i must not be parallel to v.
|
static |
Obtain the plane that passes through the indicated bond with the given normal. If the plane is set successfully, the function returns true. If the normal is not orthogonal to the bond, a new normal will be constructed in such a way that the plane will be orthogonal to the plane spanned by the bond vector and the input normal vector. This ensures that the plane passes through the bond, and the normal is more of a "hint" indicating the orientation of the plane. The new normal (n) is defined as the input normal vector (n_i) minus the projection of itself (proj[n_i]_v) onto the bond vector (v):
v ^ | n = (n_i - proj[n_j]_v) proj[n_i]_v ^ |----x | |
/ | | / n_i | | / | |/ If n_i is parallel to v, a warning will be printed and no plane will be added. Obviously, n_i must not be parallel to v.
|
protectedvirtual |
Copy bonds and atoms.
|
protectedvirtual |
Copy everything but bonds and atoms.
|
inlineprotected |
The graph superclass does not provide fast random access to the edge (bond) data. All random access is performed using a lookup table that must be rebuilt periodically. These allow for lazy building of the lookup table
Definition at line 251 of file vtkMolecule.h.
|
protected |
The graph superclass does not provide fast random access to the edge (bond) data. All random access is performed using a lookup table that must be rebuilt periodically. These allow for lazy building of the lookup table
|
friend |
Definition at line 255 of file vtkMolecule.h.
|
friend |
Definition at line 256 of file vtkMolecule.h.
|
protected |
The graph superclass does not provide fast random access to the edge (bond) data. All random access is performed using a lookup table that must be rebuilt periodically. These allow for lazy building of the lookup table
Definition at line 250 of file vtkMolecule.h.
|
protected |
Definition at line 258 of file vtkMolecule.h.
1.8.1.2