VTK
vtkAbstractElectronicData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractElectronicData.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 __vtkAbstractElectronicData_h
25 #define __vtkAbstractElectronicData_h
26 
27 #include "vtkDataObject.h"
28 
29 class vtkImageData;
30 
32 {
33 public:
35  virtual void PrintSelf(ostream& os, vtkIndent indent);
36 
38  virtual vtkIdType GetNumberOfMOs() = 0;
39 
41  virtual vtkIdType GetNumberOfElectrons() = 0;
42 
44  virtual vtkImageData * GetMO(vtkIdType orbitalNumber) = 0;
45 
49  virtual vtkImageData * GetElectronDensity() = 0;
50 
52  vtkImageData * GetHOMO() {return this->GetMO(this->GetHOMOOrbitalNumber());}
53 
55  vtkImageData * GetLUMO() {return this->GetMO(this->GetLUMOOrbitalNumber());}
56 
57  // Descripition:
58  // Returns the orbital number of the Highest Occupied Molecular Orbital.
59  vtkIdType GetHOMOOrbitalNumber()
60  {
61  return static_cast<vtkIdType>((this->GetNumberOfElectrons() / 2 ) - 1);
62  }
63 
64  // Descripition:
65  // Returns the orbital number of the Lowest Unoccupied Molecular Orbital.
66  vtkIdType GetLUMOOrbitalNumber()
67  {
68  return static_cast<vtkIdType>( this->GetNumberOfElectrons() / 2 );
69  }
70 
72 
74  bool IsHOMO(vtkIdType orbitalNumber)
75  {
76  return (orbitalNumber == this->GetHOMOOrbitalNumber());
77  }
79 
81 
83  bool IsLUMO(vtkIdType orbitalNumber)
84  {
85  return (orbitalNumber == this->GetLUMOOrbitalNumber());
86  }
88 
90  virtual void DeepCopy(vtkDataObject *obj);
91 
93 
95  vtkGetMacro(Padding, double);
97 
98 protected:
101 
102  double Padding;
103 
104 private:
105  // Not implemented:
107  void operator=(const vtkAbstractElectronicData&);
108 };
109 
110 #endif