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 "vtkObject.h"
39 #include "vtkNew.h" // For vtkNew
40 
41 class vtkAbstractArray;
42 class vtkFloatArray;
43 class vtkStringArray;
44 class vtkSimpleMutexLock;
46 
47 // Hidden STL reference: vtkstd::vector<vtkAbstractArray*>
48 class MyStdVectorOfVtkAbstractArrays;
49 
51 {
52  public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55  static vtkBlueObeliskData *New();
56 
61  void Initialize();
62 
64  bool IsInitialized() { return this->Initialized;}
65 
67 
69  vtkGetObjectMacro(WriteMutex, vtkSimpleMutexLock);
71 
73 
75  vtkGetMacro(NumberOfElements, unsigned short);
77 
79 
80  vtkGetNewMacro(Symbols, vtkStringArray);
81  vtkGetNewMacro(LowerSymbols, vtkStringArray);
82  vtkGetNewMacro(Names, vtkStringArray);
83  vtkGetNewMacro(LowerNames, vtkStringArray);
84  vtkGetNewMacro(PeriodicTableBlocks, vtkStringArray);
85  vtkGetNewMacro(ElectronicConfigurations, vtkStringArray);
86  vtkGetNewMacro(Families, vtkStringArray);
88 
89  vtkGetNewMacro(Masses, vtkFloatArray);
90  vtkGetNewMacro(ExactMasses, vtkFloatArray);
91  vtkGetNewMacro(IonizationEnergies, vtkFloatArray);
92  vtkGetNewMacro(ElectronAffinities, vtkFloatArray);
93  vtkGetNewMacro(PaulingElectronegativities, vtkFloatArray);
94  vtkGetNewMacro(CovalentRadii, vtkFloatArray);
95  vtkGetNewMacro(VDWRadii, vtkFloatArray);
96  vtkGetNewMacro(DefaultColors, vtkFloatArray);
97  vtkGetNewMacro(BoilingPoints, vtkFloatArray);
98  vtkGetNewMacro(MeltingPoints, vtkFloatArray);
99 
100  vtkGetNewMacro(Periods, vtkUnsignedShortArray);
101  vtkGetNewMacro(Groups, vtkUnsignedShortArray);
102 
103  protected:
105 
108 
111 
114  virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
115 
117  virtual void Reset();
118 
120  virtual void Squeeze();
121 
122  unsigned short NumberOfElements;
123 
124  // Lists all arrays
125  MyStdVectorOfVtkAbstractArrays *Arrays;
126 
127  // Atomic Symbols
130 
131  // Element Names
134 
135  // Misc Strings
138  vtkNew<vtkStringArray> Families; // Non-Metal, Noblegas, Metalloids, etc
139 
140  // Misc Data
148  vtkNew<vtkFloatArray> DefaultColors; // rgb 3-tuples, [0.0,1.0]
151  vtkNew<vtkUnsignedShortArray> Periods; // Row of periodic table
152  vtkNew<vtkUnsignedShortArray> Groups; // Column of periodic table
153 
154  void PrintSelfIfExists(const char *, vtkObject *, ostream&, vtkIndent);
155 
156  private:
157  vtkBlueObeliskData(const vtkBlueObeliskData&); // Not implemented.
158  void operator=(const vtkBlueObeliskData&); // Not implemented.
159 };
160 
161 #endif