VTK
vtkAtom.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAtom.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkAtom_h
24 #define vtkAtom_h
25 
26 #include "vtkCommonDataModelModule.h" // For export macro
27 #include "vtkObject.h" // For macros, defines, etc
28 
29 class vtkMolecule;
30 class vtkVector3d;
31 class vtkVector3f;
32 
34 {
35  public:
36  void PrintSelf(ostream &os, vtkIndent indent);
37 
39  vtkIdType GetId() const;
40 
42  vtkMolecule * GetMolecule();
43 
45 
46  unsigned short GetAtomicNumber() const;
47  void SetAtomicNumber(unsigned short atomicNum);
49 
51 
52  void GetPosition(float pos[3]) const;
53  void GetPosition(double pos[3]) const;
54  void SetPosition(const float pos[3]);
55  void SetPosition(float x, float y, float z);
57  void SetPosition(const vtkVector3f &pos);
59 
60  protected:
61  friend class vtkMolecule;
62 
64 
67 };
68 
69 inline vtkIdType vtkAtom::GetId() const
70 {
71  return this->Id;
72 }
73 
75 {
76  return this->Molecule;
77 }
78 
79 #endif
80 // VTK-HeaderTest-Exclude: vtkAtom.h
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkAtom::GetPosition
void GetPosition(double pos[3]) const
vtkAtom::SetAtomicNumber
void SetAtomicNumber(unsigned short atomicNum)
vtkAtom::SetPosition
void SetPosition(const vtkVector3f &pos)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkAtom::GetPosition
vtkVector3f GetPosition() const
vtkAtom::Molecule
vtkMolecule * Molecule
Definition: vtkAtom.h:65
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkAtom::vtkAtom
vtkAtom(vtkMolecule *parent, vtkIdType id)
vtkAtom::SetPosition
void SetPosition(const float pos[3])
vtkAtom
convenience proxy for vtkMolecule
Definition: vtkAtom.h:34
vtkAtom::GetMolecule
vtkMolecule * GetMolecule()
Definition: vtkAtom.h:74
vtkVector3f
Definition: vtkVector.h:314
vtkAtom::SetPosition
void SetPosition(float x, float y, float z)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAtom::GetId
vtkIdType GetId() const
Definition: vtkAtom.h:69
vtkAtom::GetPosition
void GetPosition(float pos[3]) const
vtkMolecule
class describing a molecule
Definition: vtkMolecule.h:89
vtkAtom::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkObject.h
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkAtom::GetAtomicNumber
unsigned short GetAtomicNumber() const
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkAtom::Id
vtkIdType Id
Definition: vtkAtom.h:66
vtkVector3d
Definition: vtkVector.h:325