VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
vtkBlueObeliskDataParser Class Reference

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

#include <vtkBlueObeliskDataParser.h>

Inheritance diagram for vtkBlueObeliskDataParser:
Inheritance graph
[legend]
Collaboration diagram for vtkBlueObeliskDataParser:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkXMLParser Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 (vtkObject *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

 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
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 49 of file vtkBlueObeliskDataParser.h.


Member Typedef Documentation

Reimplemented from vtkXMLParser.

Definition at line 52 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 92 of file vtkBlueObeliskDataParser.h.


Constructor & Destructor Documentation

vtkBlueObeliskDataParser::vtkBlueObeliskDataParser ( ) [protected]
vtkBlueObeliskDataParser::~vtkBlueObeliskDataParser ( ) [protected]

Member Function Documentation

virtual const char* vtkBlueObeliskDataParser::GetClassName ( ) [virtual]

Reimplemented from vtkXMLParser.

static int vtkBlueObeliskDataParser::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkXMLParser.

virtual int vtkBlueObeliskDataParser::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkXMLParser.

static vtkBlueObeliskDataParser* vtkBlueObeliskDataParser::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkXMLParser.

static vtkBlueObeliskDataParser* vtkBlueObeliskDataParser::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkXMLParser.

virtual void vtkBlueObeliskDataParser::SetTarget ( vtkBlueObeliskData bodr) [virtual]

Set the target vtkBlueObeliskData object that this parser will populate

virtual int vtkBlueObeliskDataParser::Parse ( ) [virtual]

Start parsing

Reimplemented from vtkXMLParser.

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.

Reimplemented from vtkXMLParser.

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.

Reimplemented from vtkXMLParser.

void vtkBlueObeliskDataParser::StartElement ( const char *  name,
const char **  attr 
) [protected, virtual]

Reimplemented from vtkXMLParser.

void vtkBlueObeliskDataParser::EndElement ( const char *  name) [protected, virtual]

Reimplemented from vtkXMLParser.

void vtkBlueObeliskDataParser::CharacterDataHandler ( const char *  data,
int  length 
) [protected, virtual]

Reimplemented from vtkXMLParser.

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

Definition at line 82 of file vtkBlueObeliskDataParser.h.

Definition at line 84 of file vtkBlueObeliskDataParser.h.

Definition at line 88 of file vtkBlueObeliskDataParser.h.

Definition at line 114 of file vtkBlueObeliskDataParser.h.

Definition at line 115 of file vtkBlueObeliskDataParser.h.

Definition at line 116 of file vtkBlueObeliskDataParser.h.

Definition at line 117 of file vtkBlueObeliskDataParser.h.

Definition at line 118 of file vtkBlueObeliskDataParser.h.

Definition at line 119 of file vtkBlueObeliskDataParser.h.

Definition at line 120 of file vtkBlueObeliskDataParser.h.

Definition at line 121 of file vtkBlueObeliskDataParser.h.

Definition at line 122 of file vtkBlueObeliskDataParser.h.

Definition at line 123 of file vtkBlueObeliskDataParser.h.

Definition at line 124 of file vtkBlueObeliskDataParser.h.

Definition at line 125 of file vtkBlueObeliskDataParser.h.

Definition at line 126 of file vtkBlueObeliskDataParser.h.

Definition at line 127 of file vtkBlueObeliskDataParser.h.

Definition at line 128 of file vtkBlueObeliskDataParser.h.

Definition at line 129 of file vtkBlueObeliskDataParser.h.

Definition at line 130 of file vtkBlueObeliskDataParser.h.

Definition at line 131 of file vtkBlueObeliskDataParser.h.


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