|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
reads xml representations of mitk::PlanarFigure from a file More...
#include <mitkPlanarFigureReader.h>


Public Member Functions | |
| mitkClassMacro (PlanarFigureReader, FileReader) | |
| Pointer | Clone () const |
| virtual void | SetFileName (const char *_arg) |
| Sets the filename of the file to be read. More... | |
| virtual const char * | GetFileName () const |
| Returns the filename of the point set xml-file. More... | |
| virtual void | SetFilePrefix (const char *_arg) |
| virtual const char * | GetFilePrefix () const |
| virtual void | SetFilePattern (const char *_arg) |
| virtual const char * | GetFilePattern () const |
| virtual bool | GetSuccess () const |
Public Member Functions inherited from mitk::PlanarFigureSource | |
| mitkClassMacro (PlanarFigureSource, BaseDataSource) | |
| Pointer | Clone () const |
| mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
| itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
| void | GenerateInputRequestedRegion () override |
Public Member Functions inherited from mitk::BaseDataSource | |
| virtual std::vector< std::string > | GetClassHierarchy () const |
| virtual const char * | GetClassName () const |
| OutputType * | GetOutput () |
| const OutputType * | GetOutput () const |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| virtual void | GraftOutput (OutputType *output) |
| Graft the specified BaseData onto this BaseDataSource's output. More... | |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
| virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
| Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
| bool | Updating () const |
| Access itk::ProcessObject::m_Updating. More... | |
Public Member Functions inherited from mitk::FileReader | |
| virtual std::vector< std::string > | GetClassHierarchy () const |
| itkTypeMacroNoParent (FileReader) virtual const char *GetFileName() const =0 | |
| Get the specified the file to load. More... | |
| virtual bool | CanReadFromMemory () |
| Specifies, whether the file reader also can read a file from a memory buffer. More... | |
| virtual void | SetReadFromMemory (bool read) |
| Set/Get functions to advise the file reader to use a memory array for reading a file. More... | |
| virtual bool | GetReadFromMemory () |
| virtual void | SetMemoryBuffer (const char *dataArray, unsigned int size) |
| To be used along with a call of SetReadFromMemory(true). This sets the memory buffer and the size from which the reader will read. More... | |
Static Public Member Functions | |
| static Pointer | New () |
| static bool | CanReadFile (const std::string filename, const std::string filePrefix, const std::string filePattern) |
Static Public Member Functions inherited from mitk::PlanarFigureSource | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::BaseDataSource | |
| static const char * | GetStaticNameOfClass () |
Static Public Member Functions inherited from mitk::FileReader | |
| static const char * | GetStaticNameOfClass () |
Protected Types | |
| typedef std::list< double > | DoubleList |
Protected Member Functions | |
| PlanarFigureReader () | |
| ~PlanarFigureReader () override | |
| void | GenerateData () override |
| void | GenerateOutputInformation () override |
| virtual void | ResizeOutputs (const unsigned int &num) |
| virtual int | CanReadFile (const char *name) |
| mitk::Vector3D | GetVectorFromXMLNode (TiXmlElement *e) |
| parses the element for the attributes x,y,z and returns a mitk::Vector3D filled with these values More... | |
| mitk::Point3D | GetPointFromXMLNode (TiXmlElement *e) |
| parses the element for the attributes x,y,z and returns a mitk::Point3D filled with these values More... | |
| DoubleList | GetDoubleAttributeListFromXMLNode (TiXmlElement *e, const char *attributeNameBase, unsigned int count) |
| parses the element for the attributes name0 to nameN, where "name" and the number of attributes to read are passed as argument. Returns a list of double vales. More... | |
Protected Member Functions inherited from mitk::PlanarFigureSource | |
| PlanarFigureSource () | |
| ~PlanarFigureSource () override | |
Protected Member Functions inherited from mitk::BaseDataSource | |
| BaseDataSource () | |
| ~BaseDataSource () override | |
Protected Member Functions inherited from mitk::FileReader | |
| FileReader () | |
| virtual | ~FileReader () |
Protected Attributes | |
| std::string | m_FileName |
| std::string | m_FilePrefix |
| std::string | m_FilePattern |
| bool | m_Success |
Protected Attributes inherited from mitk::FileReader | |
| bool | m_CanReadFromMemory |
| bool | m_ReadFromMemory |
| const char * | m_MemoryBuffer |
| unsigned int | m_MemorySize |
Additional Inherited Members | |
Public Types inherited from mitk::PlanarFigureSource | |
| typedef mitk::PlanarFigure | OutputType |
| typedef OutputType::Pointer | OutputTypePointer |
| typedef itk::DataObject::Pointer | DataObjectPointer |
Public Types inherited from mitk::BaseDataSource | |
| typedef BaseDataSource | Self |
| typedef itk::ProcessObject | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef BaseData | OutputType |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Public Types inherited from mitk::FileReader | |
| typedef FileReader | Self |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
| static Pointer | New () |
reads xml representations of mitk::PlanarFigure from a file
Reader for xml files containing one or multiple xml represenations of mitk::PlanarFigure. If multiple mitk::PlanarFigure are stored in one file, these are assigned to multiple outputs of the filter.
Definition at line 33 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 79 of file mitkPlanarFigureReader.h.
|
protected |
Constructor
Definition at line 35 of file mitkPlanarFigureReader.cpp.
References mitk::FileReader::m_CanReadFromMemory, and mitk::PlanarFigureSource::MakeOutput().
|
overrideprotected |
Virtual destructor
Definition at line 49 of file mitkPlanarFigureReader.cpp.
|
static |
Definition at line 416 of file mitkPlanarFigureReader.cpp.
Referenced by GenerateData().
|
protectedvirtual |
Checks if the given file has appropriate read access.
Definition at line 402 of file mitkPlanarFigureReader.cpp.
| Pointer mitk::PlanarFigureReader::Clone | ( | ) | const |
|
overrideprotected |
Actually reads the point sets from the given file
Definition at line 53 of file mitkPlanarFigureReader.cpp.
References CanReadFile(), GetDoubleAttributeListFromXMLNode(), GetPointFromXMLNode(), GetVectorFromXMLNode(), m_FileName, mitk::FileReader::m_MemoryBuffer, mitk::FileReader::m_MemorySize, mitk::FileReader::m_ReadFromMemory, m_Success, MITK_ERROR, MITK_WARN, mitk::PlanarBezierCurve::New(), mitk::PlanarEllipse::New(), mitk::PlanarLine::New(), mitk::PlanarArrow::New(), mitk::PlanarAngle::New(), mitk::PlanarPolygon::New(), mitk::PlanarRectangle::New(), mitk::PlanarSubdivisionPolygon::New(), mitk::PlanarCircle::New(), mitk::PlanarFourPointAngle::New(), mitk::PlanarCross::New(), and mitk::PlaneGeometry::New().
|
overrideprotected |
Does nothing in the current implementation
Definition at line 398 of file mitkPlanarFigureReader.cpp.
|
protected |
parses the element for the attributes name0 to nameN, where "name" and the number of attributes to read are passed as argument. Returns a list of double vales.
| [in] | e | the TiXmlElement that will be parsed |
| [in] | attributeNameBase | the basic name of the parameters |
| [in] | count | the number of parameters |
Definition at line 376 of file mitkPlanarFigureReader.cpp.
Referenced by GenerateData().
|
virtual |
Returns the filename of the point set xml-file.
|
virtual |
Implements mitk::FileReader.
|
virtual |
Implements mitk::FileReader.
|
protected |
parses the element for the attributes x,y,z and returns a mitk::Point3D filled with these values
| [in] | e | the TiXmlElement that will be parsed |
Definition at line 340 of file mitkPlanarFigureReader.cpp.
Referenced by GenerateData().
|
virtual |
|
protected |
parses the element for the attributes x,y,z and returns a mitk::Vector3D filled with these values
| [in] | e | the TiXmlElement that will be parsed |
Definition at line 358 of file mitkPlanarFigureReader.cpp.
Referenced by GenerateData().
| mitk::PlanarFigureReader::mitkClassMacro | ( | PlanarFigureReader | , |
| FileReader | |||
| ) |
|
protectedvirtual |
Resizes the output-objects according to the given number.
| num | the new number of output objects. |
Definition at line 430 of file mitkPlanarFigureReader.cpp.
References mitk::PlanarFigureSource::MakeOutput().
|
virtual |
Sets the filename of the file to be read.
| _arg | the filename of the point set xml-file |
Implements mitk::FileReader.
|
virtual |
Implements mitk::FileReader.
|
virtual |
Implements mitk::FileReader.
|
protected |
Definition at line 142 of file mitkPlanarFigureReader.h.
Referenced by GenerateData().
|
protected |
Definition at line 144 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 143 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 145 of file mitkPlanarFigureReader.h.
Referenced by GenerateData().