XML-based writer for mitk::PointSets.
More...
#include <mitkPointSetWriter.h>
XML-based writer for mitk::PointSets.
XML-based writer for mitk::PointSets. Multiple PointSets can be written in a single XML file by simply setting multiple inputs to the filter. Writing of multiple XML files according to a given filename pattern is not yet supported.
- Deprecated:
- (as of 2014_10) Use mitk::IOUtils or mitk::FileReaderRegistry instead.
Definition at line 36 of file mitkPointSetWriter.h.
◆ InputType
◆ InputTypePointer
◆ PointSetWriter()
| mitk::PointSetWriter::PointSetWriter |
( |
| ) |
|
|
protected |
◆ ~PointSetWriter()
| mitk::PointSetWriter::~PointSetWriter |
( |
| ) |
|
|
overrideprotected |
◆ CanWriteDataType()
| bool mitk::PointSetWriter::CanWriteDataType |
( |
DataNode * |
| ) |
|
|
overridevirtual |
Check if the Writer can write the Content of the.
Reimplemented from mitk::FileWriter.
◆ Clone()
| Pointer mitk::PointSetWriter::Clone |
( |
| ) |
const |
◆ ConvertToString()
template<typename T >
| std::string mitk::PointSetWriter::ConvertToString |
( |
T |
value | ) |
|
|
protected |
Converts an arbitrary type to a string. The type has to support the << operator. This works fine at least for integral data types as float, int, long etc.
- Parameters
-
| value | the value to convert |
- Returns
- the string representation of value
◆ GenerateData()
| void mitk::PointSetWriter::GenerateData |
( |
| ) |
|
|
overrideprotected |
◆ GetFileExtension()
| std::string mitk::PointSetWriter::GetFileExtension |
( |
| ) |
|
|
overridevirtual |
Return the extension to be added to the filename.
Reimplemented from mitk::FileWriter.
◆ GetFileName()
| virtual const char* mitk::PointSetWriter::GetFileName |
( |
| ) |
const |
|
virtual |
◆ GetFilePattern()
| virtual const char* mitk::PointSetWriter::GetFilePattern |
( |
| ) |
const |
|
virtual |
◆ GetFilePrefix()
| virtual const char* mitk::PointSetWriter::GetFilePrefix |
( |
| ) |
const |
|
virtual |
◆ GetInput() [1/2]
| PointSet* mitk::PointSetWriter::GetInput |
( |
| ) |
|
- Returns
- the 0'th input object of the filter.
◆ GetInput() [2/2]
| PointSet* mitk::PointSetWriter::GetInput |
( |
const unsigned int & |
num | ) |
|
- Parameters
-
| num | the index of the desired output object. |
- Returns
- the n'th input object of the filter.
◆ GetPossibleFileExtensions()
| std::vector<std::string> mitk::PointSetWriter::GetPossibleFileExtensions |
( |
| ) |
|
|
overridevirtual |
Return the possible file extensions for the data type associated with the writer.
Implements mitk::FileWriter.
◆ GetSuccess()
| bool mitk::PointSetWriter::GetSuccess |
( |
| ) |
const |
- Returns
- whether the last write attempt was successful or not.
◆ GetSupportedBaseData()
| std::string mitk::PointSetWriter::GetSupportedBaseData |
( |
| ) |
const |
|
overridevirtual |
◆ GetWritenMIMEType()
| std::string mitk::PointSetWriter::GetWritenMIMEType |
( |
| ) |
|
|
overridevirtual |
◆ mitkClassMacro()
◆ New()
| static Pointer mitk::PointSetWriter::New |
( |
| ) |
|
|
static |
◆ ResizeInputs()
| virtual void mitk::PointSetWriter::ResizeInputs |
( |
const unsigned int & |
num | ) |
|
|
protectedvirtual |
Resizes the number of inputs of the writer. The inputs are initialized by empty PointSets
- Parameters
-
| num | the new number of inputs |
◆ SetFileName()
| virtual void mitk::PointSetWriter::SetFileName |
( |
const char * |
_arg | ) |
|
|
virtual |
◆ SetFilePattern()
| virtual void mitk::PointSetWriter::SetFilePattern |
( |
const char * |
_arg | ) |
|
|
virtual |
◆ SetFilePrefix()
| virtual void mitk::PointSetWriter::SetFilePrefix |
( |
const char * |
_arg | ) |
|
|
virtual |
◆ SetInput() [1/3]
| void mitk::PointSetWriter::SetInput |
( |
const unsigned int & |
num, |
|
|
InputType * |
input |
|
) |
| |
Sets the n'th input object for the filter. If num is larger than GetNumberOfInputs() the number of inputs is resized appropriately.
- Parameters
-
| num | |
| input | the n'th input for the filter. |
◆ SetInput() [2/3]
| virtual void mitk::PointSetWriter::SetInput |
( |
DataNode * |
| ) |
|
|
virtual |
Set the DataTreenode as Input. Important: The Writer always have a SetInput-Function.
◆ SetInput() [3/3]
| void mitk::PointSetWriter::SetInput |
( |
InputType * |
input | ) |
|
Sets the 0'th input object for the filter.
- Parameters
-
| input | the first input for the filter. |
◆ WriteCharacterData() [1/2]
| void mitk::PointSetWriter::WriteCharacterData |
( |
const char *const |
data, |
|
|
std::ofstream & |
file |
|
) |
| |
|
protected |
Write character data inside a tag.
◆ WriteCharacterData() [2/2]
| void mitk::PointSetWriter::WriteCharacterData |
( |
std::string & |
data, |
|
|
std::ofstream & |
file |
|
) |
| |
|
protected |
Write character data inside a tag.
◆ WriteEndElement() [1/2]
| void mitk::PointSetWriter::WriteEndElement |
( |
const char *const |
tag, |
|
|
std::ofstream & |
file, |
|
|
const bool & |
indent = true |
|
) |
| |
|
protected |
Write an end element tag End-Elements following character data should pass indent = false.
◆ WriteEndElement() [2/2]
| void mitk::PointSetWriter::WriteEndElement |
( |
std::string & |
tag, |
|
|
std::ofstream & |
file, |
|
|
const bool & |
indent = true |
|
) |
| |
|
protected |
◆ WriteIndent()
| void mitk::PointSetWriter::WriteIndent |
( |
std::ofstream & |
file | ) |
|
|
protected |
Writes empty spaces to the stream according to m_IndentDepth and m_Indent
◆ WriteStartElement() [1/2]
| void mitk::PointSetWriter::WriteStartElement |
( |
const char *const |
tag, |
|
|
std::ofstream & |
file |
|
) |
| |
|
protected |
Write a start element tag
◆ WriteStartElement() [2/2]
| void mitk::PointSetWriter::WriteStartElement |
( |
std::string & |
tag, |
|
|
std::ofstream & |
file |
|
) |
| |
|
protected |
Write a start element tag
◆ WriteXML()
| void mitk::PointSetWriter::WriteXML |
( |
mitk::PointSet * |
pointSet, |
|
|
std::ofstream & |
out |
|
) |
| |
|
protected |
Writes an XML representation of the given point set to an outstream. The XML-Header an root node is not included!
- Parameters
-
| pointSet | the point set to be converted to xml |
| out | the stream to write to. |
◆ WriteXMLHeader()
| void mitk::PointSetWriter::WriteXMLHeader |
( |
std::ofstream & |
file | ) |
|
|
protected |
Writes an standard xml header to the given stream.
- Parameters
-
| file | the stream in which the header is written. |
◆ m_Extension
| std::string mitk::PointSetWriter::m_Extension |
|
protected |
◆ m_FileName
| std::string mitk::PointSetWriter::m_FileName |
|
protected |
◆ m_FilePattern
| std::string mitk::PointSetWriter::m_FilePattern |
|
protected |
◆ m_FilePrefix
| std::string mitk::PointSetWriter::m_FilePrefix |
|
protected |
◆ m_Indent
| unsigned int mitk::PointSetWriter::m_Indent |
|
protected |
◆ m_IndentDepth
| unsigned int mitk::PointSetWriter::m_IndentDepth |
|
protected |
◆ m_MimeType
| std::string mitk::PointSetWriter::m_MimeType |
|
protected |
◆ m_Success
| bool mitk::PointSetWriter::m_Success |
|
protected |
◆ mitkWriterMacro
| mitk::PointSetWriter::mitkWriterMacro |
◆ VERSION_STRING
| const char* mitk::PointSetWriter::VERSION_STRING |
|
static |
◆ XML_FILE_VERSION
| const char* mitk::PointSetWriter::XML_FILE_VERSION |
|
static |
◆ XML_ID
| const char* mitk::PointSetWriter::XML_ID |
|
static |
◆ XML_POINT
| const char* mitk::PointSetWriter::XML_POINT |
|
static |
◆ XML_POINT_SET
| const char* mitk::PointSetWriter::XML_POINT_SET |
|
static |
◆ XML_POINT_SET_FILE
| const char* mitk::PointSetWriter::XML_POINT_SET_FILE |
|
static |
◆ XML_SPEC
| const char* mitk::PointSetWriter::XML_SPEC |
|
static |
◆ XML_TIME_SERIES
| const char* mitk::PointSetWriter::XML_TIME_SERIES |
|
static |
◆ XML_TIME_SERIES_ID
| const char* mitk::PointSetWriter::XML_TIME_SERIES_ID |
|
static |
◆ XML_X
| const char* mitk::PointSetWriter::XML_X |
|
static |
◆ XML_Y
| const char* mitk::PointSetWriter::XML_Y |
|
static |
◆ XML_Z
| const char* mitk::PointSetWriter::XML_Z |
|
static |
The documentation for this class was generated from the following file: