VTK
|
Parses VTK Material file. More...
#include <vtkXMLMaterialParser.h>
Public Types | |
typedef vtkXMLParser | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkXMLMaterialParser * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkXMLMaterial * | GetMaterial () |
void | SetMaterial (vtkXMLMaterial *) |
virtual int | Parse () |
virtual int | Parse (const char *inputString) |
virtual int | Parse (const char *inputString, unsigned int length) |
Static Public Member Functions | |
static vtkXMLMaterialParser * | New () |
static int | IsTypeOf (const char *type) |
static vtkXMLMaterialParser * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
virtual void | StartElement (const char *name, const char **atts) |
virtual void | EndElement (const char *) |
virtual void | CharacterDataHandler (const char *data, int length) |
Protected Attributes | |
vtkXMLMaterial * | Material |
vtkXMLMaterialParserInternals * | Internals |
virtual int | InitializeParser () |
vtkXMLMaterialParser () | |
~vtkXMLMaterialParser () |
Parses VTK Material file.
vtkXMLMaterialParser parses a VTK Material file and provides that file's description of a number of vertex and fragment shaders along with data values specified for data members of vtkProperty. This material is to be applied to an actor through it's vtkProperty and augments VTK's concept of a vtkProperty to include explicitly include vertex and fragment shaders and parameter settings for those shaders. This effectively makes reflectance models and other shaders a material property. If no shaders are specified VTK should default to standard rendering.
Definition at line 85 of file vtkXMLMaterialParser.h.
Reimplemented from vtkXMLParser.
Definition at line 89 of file vtkXMLMaterialParser.h.
vtkXMLMaterialParser::vtkXMLMaterialParser | ( | ) | [protected] |
Overridden to clean up internal structures before the chunk-parsing begins.
vtkXMLMaterialParser::~vtkXMLMaterialParser | ( | ) | [protected] |
Overridden to clean up internal structures before the chunk-parsing begins.
static vtkXMLMaterialParser* vtkXMLMaterialParser::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkXMLParser.
static int vtkXMLMaterialParser::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 vtkXMLMaterialParser::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 vtkXMLMaterialParser* vtkXMLMaterialParser::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkXMLParser.
virtual vtkObjectBase* vtkXMLMaterialParser::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkXMLParser.
Reimplemented from vtkXMLParser.
void vtkXMLMaterialParser::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 vtkXMLParser.
virtual vtkXMLMaterial* vtkXMLMaterialParser::GetMaterial | ( | ) | [virtual] |
Set/Get the vtkXMLMaterial representation of the parsed material.
void vtkXMLMaterialParser::SetMaterial | ( | vtkXMLMaterial * | ) |
Set/Get the vtkXMLMaterial representation of the parsed material.
virtual int vtkXMLMaterialParser::Parse | ( | ) | [virtual] |
Overridden to initialize the internal structures before the parsing begins.
Reimplemented from vtkXMLParser.
virtual int vtkXMLMaterialParser::Parse | ( | const char * | inputString | ) | [virtual] |
Overridden to initialize the internal structures before the parsing begins.
Reimplemented from vtkXMLParser.
virtual int vtkXMLMaterialParser::Parse | ( | const char * | inputString, |
unsigned int | length | ||
) | [virtual] |
Overridden to initialize the internal structures before the parsing begins.
Reimplemented from vtkXMLParser.
virtual int vtkXMLMaterialParser::InitializeParser | ( | ) | [virtual] |
Overridden to clean up internal structures before the chunk-parsing begins.
Reimplemented from vtkXMLParser.
virtual void vtkXMLMaterialParser::StartElement | ( | const char * | name, |
const char ** | atts | ||
) | [protected, virtual] |
Event for handling the start of an element
Reimplemented from vtkXMLParser.
virtual void vtkXMLMaterialParser::EndElement | ( | const char * | ) | [protected, virtual] |
Event for handling the end of an element
Reimplemented from vtkXMLParser.
virtual void vtkXMLMaterialParser::CharacterDataHandler | ( | const char * | data, |
int | length | ||
) | [protected, virtual] |
Handle character data, not yet implemented
Reimplemented from vtkXMLParser.
vtkXMLMaterial* vtkXMLMaterialParser::Material [protected] |
Definition at line 124 of file vtkXMLMaterialParser.h.
vtkXMLMaterialParserInternals* vtkXMLMaterialParser::Internals [protected] |
Definition at line 125 of file vtkXMLMaterialParser.h.