VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
vtkBlueObeliskDataParser Class Reference

Fill a vtkBlueObeliskData container with data from the BODR XML dataset. More...

#include <vtkBlueObeliskDataParser.h>

Inherits vtkXMLParser.

Collaboration diagram for vtkBlueObeliskDataParser:
[legend]

Public Types

typedef vtkXMLParser Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkBlueObeliskDataParserNewInstance () const
 
virtual void SetTarget (vtkBlueObeliskData *bodr)
 
virtual int Parse ()
 
virtual int Parse (const char *)
 
virtual int Parse (const char *, unsigned int)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkBlueObeliskDataParserSafeDownCast (vtkObjectBase *o)
 
static vtkBlueObeliskDataParserNew ()
 

Protected Types

enum  AtomValueType {
  None = 0, AtomicNumber, Symbol, Name,
  PeriodicTableBlock, ElectronicConfiguration, Family, Mass,
  ExactMass, IonizationEnergy, ElectronAffinity, PaulingElectronegativity,
  CovalentRadius, VDWRadius, DefaultColor, BoilingPoint,
  MeltingPoint, Period, Group
}
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkBlueObeliskDataParser ()
 
 ~vtkBlueObeliskDataParser ()
 
void StartElement (const char *name, const char **attr)
 
void EndElement (const char *name)
 
void CharacterDataHandler (const char *data, int length)
 
void SetCurrentValue (const char *data, int length)
 
void SetCurrentValue (const char *data)
 
void NewAtomStarted (const char **attr)
 
void NewAtomFinished ()
 
void NewValueStarted (const char **attr)
 
void NewValueFinished ()
 

Protected Attributes

vtkBlueObeliskDataTarget
 
bool IsProcessingAtom
 
bool IsProcessingValue
 
std::string CharacterDataValueBuffer
 
enum
vtkBlueObeliskDataParser::AtomValueType 
CurrentValueType
 
int CurrentAtomicNumber
 
vtkStdStringCurrentSymbol
 
vtkStdStringCurrentName
 
vtkStdStringCurrentPeriodicTableBlock
 
vtkStdStringCurrentElectronicConfiguration
 
vtkStdStringCurrentFamily
 
float CurrentMass
 
float CurrentExactMass
 
float CurrentIonizationEnergy
 
float CurrentElectronAffinity
 
float CurrentPaulingElectronegativity
 
float CurrentCovalentRadius
 
float CurrentVDWRadius
 
float CurrentDefaultColor [3]
 
float CurrentBoilingPoint
 
float CurrentMeltingPoint
 
unsigned int CurrentPeriod
 
unsigned int CurrentGroup
 

Detailed Description

Fill a vtkBlueObeliskData container with data from the BODR XML dataset.

The Blue Obelisk Data Repository is a free, open repository of chemical information. This class extracts the BODR information into vtk arrays, which are stored in a vtkBlueObeliskData object.

Warning
The vtkBlueObeliskDataParser class should never need to be used directly. For convenient access to the BODR data, use vtkPeriodicTable. For access to the raw arrays produced by this parser, see the vtkBlueObeliskData class. A static vtkBlueObeliskData object is accessible via vtkPeriodicTable::GetBlueObeliskData().
See Also
vtkPeriodicTable vtkBlueObeliskData

Definition at line 50 of file vtkBlueObeliskDataParser.h.

Member Typedef Documentation

Definition at line 53 of file vtkBlueObeliskDataParser.h.

Member Enumeration Documentation

Enumerator
None 
AtomicNumber 
Symbol 
Name 
PeriodicTableBlock 
ElectronicConfiguration 
Family 
Mass 
ExactMass 
IonizationEnergy 
ElectronAffinity 
PaulingElectronegativity 
CovalentRadius 
VDWRadius 
DefaultColor 
BoilingPoint 
MeltingPoint 
Period 
Group 

Definition at line 95 of file vtkBlueObeliskDataParser.h.

Constructor & Destructor Documentation

vtkBlueObeliskDataParser::vtkBlueObeliskDataParser ( )
protected
vtkBlueObeliskDataParser::~vtkBlueObeliskDataParser ( )
protected

Member Function Documentation

static int vtkBlueObeliskDataParser::IsTypeOf ( const char *  type)
static
virtual int vtkBlueObeliskDataParser::IsA ( const char *  type)
virtual
static vtkBlueObeliskDataParser* vtkBlueObeliskDataParser::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkBlueObeliskDataParser::NewInstanceInternal ( ) const
protectedvirtual
vtkBlueObeliskDataParser* vtkBlueObeliskDataParser::NewInstance ( ) const
static vtkBlueObeliskDataParser* vtkBlueObeliskDataParser::New ( )
static
virtual void vtkBlueObeliskDataParser::SetTarget ( vtkBlueObeliskData bodr)
virtual

Set the target vtkBlueObeliskData object that this parser will populate

virtual int vtkBlueObeliskDataParser::Parse ( )
virtual

Start parsing

virtual int vtkBlueObeliskDataParser::Parse ( const char *  )
virtual

These are only implemented to prevent compiler warnings about hidden virtual overloads. This function simply call Parse(); the arguments are ignored.

virtual int vtkBlueObeliskDataParser::Parse ( const char *  ,
unsigned  int 
)
virtual

These are only implemented to prevent compiler warnings about hidden virtual overloads. This function simply call Parse(); the arguments are ignored.

void vtkBlueObeliskDataParser::StartElement ( const char *  name,
const char **  attr 
)
protected
void vtkBlueObeliskDataParser::EndElement ( const char *  name)
protected
void vtkBlueObeliskDataParser::CharacterDataHandler ( const char *  data,
int  length 
)
protected
void vtkBlueObeliskDataParser::SetCurrentValue ( const char *  data,
int  length 
)
protected
void vtkBlueObeliskDataParser::SetCurrentValue ( const char *  data)
protected
void vtkBlueObeliskDataParser::NewAtomStarted ( const char **  attr)
protected
void vtkBlueObeliskDataParser::NewAtomFinished ( )
protected
void vtkBlueObeliskDataParser::NewValueStarted ( const char **  attr)
protected
void vtkBlueObeliskDataParser::NewValueFinished ( )
protected

Member Data Documentation

vtkBlueObeliskData* vtkBlueObeliskDataParser::Target
protected

Definition at line 83 of file vtkBlueObeliskDataParser.h.

bool vtkBlueObeliskDataParser::IsProcessingAtom
protected

Definition at line 85 of file vtkBlueObeliskDataParser.h.

bool vtkBlueObeliskDataParser::IsProcessingValue
protected

Definition at line 89 of file vtkBlueObeliskDataParser.h.

std::string vtkBlueObeliskDataParser::CharacterDataValueBuffer
protected

Definition at line 93 of file vtkBlueObeliskDataParser.h.

enum vtkBlueObeliskDataParser::AtomValueType vtkBlueObeliskDataParser::CurrentValueType
protected
int vtkBlueObeliskDataParser::CurrentAtomicNumber
protected

Definition at line 117 of file vtkBlueObeliskDataParser.h.

vtkStdString* vtkBlueObeliskDataParser::CurrentSymbol
protected

Definition at line 118 of file vtkBlueObeliskDataParser.h.

vtkStdString* vtkBlueObeliskDataParser::CurrentName
protected

Definition at line 119 of file vtkBlueObeliskDataParser.h.

vtkStdString* vtkBlueObeliskDataParser::CurrentPeriodicTableBlock
protected

Definition at line 120 of file vtkBlueObeliskDataParser.h.

vtkStdString* vtkBlueObeliskDataParser::CurrentElectronicConfiguration
protected

Definition at line 121 of file vtkBlueObeliskDataParser.h.

vtkStdString* vtkBlueObeliskDataParser::CurrentFamily
protected

Definition at line 122 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentMass
protected

Definition at line 123 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentExactMass
protected

Definition at line 124 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentIonizationEnergy
protected

Definition at line 125 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentElectronAffinity
protected

Definition at line 126 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentPaulingElectronegativity
protected

Definition at line 127 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentCovalentRadius
protected

Definition at line 128 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentVDWRadius
protected

Definition at line 129 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentDefaultColor[3]
protected

Definition at line 130 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentBoilingPoint
protected

Definition at line 131 of file vtkBlueObeliskDataParser.h.

float vtkBlueObeliskDataParser::CurrentMeltingPoint
protected

Definition at line 132 of file vtkBlueObeliskDataParser.h.

unsigned int vtkBlueObeliskDataParser::CurrentPeriod
protected

Definition at line 133 of file vtkBlueObeliskDataParser.h.

unsigned int vtkBlueObeliskDataParser::CurrentGroup
protected

Definition at line 134 of file vtkBlueObeliskDataParser.h.


The documentation for this class was generated from the following file: