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);
56  vtkVector3f GetPosition() const;
57  void SetPosition(const vtkVector3f &pos);
59 
60  protected:
61  friend class vtkMolecule;
62 
63  vtkAtom(vtkMolecule *parent, vtkIdType id);
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
vtkIdType Id
Definition: vtkAtom.h:66
class describing a molecule
Definition: vtkMolecule.h:88
int vtkIdType
Definition: vtkType.h:247
vtkMolecule * Molecule
Definition: vtkAtom.h:65
a simple class to control print indentation
Definition: vtkIndent.h:38
friend class vtkAtom
Definition: vtkMolecule.h:259
vtkMolecule * GetMolecule()
Definition: vtkAtom.h:74
convenience proxy for vtkMolecule
Definition: vtkAtom.h:33
vtkIdType GetId() const
Definition: vtkAtom.h:69
#define VTKCOMMONDATAMODEL_EXPORT