VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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;
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
vtkIdType Id
Definition: vtkBond.h:74
int vtkIdType
Definition: vtkType.h:268
vtkIdType GetId() const
Definition: vtkBond.h:79
vtkIdType BeginAtomId
Definition: vtkBond.h:75
vtkMolecule * Molecule
Definition: vtkBond.h:73
vtkMolecule * GetMolecule()
Definition: vtkBond.h:84
a simple class to control print indentation
Definition: vtkIndent.h:38
convenience proxy for vtkMolecule
Definition: vtkAtom.h:33
vtkIdType EndAtomId
Definition: vtkBond.h:76
convenience proxy for vtkMolecule
Definition: vtkBond.h:32