VTK  9.0.2
vtkOpenQubeElectronicData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenQubeElectronicData.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 =========================================================================*/
21 #ifndef vtkOpenQubeElectronicData_h
22 #define vtkOpenQubeElectronicData_h
23 
25 #include "vtkDomainsChemistryModule.h" // For export macro
26 #include "vtkNew.h" // for vtkNew
27 
28 namespace OpenQube
29 {
30 class BasisSet;
31 class Cube;
32 }
33 
34 class vtkImageData;
36 
37 class VTKDOMAINSCHEMISTRY_EXPORT vtkOpenQubeElectronicData : public vtkAbstractElectronicData
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
48 
52  unsigned int GetNumberOfElectrons();
53 
58  vtkImageData* GetMO(vtkIdType orbitalNumber);
59 
65 
67 
70  vtkSetMacro(BasisSet, OpenQube::BasisSet*);
71  vtkGetMacro(BasisSet, OpenQube::BasisSet*);
73 
75 
79  vtkSetMacro(Padding, double);
80  vtkGetMacro(Padding, double);
82 
84 
87  vtkSetMacro(Spacing, double);
88  vtkGetMacro(Spacing, double);
90 
92 
97 
101  virtual void DeepCopy(vtkDataObject* obj);
102 
103 protected:
106 
108 
115 
119  void FillImageDataFromQube(OpenQube::Cube* qube, vtkImageData* image);
120 
125 
129  OpenQube::BasisSet* BasisSet;
130 
134  double Spacing;
135 
136 private:
138  void operator=(const vtkOpenQubeElectronicData&) = delete;
139 };
140 
141 #endif
Provides access to and storage of chemical electronic data.
general representation of visualization data
Definition: vtkDataObject.h:60
maintain an unordered list of dataset objects
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple class to control print indentation
Definition: vtkIndent.h:34
Provides access to and storage of electronic data calculated by OpenQube.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void DeepCopy(vtkDataObject *obj)
Deep copies the data object into this.
vtkNew< vtkDataSetCollection > Images
Cache of calculated image data.
unsigned int GetNumberOfElectrons()
Returns the number of electrons in the molecule.
vtkImageData * GetElectronDensity()
Returns vtkImageData for the molecule's electron density.
OpenQube::BasisSet * BasisSet
The OpenQube::BasisSet object used to calculate the images.
double Spacing
Used to determine the spacing of the image data.
static vtkOpenQubeElectronicData * New()
vtkGetNewMacro(Images, vtkDataSetCollection)
Get the collection of cached images.
~vtkOpenQubeElectronicData() override
vtkImageData * CalculateMO(vtkIdType orbitalNumber)
Calculates and returns the requested vtkImageData.
void FillImageDataFromQube(OpenQube::Cube *qube, vtkImageData *image)
Converts an OpenQube::Cube object into vtkImageData.
vtkImageData * CalculateElectronDensity()
vtkImageData * GetMO(vtkIdType orbitalNumber)
Returns the vtkImageData for the requested molecular orbital.
vtkIdType GetNumberOfMOs()
Returns the number of molecular orbitals in the OpenQube::BasisSet.
@ image
Definition: vtkX3D.h:380
int vtkIdType
Definition: vtkType.h:338