Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Implementation of the vtkXMLParser interface for reading mitk::PointSets. More...
#include <vtkPointSetXMLParser.h>
Public Types | |
typedef mitk::PointSet | PointSetType |
typedef std::stack< std::string > | ParseStack |
typedef std::list< PointSetType::Pointer > | PointSetList |
typedef PointSetType::DataType::PointIdentifier | PointIdentifier |
typedef PointSetType::PointType | PointType |
Public Member Functions | |
vtkTypeMacro (vtkPointSetXMLParser, vtkXMLParser) | |
int | InitializeParser () override |
int | CleanupParser () override |
void | StartElement (const char *name, const char **atts) override |
void | EndElement (const char *name) override |
void | CharacterDataHandler (const char *inData, int inLength) override |
virtual mitk::ScalarType | ParseScalarType (const std::string &data) |
virtual PointIdentifier | ParsePointIdentifier (const std::string &data) |
virtual PointSetList | GetParsedPointSets () |
Static Public Member Functions | |
static vtkPointSetXMLParser * | New () |
Protected Member Functions | |
vtkPointSetXMLParser () | |
~vtkPointSetXMLParser () override | |
Protected Attributes | |
ParseStack | m_ParseStack |
PointSetList | m_PointSetList |
PointSetType::Pointer | m_CurrentPointSet |
PointType | m_CurrentPoint |
std::string | m_CurId |
std::string | m_CurXString |
std::string | m_CurYString |
std::string | m_CurZString |
PointIdentifier | m_CurrentPointId |
std::locale | m_PreviousLocale |
Implementation of the vtkXMLParser interface for reading mitk::PointSets.
This class implements the XMLParser interface of the vtkXMLParser which is based on expat. It is used by the mitk::PointSetReader and is NOT INTENDED TO BE USED FROM THE END-USER. If you want to read point sets, use the mitk::PointSetReader.
Definition at line 35 of file vtkPointSetXMLParser.h.
typedef std::stack<std::string> mitk::vtkPointSetXMLParser::ParseStack |
Definition at line 44 of file vtkPointSetXMLParser.h.
Definition at line 48 of file vtkPointSetXMLParser.h.
typedef std::list<PointSetType::Pointer> mitk::vtkPointSetXMLParser::PointSetList |
Definition at line 46 of file vtkPointSetXMLParser.h.
Definition at line 42 of file vtkPointSetXMLParser.h.
Definition at line 50 of file vtkPointSetXMLParser.h.
|
protected |
|
overrideprotected |
|
override |
Handler function which is called, if character data has been parsed by expat.
inData | a char array containing the parsed string data |
inLength | the length of the parsed data string. |
|
override |
|
override |
Handler function which is called, when a xml end-tag has been parsed.
|
virtual |
|
override |
|
static |
|
virtual |
Converts the given data to an PointIdentifier
|
virtual |
Converts the given data to mitk::ScalarType.
|
override |
Handler function which is called, when a new xml start-tag has been parsed.
mitk::vtkPointSetXMLParser::vtkTypeMacro | ( | vtkPointSetXMLParser | , |
vtkXMLParser | |||
) |
|
protected |
Definition at line 118 of file vtkPointSetXMLParser.h.
|
protected |
The current point which is processed by the parser.
Definition at line 116 of file vtkPointSetXMLParser.h.
|
protected |
The current point id which is processed by the parser.
Definition at line 127 of file vtkPointSetXMLParser.h.
|
protected |
The current point set which is processed by the parser.
Definition at line 110 of file vtkPointSetXMLParser.h.
|
protected |
Definition at line 119 of file vtkPointSetXMLParser.h.
|
protected |
Definition at line 120 of file vtkPointSetXMLParser.h.
|
protected |
Definition at line 121 of file vtkPointSetXMLParser.h.
|
protected |
A stack containing the parsed start-tags. If an end tag is encountered, it is matched with the top element of the stack.
Definition at line 99 of file vtkPointSetXMLParser.h.
|
protected |
Contains the parsed point sets.
Definition at line 104 of file vtkPointSetXMLParser.h.
|
protected |
Definition at line 129 of file vtkPointSetXMLParser.h.