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

Provide access to elements in Material files. More...

#include <vtkXMLMaterialReader.h>

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

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
virtual void CreateXMLParser ()
virtual void DestroyXMLParser ()

Protected Attributes

char * FileName
vtkXMLMaterialParserXMLParser
vtkTimeStamp ParseTime
vtkXMLMaterialGetMaterial ()
 vtkXMLMaterialReader ()
 ~vtkXMLMaterialReader ()

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 57 of file vtkXMLMaterialReader.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 60 of file vtkXMLMaterialReader.h.


Constructor & Destructor Documentation

Get the Material representation read by the reader.

Get the Material representation read by the reader.


Member Function Documentation

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkXMLMaterialReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

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.

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.

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

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 89 of file vtkXMLMaterialReader.h.

Definition at line 90 of file vtkXMLMaterialReader.h.

Definition at line 91 of file vtkXMLMaterialReader.h.


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