VTK
9.1.0
|
Represents an XML element and those nested inside. More...
#include <vtkXMLDataElement.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkXMLDataElement * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
const char * | GetAttribute (const char *name) |
Get the attribute with the given name. More... | |
void | SetAttribute (const char *name, const char *value) |
Set the attribute with the given name and value. More... | |
int | GetScalarAttribute (const char *name, long long &value) |
int | GetVectorAttribute (const char *name, int length, long long *value) |
void | SetVectorAttribute (const char *name, int length, long long const *value) |
int | GetScalarAttribute (const char *name, unsigned long long &value) |
int | GetVectorAttribute (const char *name, int length, unsigned long long *value) |
void | SetVectorAttribute (const char *name, int length, unsigned long long const *value) |
int | GetWordTypeAttribute (const char *name, int &value) |
Get the attribute with the given name and converted to a word type. More... | |
const char * | GetAttributeName (int idx) |
Get the n-th attribute name. More... | |
const char * | GetAttributeValue (int idx) |
Get the n-th attribute value. More... | |
virtual vtkXMLDataElement * | GetRoot () |
Get root of the XML tree this element is part of. More... | |
int | GetNumberOfNestedElements () |
Get the number of elements nested in this one. More... | |
vtkXMLDataElement * | GetNestedElement (int index) |
Get the element nested in this one at the given index. More... | |
void | AddNestedElement (vtkXMLDataElement *element) |
Add nested element. More... | |
virtual void | RemoveNestedElement (vtkXMLDataElement *) |
Remove nested element. More... | |
virtual void | RemoveAllNestedElements () |
Remove all nested elements. More... | |
vtkXMLDataElement * | LookupElementWithName (const char *name) |
Find the first nested element with given name. More... | |
vtkXMLDataElement * | LookupElement (const char *id) |
Lookup the element with the given id, starting at this scope. More... | |
virtual int | IsEqualTo (vtkXMLDataElement *elem) |
Check if the instance has the same name, attributes, character data and nested elements contents than the given element (this method is applied recursively on the nested elements, and they must be stored in the same order). More... | |
virtual void | DeepCopy (vtkXMLDataElement *elem) |
Copy this element from another of the same type (elem), recursively. More... | |
virtual char * | GetName () |
Set/Get the name of the element. More... | |
virtual void | SetName (const char *_arg) |
Set/Get the name of the element. More... | |
virtual char * | GetId () |
Set/Get the value of the id attribute of the element, if any. More... | |
virtual void | SetId (const char *) |
Set/Get the value of the id attribute of the element, if any. More... | |
void | SetCharacterData (const char *data, int length) |
Set/Get the character data between XML start/end tags. More... | |
void | AddCharacterData (const char *c, size_t length) |
Set/Get the character data between XML start/end tags. More... | |
virtual char * | GetCharacterData () |
Set/Get the character data between XML start/end tags. More... | |
int | GetScalarAttribute (const char *name, int &value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetScalarAttribute (const char *name, float &value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetScalarAttribute (const char *name, double &value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetScalarAttribute (const char *name, long &value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetScalarAttribute (const char *name, unsigned long &value) |
Get the attribute with the given name and converted to a scalar value. More... | |
void | SetIntAttribute (const char *name, int value) |
Set the attribute with the given name. More... | |
void | SetFloatAttribute (const char *name, float value) |
Set the attribute with the given name. More... | |
void | SetDoubleAttribute (const char *name, double value) |
Set the attribute with the given name. More... | |
void | SetUnsignedLongAttribute (const char *name, unsigned long value) |
Set the attribute with the given name. More... | |
int | GetVectorAttribute (const char *name, int length, int *value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetVectorAttribute (const char *name, int length, float *value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetVectorAttribute (const char *name, int length, double *value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetVectorAttribute (const char *name, int length, long *value) |
Get the attribute with the given name and converted to a scalar value. More... | |
int | GetVectorAttribute (const char *name, int length, unsigned long *value) |
Get the attribute with the given name and converted to a scalar value. More... | |
void | SetVectorAttribute (const char *name, int length, const int *value) |
Set the attribute with the given name. More... | |
void | SetVectorAttribute (const char *name, int length, const float *value) |
Set the attribute with the given name. More... | |
void | SetVectorAttribute (const char *name, int length, const double *value) |
Set the attribute with the given name. More... | |
void | SetVectorAttribute (const char *name, int length, const unsigned long *value) |
Set the attribute with the given name. More... | |
virtual int | GetNumberOfAttributes () |
Get the number of attributes. More... | |
virtual void | RemoveAttribute (const char *name) |
Remove one or all attributes. More... | |
virtual void | RemoveAllAttributes () |
Remove one or all attributes. More... | |
vtkXMLDataElement * | GetParent () |
Set/Get the parent of this element. More... | |
void | SetParent (vtkXMLDataElement *parent) |
Set/Get the parent of this element. More... | |
vtkXMLDataElement * | FindNestedElement (const char *id) |
Find the first nested element with the given id, given name, or given name and id. More... | |
vtkXMLDataElement * | FindNestedElementWithName (const char *name) |
Find the first nested element with the given id, given name, or given name and id. More... | |
vtkXMLDataElement * | FindNestedElementWithNameAndId (const char *name, const char *id) |
Find the first nested element with the given id, given name, or given name and id. More... | |
vtkXMLDataElement * | FindNestedElementWithNameAndAttribute (const char *name, const char *att_name, const char *att_value) |
Find the first nested element with the given id, given name, or given name and id. More... | |
virtual vtkTypeInt64 | GetXMLByteIndex () |
Set/Get the offset from the beginning of the XML document to this element. More... | |
virtual void | SetXMLByteIndex (vtkTypeInt64) |
Set/Get the offset from the beginning of the XML document to this element. More... | |
virtual void | SetAttributeEncoding (int) |
Get/Set the internal character encoding of the attributes. More... | |
virtual int | GetAttributeEncoding () |
Get/Set the internal character encoding of the attributes. More... | |
void | PrintXML (ostream &os, vtkIndent indent) |
Prints element tree as XML. More... | |
void | PrintXML (VTK_FILEPATH const char *fname) |
Prints element tree as XML. More... | |
virtual int | GetCharacterDataWidth () |
Get/Set the width (in number of fields) that character data (that between open and closing tags ie. More... | |
virtual void | SetCharacterDataWidth (int) |
Get/Set the width (in number of fields) that character data (that between open and closing tags ie. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkXMLDataElement * | SafeDownCast (vtkObjectBase *o) |
static vtkXMLDataElement * | New () |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More... | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkXMLDataElement () | |
~vtkXMLDataElement () override | |
virtual vtkTypeInt64 | GetInlineDataPosition () |
virtual void | SetInlineDataPosition (vtkTypeInt64) |
vtkXMLDataElement * | LookupElementInScope (const char *id) |
vtkXMLDataElement * | LookupElementUpScope (const char *id) |
void | PrintCharacterData (ostream &os, vtkIndent indent) |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Static Protected Member Functions | |
static int | IsSpace (char c) |
static void | PrintWithEscapedData (ostream &os, const char *data) |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
Protected Attributes | |
char * | Name |
char * | Id |
int | CharacterDataWidth |
char * | CharacterData |
size_t | CharacterDataBlockSize |
size_t | CharacterDataBufferSize |
size_t | EndOfCharacterData |
int | IgnoreCharacterData |
vtkTypeInt64 | InlineDataPosition |
vtkTypeInt64 | XMLByteIndex |
char ** | AttributeNames |
char ** | AttributeValues |
int | NumberOfAttributes |
int | AttributesSize |
int | AttributeEncoding |
int | NumberOfNestedElements |
int | NestedElementsSize |
vtkXMLDataElement ** | NestedElements |
vtkXMLDataElement * | Parent |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
std::atomic< int32_t > | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkXMLDataParser |
class | vtkXMLMaterialParser |
Represents an XML element and those nested inside.
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 36 of file vtkXMLDataElement.h.
Definition at line 39 of file vtkXMLDataElement.h.
|
protected |
|
overrideprotected |
|
static |
|
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 vtkObjectBase.
|
static |
|
protectedvirtual |
vtkXMLDataElement * vtkXMLDataElement::NewInstance | ( | ) | const |
|
overridevirtual |
|
static |
|
virtual |
Set/Get the name of the element.
This is its XML tag.
|
virtual |
Set/Get the name of the element.
This is its XML tag.
|
virtual |
Set/Get the value of the id attribute of the element, if any.
|
virtual |
Set/Get the value of the id attribute of the element, if any.
const char * vtkXMLDataElement::GetAttribute | ( | const char * | name | ) |
Get the attribute with the given name.
If it doesn't exist, returns 0.
void vtkXMLDataElement::SetAttribute | ( | const char * | name, |
const char * | value | ||
) |
Set the attribute with the given name and value.
If it doesn't exist, adds it.
void vtkXMLDataElement::SetCharacterData | ( | const char * | data, |
int | length | ||
) |
Set/Get the character data between XML start/end tags.
|
inline |
Set/Get the character data between XML start/end tags.
Definition at line 350 of file vtkXMLDataElement.h.
|
virtual |
Set/Get the character data between XML start/end tags.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
int & | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns whether value was extracted.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
float & | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns whether value was extracted.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
double & | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns whether value was extracted.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
long & | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns whether value was extracted.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
unsigned long & | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns whether value was extracted.
void vtkXMLDataElement::SetIntAttribute | ( | const char * | name, |
int | value | ||
) |
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).
void vtkXMLDataElement::SetFloatAttribute | ( | const char * | name, |
float | value | ||
) |
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).
void vtkXMLDataElement::SetDoubleAttribute | ( | const char * | name, |
double | value | ||
) |
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).
void vtkXMLDataElement::SetUnsignedLongAttribute | ( | const char * | name, |
unsigned long | value | ||
) |
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).
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
int * | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns length of vector read.
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
float * | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns length of vector read.
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
double * | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns length of vector read.
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
long * | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns length of vector read.
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
unsigned long * | value | ||
) |
Get the attribute with the given name and converted to a scalar value.
Returns length of vector read.
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
const int * | value | ||
) |
Set the attribute with the given name.
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
const float * | value | ||
) |
Set the attribute with the given name.
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
const double * | value | ||
) |
Set the attribute with the given name.
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
const unsigned long * | value | ||
) |
Set the attribute with the given name.
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
long long & | value | ||
) |
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
long long * | value | ||
) |
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
long long const * | value | ||
) |
int vtkXMLDataElement::GetScalarAttribute | ( | const char * | name, |
unsigned long long & | value | ||
) |
int vtkXMLDataElement::GetVectorAttribute | ( | const char * | name, |
int | length, | ||
unsigned long long * | value | ||
) |
void vtkXMLDataElement::SetVectorAttribute | ( | const char * | name, |
int | length, | ||
unsigned long long const * | value | ||
) |
int vtkXMLDataElement::GetWordTypeAttribute | ( | const char * | name, |
int & | value | ||
) |
Get the attribute with the given name and converted to a word type.
Word types can be VTK_TYPE_FLOAT32
, VTK_TYPE_FLOAT64
, VTK_INT8
, VTK_UINT8
, VTK_INT16
, VTK_UINT16
, VTK_INT32
, VTK_UINT32
, VTK_INT64
, VTK_UINT64
, VTK_STRING
, or VTK_BIT
.
|
virtual |
Get the number of attributes.
const char * vtkXMLDataElement::GetAttributeName | ( | int | idx | ) |
Get the n-th attribute name.
Returns 0 if there is no such attribute.
const char * vtkXMLDataElement::GetAttributeValue | ( | int | idx | ) |
Get the n-th attribute value.
Returns 0 if there is no such attribute.
|
virtual |
Remove one or all attributes.
|
virtual |
Remove one or all attributes.
vtkXMLDataElement * vtkXMLDataElement::GetParent | ( | ) |
Set/Get the parent of this element.
void vtkXMLDataElement::SetParent | ( | vtkXMLDataElement * | parent | ) |
Set/Get the parent of this element.
|
virtual |
Get root of the XML tree this element is part of.
int vtkXMLDataElement::GetNumberOfNestedElements | ( | ) |
Get the number of elements nested in this one.
vtkXMLDataElement * vtkXMLDataElement::GetNestedElement | ( | int | index | ) |
Get the element nested in this one at the given index.
void vtkXMLDataElement::AddNestedElement | ( | vtkXMLDataElement * | element | ) |
Add nested element.
|
virtual |
Remove nested element.
|
virtual |
Remove all nested elements.
vtkXMLDataElement * vtkXMLDataElement::FindNestedElement | ( | const char * | id | ) |
Find the first nested element with the given id, given name, or given name and id.
WARNING: the search is only performed on the children, not the grand-children.
vtkXMLDataElement * vtkXMLDataElement::FindNestedElementWithName | ( | const char * | name | ) |
Find the first nested element with the given id, given name, or given name and id.
WARNING: the search is only performed on the children, not the grand-children.
vtkXMLDataElement * vtkXMLDataElement::FindNestedElementWithNameAndId | ( | const char * | name, |
const char * | id | ||
) |
Find the first nested element with the given id, given name, or given name and id.
WARNING: the search is only performed on the children, not the grand-children.
vtkXMLDataElement * vtkXMLDataElement::FindNestedElementWithNameAndAttribute | ( | const char * | name, |
const char * | att_name, | ||
const char * | att_value | ||
) |
Find the first nested element with the given id, given name, or given name and id.
WARNING: the search is only performed on the children, not the grand-children.
vtkXMLDataElement * vtkXMLDataElement::LookupElementWithName | ( | const char * | name | ) |
Find the first nested element with given name.
WARNING: the search is performed on the whole XML tree.
vtkXMLDataElement * vtkXMLDataElement::LookupElement | ( | const char * | id | ) |
Lookup the element with the given id, starting at this scope.
|
virtual |
Set/Get the offset from the beginning of the XML document to this element.
|
virtual |
Set/Get the offset from the beginning of the XML document to this element.
|
virtual |
Check if the instance has the same name, attributes, character data and nested elements contents than the given element (this method is applied recursively on the nested elements, and they must be stored in the same order).
Warning: Id, Parent, XMLByteIndex are ignored.
|
virtual |
Copy this element from another of the same type (elem), recursively.
Old attributes and nested elements are removed, new ones are created given the contents of 'elem'. Warning: Parent is ignored.
|
virtual |
Get/Set the internal character encoding of the attributes.
Default type is VTK_ENCODING_UTF_8. Note that a vtkXMLDataParser has its own AttributesEncoding ivar. If this ivar is set to something other than VTK_ENCODING_NONE, it will be used to set the attribute encoding of each vtkXMLDataElement created by this vtkXMLDataParser.
|
virtual |
Get/Set the internal character encoding of the attributes.
Default type is VTK_ENCODING_UTF_8. Note that a vtkXMLDataParser has its own AttributesEncoding ivar. If this ivar is set to something other than VTK_ENCODING_NONE, it will be used to set the attribute encoding of each vtkXMLDataElement created by this vtkXMLDataParser.
void vtkXMLDataElement::PrintXML | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Prints element tree as XML.
void vtkXMLDataElement::PrintXML | ( | VTK_FILEPATH const char * | fname | ) |
Prints element tree as XML.
|
virtual |
Get/Set the width (in number of fields) that character data (that between open and closing tags ie.
<X> ... </X>) is printed. If the width is less than one the tag's character data is printed all on one line. If it is greater than one the character data is streamed insterting line feeds every width number of fields. See PrintXML.
|
virtual |
Get/Set the width (in number of fields) that character data (that between open and closing tags ie.
<X> ... </X>) is printed. If the width is less than one the tag's character data is printed all on one line. If it is greater than one the character data is streamed insterting line feeds every width number of fields. See PrintXML.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
staticprotected |
|
friend |
Definition at line 341 of file vtkXMLDataElement.h.
|
friend |
Definition at line 342 of file vtkXMLDataElement.h.
|
protected |
Definition at line 296 of file vtkXMLDataElement.h.
|
protected |
Definition at line 298 of file vtkXMLDataElement.h.
|
protected |
Definition at line 300 of file vtkXMLDataElement.h.
|
protected |
Definition at line 303 of file vtkXMLDataElement.h.
|
protected |
Definition at line 304 of file vtkXMLDataElement.h.
|
protected |
Definition at line 305 of file vtkXMLDataElement.h.
|
protected |
Definition at line 306 of file vtkXMLDataElement.h.
|
protected |
Definition at line 310 of file vtkXMLDataElement.h.
|
protected |
Definition at line 316 of file vtkXMLDataElement.h.
|
protected |
Definition at line 318 of file vtkXMLDataElement.h.
|
protected |
Definition at line 321 of file vtkXMLDataElement.h.
|
protected |
Definition at line 322 of file vtkXMLDataElement.h.
|
protected |
Definition at line 323 of file vtkXMLDataElement.h.
|
protected |
Definition at line 324 of file vtkXMLDataElement.h.
|
protected |
Definition at line 325 of file vtkXMLDataElement.h.
|
protected |
Definition at line 328 of file vtkXMLDataElement.h.
|
protected |
Definition at line 329 of file vtkXMLDataElement.h.
|
protected |
Definition at line 330 of file vtkXMLDataElement.h.
|
protected |
Definition at line 332 of file vtkXMLDataElement.h.