VTK
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
=========================================================================*/
24
#ifndef vtkBond_h
25
#define vtkBond_h
26
27
#include "vtkCommonDataModelModule.h"
// For export macro
28
#include "
vtkObject.h
"
// For macros, etc
29
#include "
vtkAtom.h
"
// For vtkAtom
30
31
class
vtkMolecule
;
32
33
class
VTKCOMMONDATAMODEL_EXPORT
vtkBond
34
{
35
public
:
36
void
PrintSelf(ostream &os,
vtkIndent
indent);
37
41
vtkIdType
GetId()
const
;
42
46
vtkMolecule
* GetMolecule();
47
49
52
vtkIdType
GetBeginAtomId()
const
;
53
vtkIdType
GetEndAtomId()
const
;
55
57
61
vtkAtom
GetBeginAtom();
62
vtkAtom
GetEndAtom();
63
const
vtkAtom
GetBeginAtom()
const
;
64
const
vtkAtom
GetEndAtom()
const
;
66
70
unsigned
short
GetOrder();
71
78
double
GetLength()
const
;
79
80
protected
:
81
friend
class
vtkMolecule
;
82
83
vtkBond
(
vtkMolecule
*parent,
vtkIdType
id
,
84
vtkIdType
beginAtomId,
vtkIdType
endAtomId);
85
86
vtkMolecule
*
Molecule
;
87
vtkIdType
Id
;
88
vtkIdType
BeginAtomId
;
89
vtkIdType
EndAtomId
;
90
};
91
92
inline
vtkIdType
vtkBond::GetId
()
const
93
{
94
return
this->
Id
;
95
}
96
97
inline
vtkMolecule
*
vtkBond::GetMolecule
()
98
{
99
return
this->
Molecule
;
100
}
101
102
#endif
103
// VTK-HeaderTest-Exclude: vtkBond.h
vtkBond::GetId
vtkIdType GetId() const
Return the Id used to identify this bond in the parent molecule.
Definition:
vtkBond.h:92
vtkBond::BeginAtomId
vtkIdType BeginAtomId
Definition:
vtkBond.h:88
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkBond::EndAtomId
vtkIdType EndAtomId
Definition:
vtkBond.h:89
vtkBond::GetMolecule
vtkMolecule * GetMolecule()
Return the parent molecule of this bond.
Definition:
vtkBond.h:97
vtkBond
convenience proxy for vtkMolecule
Definition:
vtkBond.h:33
vtkBond::Id
vtkIdType Id
Definition:
vtkBond.h:87
vtkMolecule::vtkBond
friend class vtkBond
Definition:
vtkMolecule.h:473
vtkAtom
convenience proxy for vtkMolecule
Definition:
vtkAtom.h:34
vtkBond::Molecule
vtkMolecule * Molecule
Definition:
vtkBond.h:86
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkMolecule
class describing a molecule
Definition:
vtkMolecule.h:94
vtkObject.h
vtkAtom.h
Generated by
1.8.16