VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Chemistry
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
;
45
class
vtkUnsignedShortArray
;
46
47
// Hidden STL reference: vtkstd::vector<vtkAbstractArray*>
48
class
MyStdVectorOfVtkAbstractArrays;
49
50
class
VTK_CHEMISTRY_EXPORT
vtkBlueObeliskData
:
public
vtkObject
51
{
52
public
:
53
vtkTypeMacro(
vtkBlueObeliskData
,
vtkObject
);
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
:
104
friend
class
vtkBlueObeliskDataParser
;
105
106
vtkBlueObeliskData
();
107
~
vtkBlueObeliskData
();
108
109
vtkSimpleMutexLock
*
WriteMutex
;
110
bool
Initialized
;
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
128
vtkNew<vtkStringArray>
Symbols
;
129
vtkNew<vtkStringArray>
LowerSymbols
;
130
131
// Element Names
132
vtkNew<vtkStringArray>
Names
;
133
vtkNew<vtkStringArray>
LowerNames
;
134
135
// Misc Strings
136
vtkNew<vtkStringArray>
PeriodicTableBlocks
;
137
vtkNew<vtkStringArray>
ElectronicConfigurations
;
138
vtkNew<vtkStringArray>
Families
;
// Non-Metal, Noblegas, Metalloids, etc
139
140
// Misc Data
141
vtkNew<vtkFloatArray>
Masses
;
// amu
142
vtkNew<vtkFloatArray>
ExactMasses
;
// amu
143
vtkNew<vtkFloatArray>
IonizationEnergies
;
// eV
144
vtkNew<vtkFloatArray>
ElectronAffinities
;
// eV
145
vtkNew<vtkFloatArray>
PaulingElectronegativities
;
// eV
146
vtkNew<vtkFloatArray>
CovalentRadii
;
// Angstrom
147
vtkNew<vtkFloatArray>
VDWRadii
;
// Angstom
148
vtkNew<vtkFloatArray>
DefaultColors
;
// rgb 3-tuples, [0.0,1.0]
149
vtkNew<vtkFloatArray>
BoilingPoints
;
// K
150
vtkNew<vtkFloatArray>
MeltingPoints
;
// K
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
Generated on Tue Jan 8 2013 05:45:22 for VTK by
1.8.1.2