VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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
67
vtkMolecule
*
Molecule
;
68
vtkIdType
Id
;
69
};
70
71
inline
vtkIdType
vtkAtom::GetId
()
const
72
{
73
return
this->
Id
;
74
}
75
76
inline
vtkMolecule
*
vtkAtom::GetMolecule
()
77
{
78
return
this->
Molecule
;
79
}
80
81
#endif
82
// VTK-HeaderTest-Exclude: vtkAtom.h
Generated on Thu May 24 2012 22:22:09 for VTK by
1.8.1