VTK
vtkBlueObeliskData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBlueObeliskData.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 =========================================================================*/
35 #ifndef vtkBlueObeliskData_h
36 #define vtkBlueObeliskData_h
37 
38 #include "vtkDomainsChemistryModule.h" // For export macro
39 #include "vtkObject.h"
40 #include "vtkNew.h" // For vtkNew
41 
42 class vtkAbstractArray;
43 class vtkFloatArray;
44 class vtkStringArray;
45 class vtkSimpleMutexLock;
47 
48 // Hidden STL reference: vtkstd::vector<vtkAbstractArray*>
49 class MyStdVectorOfVtkAbstractArrays;
50 
52 {
53  public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56  static vtkBlueObeliskData *New();
57 
62  void Initialize();
63 
65  bool IsInitialized() { return this->Initialized;}
66 
68 
70  vtkGetObjectMacro(WriteMutex, vtkSimpleMutexLock);
72 
74 
76  vtkGetMacro(NumberOfElements, unsigned short);
78 
80 
81  vtkGetNewMacro(Symbols, vtkStringArray);
82  vtkGetNewMacro(LowerSymbols, vtkStringArray);
83  vtkGetNewMacro(Names, vtkStringArray);
84  vtkGetNewMacro(LowerNames, vtkStringArray);
85  vtkGetNewMacro(PeriodicTableBlocks, vtkStringArray);
86  vtkGetNewMacro(ElectronicConfigurations, vtkStringArray);
87  vtkGetNewMacro(Families, vtkStringArray);
89 
90  vtkGetNewMacro(Masses, vtkFloatArray);
91  vtkGetNewMacro(ExactMasses, vtkFloatArray);
92  vtkGetNewMacro(IonizationEnergies, vtkFloatArray);
93  vtkGetNewMacro(ElectronAffinities, vtkFloatArray);
94  vtkGetNewMacro(PaulingElectronegativities, vtkFloatArray);
95  vtkGetNewMacro(CovalentRadii, vtkFloatArray);
96  vtkGetNewMacro(VDWRadii, vtkFloatArray);
97  vtkGetNewMacro(DefaultColors, vtkFloatArray);
98  vtkGetNewMacro(BoilingPoints, vtkFloatArray);
99  vtkGetNewMacro(MeltingPoints, vtkFloatArray);
100 
101  vtkGetNewMacro(Periods, vtkUnsignedShortArray);
102  vtkGetNewMacro(Groups, vtkUnsignedShortArray);
103 
104  protected:
106 
109 
112 
115  virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
116 
118  virtual void Reset();
119 
121  virtual void Squeeze();
122 
123  unsigned short NumberOfElements;
124 
125  // Lists all arrays
126  MyStdVectorOfVtkAbstractArrays *Arrays;
127 
128  // Atomic Symbols
131 
132  // Element Names
135 
136  // Misc Strings
139  vtkNew<vtkStringArray> Families; // Non-Metal, Noblegas, Metalloids, etc
140 
141  // Misc Data
149  vtkNew<vtkFloatArray> DefaultColors; // rgb 3-tuples, [0.0,1.0]
152  vtkNew<vtkUnsignedShortArray> Periods; // Row of periodic table
153  vtkNew<vtkUnsignedShortArray> Groups; // Column of periodic table
154 
155  void PrintSelfIfExists(const char *, vtkObject *, ostream&, vtkIndent);
156 
157  private:
158  vtkBlueObeliskData(const vtkBlueObeliskData&); // Not implemented.
159  void operator=(const vtkBlueObeliskData&); // Not implemented.
160 };
161 
162 #endif
vtkNew< vtkFloatArray > CovalentRadii
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkNew< vtkStringArray > Names
vtkNew< vtkFloatArray > ElectronAffinities
Abstract superclass for all arrays.
vtkNew< vtkStringArray > ElectronicConfigurations
vtkNew< vtkFloatArray > Masses
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
vtkNew< vtkFloatArray > MeltingPoints
vtkNew< vtkUnsignedShortArray > Groups
a vtkAbstractArray subclass for strings
vtkNew< vtkStringArray > PeriodicTableBlocks
int vtkIdType
Definition: vtkType.h:247
vtkNew< vtkFloatArray > IonizationEnergies
vtkNew< vtkStringArray > Symbols
vtkNew< vtkFloatArray > DefaultColors
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define VTKDOMAINSCHEMISTRY_EXPORT
vtkNew< vtkStringArray > Families
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkNew< vtkFloatArray > VDWRadii
vtkNew< vtkFloatArray > BoilingPoints
unsigned short NumberOfElements
vtkNew< vtkStringArray > LowerNames
vtkNew< vtkFloatArray > PaulingElectronegativities
vtkNew< vtkStringArray > LowerSymbols
static vtkObject * New()
Fill a vtkBlueObeliskData container with data from the BODR XML dataset.
MyStdVectorOfVtkAbstractArrays * Arrays
vtkNew< vtkUnsignedShortArray > Periods
vtkNew< vtkFloatArray > ExactMasses
dynamic, self-adjusting array of unsigned short
vtkSimpleMutexLock * WriteMutex
Contains chemical data from the Blue Obelisk Data Repository.