VTK  9.1.0
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=========================================================================*/
21#ifndef vtkAtom_h
22#define vtkAtom_h
23
24#include "vtkCommonDataModelModule.h" // For export macro
25#include "vtkObject.h" // For macros, defines, etc
26
27class vtkMolecule;
28class vtkVector3d;
29class vtkVector3f;
30
31class VTKCOMMONDATAMODEL_EXPORT vtkAtom
32{
33public:
34 void PrintSelf(ostream& os, vtkIndent indent);
35
39 vtkIdType GetId() const;
40
44 vtkMolecule* GetMolecule();
45
47
50 unsigned short GetAtomicNumber() const;
51 void SetAtomicNumber(unsigned short atomicNum);
53
55
58 void GetPosition(float pos[3]) const;
59 void GetPosition(double pos[3]) const;
60 void SetPosition(const float pos[3]);
61 void SetPosition(float x, float y, float z);
63 void SetPosition(const vtkVector3f& pos);
65
66protected:
67 friend class vtkMolecule;
68
70
73};
74
76{
77 return this->Id;
78}
79
81{
82 return this->Molecule;
83}
84
85#endif
86// VTK-HeaderTest-Exclude: vtkAtom.h
convenience proxy for vtkMolecule
Definition: vtkAtom.h:32
vtkMolecule * GetMolecule()
Return the parent molecule of this atom.
Definition: vtkAtom.h:80
void GetPosition(double pos[3]) const
Get/Set the position of this atom.
vtkIdType Id
Definition: vtkAtom.h:72
vtkAtom(vtkMolecule *parent, vtkIdType id)
void SetPosition(float x, float y, float z)
Get/Set the position of this atom.
void PrintSelf(ostream &os, vtkIndent indent)
void GetPosition(float pos[3]) const
Get/Set the position of this atom.
vtkMolecule * Molecule
Definition: vtkAtom.h:71
unsigned short GetAtomicNumber() const
Get/Set the atomic number of this atom.
void SetPosition(const vtkVector3f &pos)
Get/Set the position of this atom.
void SetPosition(const float pos[3])
Get/Set the position of this atom.
void SetAtomicNumber(unsigned short atomicNum)
Get/Set the atomic number of this atom.
vtkVector3f GetPosition() const
Get/Set the position of this atom.
vtkIdType GetId() const
Return the Id used to identify this atom in the parent molecule.
Definition: vtkAtom.h:75
a simple class to control print indentation
Definition: vtkIndent.h:113
class describing a molecule
Definition: vtkMolecule.h:111
int vtkIdType
Definition: vtkType.h:332