vtkXMLMaterialReader Class Reference

#include <vtkXMLMaterialReader.h>

Inheritance diagram for vtkXMLMaterialReader:

Inheritance graph
[legend]
Collaboration diagram for vtkXMLMaterialReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Provide access to elements in Material files.

vtkXMLMaterialReader provides access to three types of vtkXMLDataElement found in XML Material Files. This class sorts them by type and integer id from 0-N for N elements of a specific type starting with the first instance found.

Design:
This class is basically a Facade for vtkXMLMaterialParser. Currently functionality is to only provide access to vtkXMLDataElements but further extensions may return higher level data structures.
Design:
Having both an vtkXMLMaterialParser and a vtkXMLMaterialReader is consistent with VTK's design for handling xml file and provides for future flexibility, that is better data handlers and interfacing with a DOM xml parser.
Design:
vtkProperty - defines values for some or all data members of vtkProperty
Design:
vtkVertexShader - defines vertex shaders
Design:
vtkFragmentShader - defines fragment shaders
Thanks:
Shader support in VTK includes key contributions by Gary Templet at Sandia National Labs.

Definition at line 56 of file vtkXMLMaterialReader.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void ReadMaterial ()
vtkXMLMaterialGetMaterial ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkXMLMaterialReaderSafeDownCast (vtkObject *o)
static vtkXMLMaterialReaderNew ()

Protected Member Functions

 vtkXMLMaterialReader ()
 ~vtkXMLMaterialReader ()
virtual void CreateXMLParser ()
virtual void DestroyXMLParser ()

Protected Attributes

char * FileName
vtkXMLMaterialParserXMLParser
vtkTimeStamp ParseTime

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 59 of file vtkXMLMaterialReader.h.


Constructor & Destructor Documentation

vtkXMLMaterialReader::vtkXMLMaterialReader (  )  [protected]

vtkXMLMaterialReader::~vtkXMLMaterialReader (  )  [protected]


Member Function Documentation

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

Reimplemented from vtkObject.

static int vtkXMLMaterialReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkXMLMaterialReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

void vtkXMLMaterialReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

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

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

Reimplemented from vtkObject.

virtual void vtkXMLMaterialReader::SetFileName ( const char *   )  [virtual]

Set and get file name.

virtual char* vtkXMLMaterialReader::GetFileName (  )  [virtual]

Set and get file name.

void vtkXMLMaterialReader::ReadMaterial (  ) 

Read the material file refered to in FileName. If the Reader hasn't changed since the last ReadMaterial(), it does not read the file again.

vtkXMLMaterial* vtkXMLMaterialReader::GetMaterial (  ) 

Get the Material representation read by the reader.

virtual void vtkXMLMaterialReader::CreateXMLParser (  )  [protected, virtual]

Create and vtkXMLParser to read the file

virtual void vtkXMLMaterialReader::DestroyXMLParser (  )  [protected, virtual]

Destroys the vtkXMLParser.


Member Data Documentation

char* vtkXMLMaterialReader::FileName [protected]

Definition at line 86 of file vtkXMLMaterialReader.h.

Definition at line 87 of file vtkXMLMaterialReader.h.

Definition at line 88 of file vtkXMLMaterialReader.h.


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

Generated on Sat Dec 27 14:00:43 2008 for VTK by  doxygen 1.5.6