/usr/include/vtk-6.1/vtkBlueObeliskData.h is in libvtk6-dev 6.1.0+dfsg2-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkBlueObeliskData.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkBlueObeliskData - Contains chemical data from the Blue
// Obelisk Data Repository
//
// .SECTION Description
// The Blue Obelisk Data Repository is a free, open repository of
// chemical information. This class is a container for this
// information.
//
// \note This class contains only the raw arrays parsed from the
// BODR. For more convenient access to this data, use the
// vtkPeriodicTable class.
//
// \note If you must use this class directly, consider using the
// static vtkBlueObeliskData object accessible through
// vtkPeriodicTable::GetBlueObeliskData(). This object is
// automatically populated on the first instantiation of
// vtkPeriodicTable.
#ifndef __vtkBlueObeliskData_h
#define __vtkBlueObeliskData_h
#include "vtkDomainsChemistryModule.h" // For export macro
#include "vtkObject.h"
#include "vtkNew.h" // For vtkNew
class vtkAbstractArray;
class vtkFloatArray;
class vtkStringArray;
class vtkSimpleMutexLock;
class vtkUnsignedShortArray;
// Hidden STL reference: vtkstd::vector<vtkAbstractArray*>
class MyStdVectorOfVtkAbstractArrays;
class VTKDOMAINSCHEMISTRY_EXPORT vtkBlueObeliskData : public vtkObject
{
public:
vtkTypeMacro(vtkBlueObeliskData,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkBlueObeliskData *New();
// Description:
// Fill this object using an internal vtkBlueObeliskDataParser
// instance. Check that the vtkSimpleMutexLock GetWriteMutex() is
// locked before calling this method on a static instance in a
// multithreaded environment.
void Initialize();
// Description:
// Check if this object has been initialized yet.
bool IsInitialized() { return this->Initialized;}
// Description:
// Access the mutex that protects the arrays during a call to
// Initialize()
vtkGetObjectMacro(WriteMutex, vtkSimpleMutexLock);
// Description:
// Return the number of elements for which this vtkBlueObeliskData
// instance contains information.
vtkGetMacro(NumberOfElements, unsigned short);
// Description:
// Access the raw arrays stored in this vtkBlueObeliskData.
vtkGetNewMacro(Symbols, vtkStringArray);
vtkGetNewMacro(LowerSymbols, vtkStringArray);
vtkGetNewMacro(Names, vtkStringArray);
vtkGetNewMacro(LowerNames, vtkStringArray);
vtkGetNewMacro(PeriodicTableBlocks, vtkStringArray);
vtkGetNewMacro(ElectronicConfigurations, vtkStringArray);
vtkGetNewMacro(Families, vtkStringArray);
vtkGetNewMacro(Masses, vtkFloatArray);
vtkGetNewMacro(ExactMasses, vtkFloatArray);
vtkGetNewMacro(IonizationEnergies, vtkFloatArray);
vtkGetNewMacro(ElectronAffinities, vtkFloatArray);
vtkGetNewMacro(PaulingElectronegativities, vtkFloatArray);
vtkGetNewMacro(CovalentRadii, vtkFloatArray);
vtkGetNewMacro(VDWRadii, vtkFloatArray);
vtkGetNewMacro(DefaultColors, vtkFloatArray);
vtkGetNewMacro(BoilingPoints, vtkFloatArray);
vtkGetNewMacro(MeltingPoints, vtkFloatArray);
vtkGetNewMacro(Periods, vtkUnsignedShortArray);
vtkGetNewMacro(Groups, vtkUnsignedShortArray);
protected:
friend class vtkBlueObeliskDataParser;
vtkBlueObeliskData();
~vtkBlueObeliskData();
vtkSimpleMutexLock *WriteMutex;
bool Initialized;
// Description:
// Allocate enough memory in each array for sz elements. ext is not
// used.
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
// Description:
// Reset each array.
virtual void Reset();
// Description:
// Free any unused memory in the member arrays
virtual void Squeeze();
unsigned short NumberOfElements;
// Lists all arrays
MyStdVectorOfVtkAbstractArrays *Arrays;
// Atomic Symbols
vtkNew<vtkStringArray> Symbols;
vtkNew<vtkStringArray> LowerSymbols;
// Element Names
vtkNew<vtkStringArray> Names;
vtkNew<vtkStringArray> LowerNames;
// Misc Strings
vtkNew<vtkStringArray> PeriodicTableBlocks;
vtkNew<vtkStringArray> ElectronicConfigurations;
vtkNew<vtkStringArray> Families; // Non-Metal, Noblegas, Metalloids, etc
// Misc Data
vtkNew<vtkFloatArray> Masses; // amu
vtkNew<vtkFloatArray> ExactMasses; // amu
vtkNew<vtkFloatArray> IonizationEnergies; // eV
vtkNew<vtkFloatArray> ElectronAffinities; // eV
vtkNew<vtkFloatArray> PaulingElectronegativities; // eV
vtkNew<vtkFloatArray> CovalentRadii; // Angstrom
vtkNew<vtkFloatArray> VDWRadii; // Angstom
vtkNew<vtkFloatArray> DefaultColors; // rgb 3-tuples, [0.0,1.0]
vtkNew<vtkFloatArray> BoilingPoints; // K
vtkNew<vtkFloatArray> MeltingPoints; // K
vtkNew<vtkUnsignedShortArray> Periods; // Row of periodic table
vtkNew<vtkUnsignedShortArray> Groups; // Column of periodic table
void PrintSelfIfExists(const char *, vtkObject *, ostream&, vtkIndent);
private:
vtkBlueObeliskData(const vtkBlueObeliskData&); // Not implemented.
void operator=(const vtkBlueObeliskData&); // Not implemented.
};
#endif
|