Go to the documentation of this file.
75 #include "vtkCommonDataModelModule.h"
124 return this->AppendAtom(atomicNumber,
vtkVector3f(x, y, z));
144 unsigned short order = 1);
146 unsigned short order = 1)
148 return this->AppendBond(atom1.
Id, atom2.
Id,
order);
171 unsigned short atomicNum);
371 bool BondListIsDirty;
372 void SetBondListDirty() {this->BondListIsDirty =
true;}
386 void operator=(
const vtkMolecule&) VTK_DELETE_FUNCTION;
represent and manipulate 3D points
vtkPoints * GetAtomicPositionArray()
Access the raw arrays used in this vtkMolecule instance.
perform various plane computations
vtkAtom AppendAtom(unsigned short atomicNumber, double x, double y, double z)
Convenience methods to append a new atom with the specified atomic number and position.
vtkIdTypeArray * GetBondList()
vtkAtom AppendAtom(unsigned short atomicNumber, const vtkVector3f &pos)
Add new atom with the specified atomic number and position.
dynamic, self-adjusting array of unsigned short
unsigned short GetAtomAtomicNumber(vtkIdType atomId)
Return the atomic number of the atom with the specified id.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool HasLattice()
Return true if a unit cell lattice is defined.
void GetAtomPosition(vtkIdType atomId, float pos[3])
vtkIdType GetNumberOfBonds()
Return the number of bonds in the molecule.
bool CheckedShallowCopy(vtkGraph *g) override
Performs the same operation as ShallowCopy(), but instead of reporting an error for an incompatible g...
convenience proxy for vtkMolecule
represent and manipulate 3x3 transformation matrices
void SetLattice(const vtkVector3d &a, const vtkVector3d &b, const vtkVector3d &c)
convenience proxy for vtkMolecule
virtual void ShallowCopyStructure(vtkMolecule *m)
Shallow copies the atoms and bonds from m into this.
vtkBond AppendBond(const vtkAtom &atom1, const vtkAtom &atom2, unsigned short order=1)
virtual void SetElectronicData(vtkAbstractElectronicData *)
virtual void DeepCopyAttributes(vtkMolecule *m)
Deep copies attributes (i.e.
void SetLattice(vtkMatrix3x3 *matrix)
The unit cell vectors.
virtual void ShallowCopyAttributes(vtkMolecule *m)
Shallow copies attributes (i.e.
Provides access to and storage of chemical electronic data.
void DeepCopy(vtkDataObject *obj) override
Deep copies the data object into this molecule.
void ShallowCopy(vtkDataObject *obj) override
Shallow copies the data object into this molecule.
vtkMatrix3x3 * GetLattice()
Get the unit cell lattice vectors.
bool CheckedDeepCopy(vtkGraph *g) override
Performs the same operation as DeepCopy(), but instead of reporting an error for an incompatible grap...
static bool GetPlaneFromBond(const vtkBond &bond, const vtkVector3f &normal, vtkPlane *plane)
Obtain the plane that passes through the indicated bond with the given normal.
a simple class to control print indentation
void GetLattice(vtkVector3d &a, vtkVector3d &b, vtkVector3d &c)
Get the unit cell lattice vectors, and optionally, the origin.
void SetAtomAtomicNumber(vtkIdType atomId, unsigned short atomicNum)
Set the atomic number of the atom with the specified id.
void SetAtomPosition(vtkIdType atomId, double x, double y, double z)
vtkVector3d LatticeOrigin
static bool GetPlaneFromBond(const vtkAtom &atom1, const vtkAtom &atom2, const vtkVector3f &normal, vtkPlane *plane)
class describing a molecule
void GetLattice(vtkVector3d &a, vtkVector3d &b, vtkVector3d &c, vtkVector3d &origin)
unsigned short GetBondOrder(vtkIdType bondId)
virtual void DeepCopyStructure(vtkMolecule *m)
Deep copies the atoms and bonds from m into this.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBond GetBond(vtkIdType bondId)
Return a vtkAtom that refers to the bond with the specified id.
void Initialize() override
Initialize to an empty graph.
vtkUnsignedShortArray * GetAtomicNumberArray()
vtkSmartPointer< vtkMatrix3x3 > Lattice
dynamic, self-adjusting array of vtkIdType
vtkVector3f GetAtomPosition(vtkIdType atomId)
Get the position of the atom with the specified id.
void SetBondOrder(vtkIdType bondId, unsigned short order)
Get/Set the bond order of the bond with the specified id.
vtkAtom AppendAtom()
Add new atom with atomic number 0 (dummy atom) at origin.
void SetAtomPosition(vtkIdType atomId, const vtkVector3f &pos)
Set the position of the atom with the specified id.
Base class for graph data types.
general representation of visualization data
vtkAbstractElectronicData * ElectronicData
vtkAtom GetAtom(vtkIdType atomId)
Return a vtkAtom that refers to the atom with the specified id.
double GetBondLength(vtkIdType bondId)
Get the bond length of the bond with the specified id.
static vtkMolecule * New()
vtkIdType GetNumberOfAtoms()
Return the number of atoms in the molecule.
void ClearLattice()
Remove any unit cell lattice information from the molecule.
vtkBond AppendBond(vtkIdType atom1, vtkIdType atom2, unsigned short order=1)
Add a bond between the specified atoms, optionally setting the bond order (default: 1).