VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
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 "
vtkObject.h
"
// For macros, etc
27
#include "
vtkAtom.h
"
// For vtkAtom
28
29
class
vtkMolecule
;
30
31
class
VTK_FILTERING_EXPORT
vtkBond
32
{
33
public
:
34
~
vtkBond
();
35
void
PrintSelf(ostream &os,
vtkIndent
indent);
36
38
vtkIdType
GetId()
const
;
39
41
vtkMolecule
* GetMolecule();
42
44
45
vtkIdType
GetBeginAtomId()
const
;
46
vtkIdType
GetEndAtomId()
const
;
48
50
52
vtkAtom
GetBeginAtom();
53
vtkAtom
GetEndAtom();
54
const
vtkAtom
GetBeginAtom()
const
;
55
const
vtkAtom
GetEndAtom()
const
;
57
59
unsigned
short
GetOrder();
60
64
double
GetLength()
const
;
65
66
protected
:
67
friend
class
vtkMolecule
;
68
69
vtkBond
(
vtkMolecule
*parent,
vtkIdType
id
,
70
vtkIdType
beginAtomId,
vtkIdType
endAtomId);
71
72
vtkMolecule
*
Molecule
;
73
vtkIdType
Id
;
74
vtkIdType
BeginAtomId
;
75
vtkIdType
EndAtomId
;
76
};
77
78
inline
vtkIdType
vtkBond::GetId
()
const
79
{
80
return
this->
Id
;
81
}
82
83
inline
vtkMolecule
*
vtkBond::GetMolecule
()
84
{
85
return
this->
Molecule
;
86
}
87
88
#endif
Generated on Tue Jan 8 2013 05:45:24 for VTK by
1.8.1.2