VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
vtkBond.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkBond.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 __vtkBond_h
24
#define __vtkBond_h
25
26
#include "vtkCommonDataModelModule.h"
// For export macro
27
#include "
vtkObject.h
"
// For macros, etc
28
#include "
vtkAtom.h
"
// For vtkAtom
29
30
class
vtkMolecule
;
31
32
class
VTKCOMMONDATAMODEL_EXPORT
vtkBond
33
{
34
public
:
35
~
vtkBond
();
36
void
PrintSelf(ostream &os,
vtkIndent
indent);
37
39
vtkIdType
GetId()
const
;
40
42
vtkMolecule
* GetMolecule();
43
45
46
vtkIdType
GetBeginAtomId()
const
;
47
vtkIdType
GetEndAtomId()
const
;
49
51
53
vtkAtom
GetBeginAtom();
54
vtkAtom
GetEndAtom();
55
const
vtkAtom
GetBeginAtom()
const
;
56
const
vtkAtom
GetEndAtom()
const
;
58
60
unsigned
short
GetOrder();
61
65
double
GetLength()
const
;
66
67
protected
:
68
friend
class
vtkMolecule
;
69
70
vtkBond
(
vtkMolecule
*parent,
vtkIdType
id
,
71
vtkIdType
beginAtomId,
vtkIdType
endAtomId);
72
73
vtkMolecule
*
Molecule
;
74
vtkIdType
Id
;
75
vtkIdType
BeginAtomId
;
76
vtkIdType
EndAtomId
;
77
};
78
79
inline
vtkIdType
vtkBond::GetId
()
const
80
{
81
return
this->
Id
;
82
}
83
84
inline
vtkMolecule
*
vtkBond::GetMolecule
()
85
{
86
return
this->
Molecule
;
87
}
88
89
#endif
90
// VTK-HeaderTest-Exclude: vtkBond.h
Generated on Thu May 24 2012 22:22:09 for VTK by
1.8.1