VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
vtkXMLDataElement Class Reference

Represents an XML element and those nested inside. More...

#include <vtkXMLDataElement.h>

Inheritance diagram for vtkXMLDataElement:
[legend]
Collaboration diagram for vtkXMLDataElement:
[legend]

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...
 
vtkXMLDataElementNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual char * GetName ()
 Set/Get the name of the element. More...
 
virtual void SetName (const char *_arg)
 
virtual char * GetId ()
 Set/Get the value of the id attribute of the element, if any. More...
 
virtual void SetId (const char *)
 
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...
 
void SetCharacterData (const char *c, int length)
 Set/Get the character data between XML start/end tags. More...
 
void AddCharacterData (const char *c, size_t length)
 
virtual char * GetCharacterData ()
 
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)
 
int GetScalarAttribute (const char *name, double &value)
 
int GetScalarAttribute (const char *name, long &value)
 
int GetScalarAttribute (const char *name, unsigned long &value)
 
void SetIntAttribute (const char *name, int value)
 Set the attribute with the given name. More...
 
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)
 Get the attribute with the given name and converted to a scalar value. More...
 
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, long *value)
 
int GetVectorAttribute (const char *name, int length, unsigned long *value)
 
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)
 
void SetVectorAttribute (const char *name, int length, const double *value)
 
void SetVectorAttribute (const char *name, int length, const unsigned long *value)
 
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 such as VTK_FLOAT or VTK_UNSIGNED_LONG. More...
 
virtual int GetNumberOfAttributes ()
 Get the number of attributes. 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 void RemoveAttribute (const char *name)
 Remove one or all attributes. More...
 
virtual void RemoveAllAttributes ()
 
vtkXMLDataElementGetParent ()
 Set/Get the parent of this element. More...
 
void SetParent (vtkXMLDataElement *parent)
 
virtual vtkXMLDataElementGetRoot ()
 Get root of the XML tree this element is part of. More...
 
int GetNumberOfNestedElements ()
 Get the number of elements nested in this one. More...
 
vtkXMLDataElementGetNestedElement (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...
 
vtkXMLDataElementFindNestedElement (const char *id)
 Find the first nested element with the given id, given name, or given name and id. More...
 
vtkXMLDataElementFindNestedElementWithName (const char *name)
 
vtkXMLDataElementFindNestedElementWithNameAndId (const char *name, const char *id)
 
vtkXMLDataElementFindNestedElementWithNameAndAttribute (const char *name, const char *att_name, const char *att_value)
 
vtkXMLDataElementLookupElementWithName (const char *name)
 Find the first nested element with given name. More...
 
vtkXMLDataElementLookupElement (const char *id)
 Lookup the element with the given id, starting at this scope. More...
 
virtual vtkTypeInt64 GetXMLByteIndex ()
 Set/Get the offset from the beginning of the XML document to this element. More...
 
virtual void SetXMLByteIndex (vtkTypeInt64)
 
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 void SetAttributeEncoding (int)
 Get/Set the internal character encoding of the attributes. More...
 
virtual int GetAttributeEncoding ()
 
void PrintXML (ostream &os, vtkIndent indent)
 Prints element tree as XML. More...
 
void PrintXML (const char *fname)
 
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)
 
- 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...
 
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)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 
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)
 
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)
 
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. 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 PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
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...
 
void PrintRevisions (ostream &)
 Legacy. More...
 

Static Public Member Functions

static vtkTypeBool IsTypeOf (const char *type)
 
static vtkXMLDataElementSafeDownCast (vtkObjectBase *o)
 
static vtkXMLDataElementNew ()
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 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 ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- 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 vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkXMLDataElement ()
 
 ~vtkXMLDataElement () override
 
virtual vtkTypeInt64 GetInlineDataPosition ()
 
virtual void SetInlineDataPosition (vtkTypeInt64)
 
vtkXMLDataElementLookupElementInScope (const char *id)
 
vtkXMLDataElementLookupElementUpScope (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 ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
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)
 

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
 
vtkXMLDataElementParent
 
- 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
 

Detailed Description

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.

See also
vtkXMLDataParser

Definition at line 36 of file vtkXMLDataElement.h.

Member Typedef Documentation

◆ Superclass

Definition at line 39 of file vtkXMLDataElement.h.

Constructor & Destructor Documentation

◆ vtkXMLDataElement()

vtkXMLDataElement::vtkXMLDataElement ( )
protected

◆ ~vtkXMLDataElement()

vtkXMLDataElement::~vtkXMLDataElement ( )
overrideprotected

Member Function Documentation

◆ IsTypeOf()

static vtkTypeBool vtkXMLDataElement::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual vtkTypeBool vtkXMLDataElement::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 vtkObjectBase.

◆ SafeDownCast()

static vtkXMLDataElement* vtkXMLDataElement::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkXMLDataElement::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkXMLDataElement* vtkXMLDataElement::NewInstance ( ) const

◆ PrintSelf()

void vtkXMLDataElement::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

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.

◆ New()

static vtkXMLDataElement* vtkXMLDataElement::New ( )
static

◆ GetName()

virtual char* vtkXMLDataElement::GetName ( )
virtual

Set/Get the name of the element.

This is its XML tag.

◆ SetName()

virtual void vtkXMLDataElement::SetName ( const char *  _arg)
virtual

◆ GetId()

virtual char* vtkXMLDataElement::GetId ( )
virtual

Set/Get the value of the id attribute of the element, if any.

◆ SetId()

virtual void vtkXMLDataElement::SetId ( const char *  )
virtual

◆ GetAttribute()

const char* vtkXMLDataElement::GetAttribute ( const char *  name)

Get the attribute with the given name.

If it doesn't exist, returns 0.

◆ SetAttribute()

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.

◆ SetCharacterData()

void vtkXMLDataElement::SetCharacterData ( const char *  c,
int  length 
)

Set/Get the character data between XML start/end tags.

◆ AddCharacterData()

void vtkXMLDataElement::AddCharacterData ( const char *  c,
size_t  length 
)
inline

Definition at line 350 of file vtkXMLDataElement.h.

◆ GetCharacterData()

virtual char* vtkXMLDataElement::GetCharacterData ( )
virtual

◆ GetScalarAttribute() [1/7]

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.

◆ GetScalarAttribute() [2/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
float value 
)

◆ GetScalarAttribute() [3/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
double value 
)

◆ GetScalarAttribute() [4/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
long &  value 
)

◆ GetScalarAttribute() [5/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
unsigned long &  value 
)

◆ SetIntAttribute()

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).

◆ SetFloatAttribute()

void vtkXMLDataElement::SetFloatAttribute ( const char *  name,
float  value 
)

◆ SetDoubleAttribute()

void vtkXMLDataElement::SetDoubleAttribute ( const char *  name,
double  value 
)

◆ SetUnsignedLongAttribute()

void vtkXMLDataElement::SetUnsignedLongAttribute ( const char *  name,
unsigned long  value 
)

◆ GetVectorAttribute() [1/7]

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.

◆ GetVectorAttribute() [2/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
float value 
)

◆ GetVectorAttribute() [3/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
double value 
)

◆ GetVectorAttribute() [4/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
long *  value 
)

◆ GetVectorAttribute() [5/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
unsigned long *  value 
)

◆ SetVectorAttribute() [1/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
const int value 
)

Set the attribute with the given name.

◆ SetVectorAttribute() [2/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
const float value 
)

◆ SetVectorAttribute() [3/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
const double value 
)

◆ SetVectorAttribute() [4/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
const unsigned long *  value 
)

◆ GetScalarAttribute() [6/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
long long &  value 
)

◆ GetVectorAttribute() [6/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
long long *  value 
)

◆ SetVectorAttribute() [5/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
long long const *  value 
)

◆ GetScalarAttribute() [7/7]

int vtkXMLDataElement::GetScalarAttribute ( const char *  name,
unsigned long long &  value 
)

◆ GetVectorAttribute() [7/7]

int vtkXMLDataElement::GetVectorAttribute ( const char *  name,
int  length,
unsigned long long *  value 
)

◆ SetVectorAttribute() [6/6]

void vtkXMLDataElement::SetVectorAttribute ( const char *  name,
int  length,
unsigned long long const *  value 
)

◆ GetWordTypeAttribute()

int vtkXMLDataElement::GetWordTypeAttribute ( const char *  name,
int value 
)

Get the attribute with the given name and converted to a word type such as VTK_FLOAT or VTK_UNSIGNED_LONG.

◆ GetNumberOfAttributes()

virtual int vtkXMLDataElement::GetNumberOfAttributes ( )
virtual

Get the number of attributes.

◆ GetAttributeName()

const char* vtkXMLDataElement::GetAttributeName ( int  idx)

Get the n-th attribute name.

Returns 0 if there is no such attribute.

◆ GetAttributeValue()

const char* vtkXMLDataElement::GetAttributeValue ( int  idx)

Get the n-th attribute value.

Returns 0 if there is no such attribute.

◆ RemoveAttribute()

virtual void vtkXMLDataElement::RemoveAttribute ( const char *  name)
virtual

Remove one or all attributes.

◆ RemoveAllAttributes()

virtual void vtkXMLDataElement::RemoveAllAttributes ( )
virtual

◆ GetParent()

vtkXMLDataElement* vtkXMLDataElement::GetParent ( )

Set/Get the parent of this element.

◆ SetParent()

void vtkXMLDataElement::SetParent ( vtkXMLDataElement parent)

◆ GetRoot()

virtual vtkXMLDataElement* vtkXMLDataElement::GetRoot ( )
virtual

Get root of the XML tree this element is part of.

◆ GetNumberOfNestedElements()

int vtkXMLDataElement::GetNumberOfNestedElements ( )

Get the number of elements nested in this one.

◆ GetNestedElement()

vtkXMLDataElement* vtkXMLDataElement::GetNestedElement ( int  index)

Get the element nested in this one at the given index.

◆ AddNestedElement()

void vtkXMLDataElement::AddNestedElement ( vtkXMLDataElement element)

Add nested element.

◆ RemoveNestedElement()

virtual void vtkXMLDataElement::RemoveNestedElement ( vtkXMLDataElement )
virtual

Remove nested element.

◆ RemoveAllNestedElements()

virtual void vtkXMLDataElement::RemoveAllNestedElements ( )
virtual

Remove all nested elements.

◆ FindNestedElement()

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.

◆ FindNestedElementWithName()

vtkXMLDataElement* vtkXMLDataElement::FindNestedElementWithName ( const char *  name)

◆ FindNestedElementWithNameAndId()

vtkXMLDataElement* vtkXMLDataElement::FindNestedElementWithNameAndId ( const char *  name,
const char *  id 
)

◆ FindNestedElementWithNameAndAttribute()

vtkXMLDataElement* vtkXMLDataElement::FindNestedElementWithNameAndAttribute ( const char *  name,
const char *  att_name,
const char *  att_value 
)

◆ LookupElementWithName()

vtkXMLDataElement* vtkXMLDataElement::LookupElementWithName ( const char *  name)

Find the first nested element with given name.

WARNING: the search is performed on the whole XML tree.

◆ LookupElement()

vtkXMLDataElement* vtkXMLDataElement::LookupElement ( const char *  id)

Lookup the element with the given id, starting at this scope.

◆ GetXMLByteIndex()

virtual vtkTypeInt64 vtkXMLDataElement::GetXMLByteIndex ( )
virtual

Set/Get the offset from the beginning of the XML document to this element.

◆ SetXMLByteIndex()

virtual void vtkXMLDataElement::SetXMLByteIndex ( vtkTypeInt64  )
virtual

◆ IsEqualTo()

virtual int vtkXMLDataElement::IsEqualTo ( vtkXMLDataElement elem)
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.

◆ DeepCopy()

virtual void vtkXMLDataElement::DeepCopy ( vtkXMLDataElement elem)
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.

◆ SetAttributeEncoding()

virtual void vtkXMLDataElement::SetAttributeEncoding ( int  )
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.

◆ GetAttributeEncoding()

virtual int vtkXMLDataElement::GetAttributeEncoding ( )
virtual

◆ PrintXML() [1/2]

void vtkXMLDataElement::PrintXML ( ostream &  os,
vtkIndent  indent 
)

Prints element tree as XML.

◆ PrintXML() [2/2]

void vtkXMLDataElement::PrintXML ( const char *  fname)

◆ GetCharacterDataWidth()

virtual int vtkXMLDataElement::GetCharacterDataWidth ( )
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.

◆ SetCharacterDataWidth()

virtual void vtkXMLDataElement::SetCharacterDataWidth ( int  )
virtual

◆ GetInlineDataPosition()

virtual vtkTypeInt64 vtkXMLDataElement::GetInlineDataPosition ( )
protectedvirtual

◆ SetInlineDataPosition()

virtual void vtkXMLDataElement::SetInlineDataPosition ( vtkTypeInt64  )
protectedvirtual

◆ LookupElementInScope()

vtkXMLDataElement* vtkXMLDataElement::LookupElementInScope ( const char *  id)
protected

◆ LookupElementUpScope()

vtkXMLDataElement* vtkXMLDataElement::LookupElementUpScope ( const char *  id)
protected

◆ IsSpace()

static int vtkXMLDataElement::IsSpace ( char  c)
staticprotected

◆ PrintCharacterData()

void vtkXMLDataElement::PrintCharacterData ( ostream &  os,
vtkIndent  indent 
)
protected

◆ PrintWithEscapedData()

static void vtkXMLDataElement::PrintWithEscapedData ( ostream &  os,
const char *  data 
)
staticprotected

Friends And Related Function Documentation

◆ vtkXMLDataParser

friend class vtkXMLDataParser
friend

Definition at line 340 of file vtkXMLDataElement.h.

◆ vtkXMLMaterialParser

friend class vtkXMLMaterialParser
friend

Definition at line 341 of file vtkXMLDataElement.h.

Member Data Documentation

◆ Name

char* vtkXMLDataElement::Name
protected

Definition at line 295 of file vtkXMLDataElement.h.

◆ Id

char* vtkXMLDataElement::Id
protected

Definition at line 297 of file vtkXMLDataElement.h.

◆ CharacterDataWidth

int vtkXMLDataElement::CharacterDataWidth
protected

Definition at line 299 of file vtkXMLDataElement.h.

◆ CharacterData

char* vtkXMLDataElement::CharacterData
protected

Definition at line 302 of file vtkXMLDataElement.h.

◆ CharacterDataBlockSize

size_t vtkXMLDataElement::CharacterDataBlockSize
protected

Definition at line 303 of file vtkXMLDataElement.h.

◆ CharacterDataBufferSize

size_t vtkXMLDataElement::CharacterDataBufferSize
protected

Definition at line 304 of file vtkXMLDataElement.h.

◆ EndOfCharacterData

size_t vtkXMLDataElement::EndOfCharacterData
protected

Definition at line 305 of file vtkXMLDataElement.h.

◆ IgnoreCharacterData

int vtkXMLDataElement::IgnoreCharacterData
protected

Definition at line 309 of file vtkXMLDataElement.h.

◆ InlineDataPosition

vtkTypeInt64 vtkXMLDataElement::InlineDataPosition
protected

Definition at line 313 of file vtkXMLDataElement.h.

◆ XMLByteIndex

vtkTypeInt64 vtkXMLDataElement::XMLByteIndex
protected

Definition at line 317 of file vtkXMLDataElement.h.

◆ AttributeNames

char** vtkXMLDataElement::AttributeNames
protected

Definition at line 320 of file vtkXMLDataElement.h.

◆ AttributeValues

char** vtkXMLDataElement::AttributeValues
protected

Definition at line 321 of file vtkXMLDataElement.h.

◆ NumberOfAttributes

int vtkXMLDataElement::NumberOfAttributes
protected

Definition at line 322 of file vtkXMLDataElement.h.

◆ AttributesSize

int vtkXMLDataElement::AttributesSize
protected

Definition at line 323 of file vtkXMLDataElement.h.

◆ AttributeEncoding

int vtkXMLDataElement::AttributeEncoding
protected

Definition at line 324 of file vtkXMLDataElement.h.

◆ NumberOfNestedElements

int vtkXMLDataElement::NumberOfNestedElements
protected

Definition at line 327 of file vtkXMLDataElement.h.

◆ NestedElementsSize

int vtkXMLDataElement::NestedElementsSize
protected

Definition at line 328 of file vtkXMLDataElement.h.

◆ NestedElements

vtkXMLDataElement** vtkXMLDataElement::NestedElements
protected

Definition at line 329 of file vtkXMLDataElement.h.

◆ Parent

vtkXMLDataElement* vtkXMLDataElement::Parent
protected

Definition at line 331 of file vtkXMLDataElement.h.


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