 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
13 #include "vtkObject.h"
18 struct vtkPVXMLElementInternals;
23 void PrintSelf(ostream& os, vtkIndent indent)
override;
31 vtkSetStringMacro(Name);
32 vtkGetStringMacro(Name);
40 vtkGetStringMacro(Id);
48 return this->GetAttributeOrDefault(
name,
NULL);
56 return this->GetAttributeOrDefault(
name,
"");
63 const char* GetAttributeOrDefault(
const char*
name,
const char* notFound);
68 const char* GetCharacterData();
75 int GetScalarAttribute(
const char*
name,
int* value);
76 int GetScalarAttribute(
const char*
name,
float* value);
77 int GetScalarAttribute(
const char*
name,
double* value);
78 #if defined(VTK_USE_64BIT_IDS)
79 int GetScalarAttribute(
const char*
name, vtkIdType* value);
88 int GetVectorAttribute(
const char*
name,
int length,
int* value);
89 int GetVectorAttribute(
const char*
name,
int length,
float* value);
90 int GetVectorAttribute(
const char*
name,
int length,
double* value);
91 #if defined(VTK_USE_64BIT_IDS)
92 int GetVectorAttribute(
const char*
name,
int length, vtkIdType* value);
101 int GetCharacterDataAsVector(
int length,
int* value);
102 int GetCharacterDataAsVector(
int length,
float* value);
103 int GetCharacterDataAsVector(
int length,
double* value);
104 #if defined(VTK_USE_64BIT_IDS)
105 int GetCharacterDataAsVector(
int length, vtkIdType* value);
117 unsigned int GetNumberOfNestedElements();
139 void FindNestedElementByName(
const char*
name, vtkCollection* elements);
144 void RemoveAllNestedElements();
166 void AddAttribute(
const char* attrName,
const char* attrValue);
167 void AddAttribute(
const char* attrName,
unsigned int attrValue);
168 void AddAttribute(
const char* attrName,
double attrValue);
169 void AddAttribute(
const char* attrName,
double attrValue,
int precision);
170 void AddAttribute(
const char* attrName,
int attrValue);
171 #if defined(VTK_USE_64BIT_IDS)
172 void AddAttribute(
const char* attrName, vtkIdType attrValue);
179 void RemoveAttribute(
const char* attrName);
188 void SetAttribute(
const char* attrName,
const char* attrValue);
204 void PrintXML(ostream& os, vtkIndent indent);
226 void GetElementsByName(
const char*
name, vtkCollection* elements);
227 void GetElementsByName(
const char*
name,
228 vtkCollection* elements,
235 static std::string Encode(
const char* plaintext);
259 vtkPVXMLElementInternals* Internal;
268 vtkSetStringMacro(Id);
269 void ReadXMLAttributes(
const char** atts);
270 void AddCharacterData(
const char*
data,
int length);
Definition: vtkPVXMLParser.h:16
static bool vtkIsSpace(const std::string &str)
Definition: vtkPVXMLElement.cxx:43
char * Id
Definition: vtkPVXMLElement.h:262
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
void RemoveNestedElement(vtkPVXMLElement *)
Definition: vtkPVXMLElement.cxx:205
void AddAttribute(const char *attrName, const char *attrValue)
Definition: vtkPVXMLElement.cxx:140
vtkPVXMLElement * GetParent()
Definition: vtkPVXMLElement.cxx:337
vtkPVXMLElement()
Definition: vtkPVXMLElement.cxx:56
void ReadXMLAttributes(const char **atts)
Definition: vtkPVXMLElement.cxx:175
#define NULL
Definition: UVUnwrapping.cpp:40
void AddCharacterData(const char *data, int length)
Definition: vtkPVXMLElement.cxx:250
vtkPVXMLElement * LookupElementInScope(const char *id)
Definition: vtkPVXMLElement.cxx:404
GraphType data
Definition: graph_cut.cc:138
vtkPVXMLElement * FindNestedElement(const char *id)
Definition: vtkPVXMLElement.cxx:365
void AddNestedElement(vtkPVXMLElement *element, int setPrent)
Definition: vtkPVXMLElement.cxx:240
void SetAttribute(const char *attrName, const char *attrValue)
Definition: vtkPVXMLElement.cxx:152
Definition: WidgetMap.h:20
int GetScalarAttribute(const char *name, int *value)
Definition: vtkPVXMLElement.cxx:457
void CopyTo(vtkPVXMLElement *other)
Definition: vtkPVXMLElement.cxx:721
vtkPVXMLElement * GetNestedElement(unsigned int index)
Definition: vtkPVXMLElement.cxx:349
int vtkPVXMLVectorAttributeParse(const char *str, int length, T *data)
Definition: vtkPVXMLElement.cxx:484
const char * GetAttributeOrEmpty(const char *name)
Definition: vtkPVXMLElement.h:55
vtkPVXMLElement * FindNestedElementByName(const char *name)
Definition: vtkPVXMLElement.cxx:381
#define SNPRINTF
Definition: vtkPVXMLElement.cxx:30
void CopyAttributesTo(vtkPVXMLElement *other)
Definition: vtkPVXMLElement.cxx:742
int GetVectorAttribute(const char *name, int length, int *value)
Definition: vtkPVXMLElement.cxx:505
vtkStandardNewMacro(vtkPVXMLElement)
math::float4 next
Definition: LineSetBuffers.cpp:45
char * Name
Definition: vtkPVXMLElement.h:261
void GetElementsByName(const char *name, vtkCollection *elements)
Definition: vtkPVXMLElement.cxx:549
vtkPVXMLElement * LookupElement(const char *id)
Definition: vtkPVXMLElement.cxx:359
vtkPVXMLElement * LookupElementUpScope(const char *id)
Definition: vtkPVXMLElement.cxx:428
unsigned int GetNumberOfNestedElements()
Definition: vtkPVXMLElement.cxx:343
int GetCharacterDataAsVector(int length, int *value)
Definition: vtkPVXMLElement.cxx:531
void SetParent(vtkPVXMLElement *parent)
Definition: vtkPVXMLElement.cxx:331
bool Equals(vtkPVXMLElement *other)
Definition: vtkPVXMLElement.cxx:753
Definition: vtkPVXMLElement.h:20
int count
Definition: FileIOFactory.cpp:132
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
void PrintSelf(ostream &os, vtkIndent indent) override
Definition: vtkPVXMLElement.cxx:75
~vtkPVXMLElement() override
Definition: vtkPVXMLElement.cxx:66
void ReplaceNestedElement(vtkPVXMLElement *elementToReplace, vtkPVXMLElement *element)
Definition: vtkPVXMLElement.cxx:220
static std::string Encode(const char *plaintext)
Definition: vtkPVXMLElement.cxx:593
void PrintXML(ostream &os, vtkIndent indent)
Definition: vtkPVXMLElement.cxx:282
vtkPVXMLElement * Parent
Definition: vtkPVXMLElement.h:265
const char * GetCharacterData()
Definition: vtkPVXMLElement.cxx:270
const char * GetAttributeOrDefault(const char *name, const char *notFound)
Definition: vtkPVXMLElement.cxx:256
const char * GetAttribute(const char *name)
Definition: vtkPVXMLElement.h:47
void Merge(vtkPVXMLElement *element, const char *attributeName)
Definition: vtkPVXMLElement.cxx:640
void RemoveAllNestedElements()
Definition: vtkPVXMLElement.cxx:199
void RemoveAttribute(const char *attrName)
Definition: vtkPVXMLElement.cxx:771
std::string name
Definition: FileIOFactory.cpp:129
void PrintXML()
Definition: vtkPVXMLElement.cxx:276