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 "vtkObject.h" // For macros, defines, etc
27 
28 class vtkMolecule;
29 class vtkVector3d;
30 class vtkVector3f;
31 
33 {
34  public:
35  ~vtkAtom();
36 
37  void PrintSelf(ostream &os, vtkIndent indent);
38 
40  vtkIdType GetId() const;
41 
43  vtkMolecule * GetMolecule();
44 
46 
47  unsigned short GetAtomicNumber() const;
48  void SetAtomicNumber(unsigned short atomicNum);
50 
52 
53  void GetPosition(float pos[3]) const;
54  void GetPosition(double pos[3]) const;
55  void SetPosition(const float pos[3]);
56  void SetPosition(float x, float y, float z);
57  vtkVector3f GetPosition() const;
58  void SetPosition(const vtkVector3f &pos);
60 
61  protected:
62  friend class vtkMolecule;
63 
64  vtkAtom(vtkMolecule *parent, vtkIdType id);
65 
68 };
69 
70 inline vtkIdType vtkAtom::GetId() const
71 {
72  return this->Id;
73 }
74 
76 {
77  return this->Molecule;
78 }
79 
80 #endif