#include <vtkXMLDataElement.h>
Inheritance diagram for vtkXMLDataElement:
vtkXMLDataElement is used by vtkXMLDataParser to represent an XML element. It provides methods to access the element's attributes and nested elements in a convenient manner. This allows easy traversal of an input XML file by vtkXMLReader and its subclasses.
Definition at line 38 of file vtkXMLDataElement.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) |
const char * | GetAttribute (const char *name) |
void | SetAttribute (const char *name, const char *value) |
int | GetWordTypeAttribute (const char *name, int &value) |
const char * | GetAttributeName (int idx) |
int | GetNumberOfNestedElements () |
vtkXMLDataElement * | GetNestedElement (int index) |
void | AddNestedElement (vtkXMLDataElement *element) |
vtkXMLDataElement * | LookupElement (const char *id) |
virtual char * | GetName () |
virtual void | SetName (const char *) |
virtual char * | GetId () |
virtual void | SetId (const char *) |
int | GetScalarAttribute (const char *name, int &value) |
int | GetScalarAttribute (const char *name, float &value) |
int | GetScalarAttribute (const char *name, double &value) |
int | GetScalarAttribute (const char *name, unsigned long &value) |
void | SetIntAttribute (const char *name, int value) |
void | SetFloatAttribute (const char *name, float value) |
void | SetDoubleAttribute (const char *name, double value) |
void | SetUnsignedLongAttribute (const char *name, unsigned long value) |
int | GetVectorAttribute (const char *name, int length, int *value) |
int | GetVectorAttribute (const char *name, int length, float *value) |
int | GetVectorAttribute (const char *name, int length, double *value) |
int | GetVectorAttribute (const char *name, int length, unsigned long *value) |
void | SetVectorAttribute (const char *name, int length, const int *value) |
void | SetVectorAttribute (const char *name, int length, const float *value) |
void | SetVectorAttribute (const char *name, int length, const double *value) |
void | SetVectorAttribute (const char *name, int length, const unsigned long *value) |
virtual int | GetNumberOfAttributes () |
vtkXMLDataElement * | GetParent () |
void | SetParent (vtkXMLDataElement *parent) |
vtkXMLDataElement * | FindNestedElement (const char *id) |
vtkXMLDataElement * | FindNestedElementWithName (const char *name) |
vtkXMLDataElement * | FindNestedElementWithNameAndId (const char *name, const char *id) |
vtkXMLDataElement * | FindNestedElementWithNameAndAttribute (const char *name, const char *att_name, const char *att_value) |
virtual unsigned long | GetXMLByteIndex () |
virtual void | SetXMLByteIndex (unsigned long) |
Static Public Member Functions | |
int | IsTypeOf (const char *type) |
vtkXMLDataElement * | SafeDownCast (vtkObject *o) |
vtkXMLDataElement * | New () |
Protected Member Functions | |
vtkXMLDataElement () | |
~vtkXMLDataElement () | |
void | ReadXMLAttributes (const char **atts) |
void | SeekInlineDataPosition (vtkXMLDataParser *parser) |
void | PrintXML (ostream &os, vtkIndent indent) |
vtkXMLDataElement * | LookupElementInScope (const char *id) |
vtkXMLDataElement * | LookupElementUpScope (const char *id) |
Static Protected Member Functions | |
int | IsSpace (char c) |
Protected Attributes | |
char * | Name |
char * | Id |
unsigned long | XMLByteIndex |
unsigned long | InlineDataPosition |
char ** | AttributeNames |
char ** | AttributeValues |
int | NumberOfAttributes |
int | AttributesSize |
int | NumberOfNestedElements |
int | NestedElementsSize |
vtkXMLDataElement ** | NestedElements |
vtkXMLDataElement * | Parent |
Friends | |
class | vtkXMLDataParser |
|
Reimplemented from vtkObject. Definition at line 41 of file vtkXMLDataElement.h. |
|
|
|
|
|
Reimplemented from vtkObject. |
|
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. |
|
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. |
|
Reimplemented from vtkObject. |
|
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. |
|
Set/Get the name of the element. This is its XML tag. |
|
Set/Get the name of the element. This is its XML tag. |
|
Set/Get the value of the id attribute of the element, if any. |
|
Set/Get the value of the id attribute of the element, if any. |
|
Get the attribute with the given name. If it doesn't exist, returns 0. |
|
Set the attribute with the given name and value. If it doesn't exist, adds it. |
|
Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted. |
|
Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted. |
|
Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted. |
|
Get the attribute with the given name and converted to a scalar value. Returns whether value was extracted. |
|
Set the attribute with the given name. We can not use the same GetScalarAttribute() construct since the compiler will not be able to resolve between SetAttribute(..., int) and SetAttribute(..., unsigned long). |
|
Set the attribute with the given name. We can not use the same GetScalarAttribute() construct since the compiler will not be able to resolve between SetAttribute(..., int) and SetAttribute(..., unsigned long). |
|
Set the attribute with the given name. We can not use the same GetScalarAttribute() construct since the compiler will not be able to resolve between SetAttribute(..., int) and SetAttribute(..., unsigned long). |
|
Set the attribute with the given name. We can not use the same GetScalarAttribute() construct since the compiler will not be able to resolve between SetAttribute(..., int) and SetAttribute(..., unsigned long). |
|
Get the attribute with the given name and converted to a scalar value. Returns length of vector read. |
|
Get the attribute with the given name and converted to a scalar value. Returns length of vector read. |
|
Get the attribute with the given name and converted to a scalar value. Returns length of vector read. |
|
Get the attribute with the given name and converted to a scalar value. Returns length of vector read. |
|
Set the attribute with the given name. |
|
Set the attribute with the given name. |
|
Set the attribute with the given name. |
|
Set the attribute with the given name. |
|
Get the attribute with the given name and converted to a word type such as VTK_FLOAT or VTK_UNSIGNED_LONG. |
|
Get the number of attributes. |
|
Get the n-th attribute name. Returns 0 if there is no such attribute. |
|
Set/Get the parent of this element. |
|
Set/Get the parent of this element. |
|
Get the number of elements nested in this one. |
|
Get the element nested in this one at the given index. |
|
Add nested element |
|
Find a nested element with the given id, given name, or given name and id. |
|
Find a nested element with the given id, given name, or given name and id. |
|
Find a nested element with the given id, given name, or given name and id. |
|
Find a nested element with the given id, given name, or given name and id. |
|
Lookup the element with the given id, starting at this scope. |
|
Set/Get the offset from the beginning of the XML document to this element. |
|
Set/Get the offset from the beginning of the XML document to this element. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 201 of file vtkXMLDataElement.h. |
|
Definition at line 164 of file vtkXMLDataElement.h. |
|
Definition at line 167 of file vtkXMLDataElement.h. |
|
Definition at line 170 of file vtkXMLDataElement.h. |
|
Definition at line 173 of file vtkXMLDataElement.h. |
|
Definition at line 176 of file vtkXMLDataElement.h. |
|
Definition at line 177 of file vtkXMLDataElement.h. |
|
Definition at line 178 of file vtkXMLDataElement.h. |
|
Definition at line 179 of file vtkXMLDataElement.h. |
|
Definition at line 182 of file vtkXMLDataElement.h. |
|
Definition at line 183 of file vtkXMLDataElement.h. |
|
Definition at line 184 of file vtkXMLDataElement.h. |
|
Definition at line 187 of file vtkXMLDataElement.h. |