VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
33 class VTKCOMMONDATAMODEL_EXPORT vtkAtom
34 {
35  public:
36  ~vtkAtom();
37 
38  void PrintSelf(ostream &os, vtkIndent indent);
39 
41  vtkIdType GetId() const;
42 
44  vtkMolecule * GetMolecule();
45 
47 
48  unsigned short GetAtomicNumber() const;
49  void SetAtomicNumber(unsigned short atomicNum);
51 
53 
54  void GetPosition(float pos[3]) const;
55  void GetPosition(double pos[3]) const;
56  void SetPosition(const float pos[3]);
57  void SetPosition(float x, float y, float z);
58  vtkVector3f GetPosition() const;
59  void SetPosition(const vtkVector3f &pos);
61 
62  protected:
63  friend class vtkMolecule;
64 
65  vtkAtom(vtkMolecule *parent, vtkIdType id);
66 
69 };
70 
71 inline vtkIdType vtkAtom::GetId() const
72 {
73  return this->Id;
74 }
75 
77 {
78  return this->Molecule;
79 }
80 
81 #endif
82 // VTK-HeaderTest-Exclude: vtkAtom.h
vtkIdType Id
Definition: vtkAtom.h:68
class describing a molecule
Definition: vtkMolecule.h:88
int vtkIdType
Definition: vtkType.h:268
vtkMolecule * Molecule
Definition: vtkAtom.h:67
a simple class to control print indentation
Definition: vtkIndent.h:38
friend class vtkAtom
Definition: vtkMolecule.h:259
vtkMolecule * GetMolecule()
Definition: vtkAtom.h:76
convenience proxy for vtkMolecule
Definition: vtkAtom.h:33
vtkIdType GetId() const
Definition: vtkAtom.h:71