VTK
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 
33 {
34 public:
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 
76 };
77 
78 inline vtkIdType vtkBond::GetId() const
79 {
80  return this->Id;
81 }
82 
84 {
85  return this->Molecule;
86 }
87 
88 #endif
89 // VTK-HeaderTest-Exclude: vtkBond.h
class describing a molecule
Definition: vtkMolecule.h:88
vtkIdType Id
Definition: vtkBond.h:73
int vtkIdType
Definition: vtkType.h:275
vtkIdType GetId() const
Definition: vtkBond.h:78
vtkIdType BeginAtomId
Definition: vtkBond.h:74
vtkMolecule * Molecule
Definition: vtkBond.h:72
vtkMolecule * GetMolecule()
Definition: vtkBond.h:83
a simple class to control print indentation
Definition: vtkIndent.h:38
friend class vtkBond
Definition: vtkMolecule.h:260
convenience proxy for vtkMolecule
Definition: vtkAtom.h:33
vtkIdType EndAtomId
Definition: vtkBond.h:75
convenience proxy for vtkMolecule
Definition: vtkBond.h:32
#define VTKCOMMONDATAMODEL_EXPORT