Medical Imaging Interaction Toolkit
2016.11.0
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) static Pointer New() | |
Pointer | Clone () const |
virtual mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual 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::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 () | |
virtual | ~PlanarFigureReader () |
virtual void | GenerateData () override |
virtual 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 () | |
virtual | ~PlanarFigureSource () |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
virtual | ~BaseDataSource () |
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 37 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 81 of file mitkPlanarFigureReader.h.
|
protected |
Constructor
Definition at line 39 of file mitkPlanarFigureReader.cpp.
References mitk::FileReader::m_CanReadFromMemory, and mitk::PlanarFigureSource::MakeOutput().
|
protectedvirtual |
Virtual destructor
Definition at line 53 of file mitkPlanarFigureReader.cpp.
|
static |
Definition at line 425 of file mitkPlanarFigureReader.cpp.
|
protectedvirtual |
Checks if the given file has appropriate read access.
Definition at line 411 of file mitkPlanarFigureReader.cpp.
Pointer mitk::PlanarFigureReader::Clone | ( | ) | const |
|
overrideprotectedvirtual |
Actually reads the point sets from the given file
Definition at line 57 of file mitkPlanarFigureReader.cpp.
References MITK_ERROR, MITK_WARN, mitk::PlanarDoubleEllipse::New(), mitk::PlanarCircle::New(), mitk::PlanarPolygon::New(), mitk::PlanarRectangle::New(), mitk::PlanarArrow::New(), mitk::PlanarAngle::New(), mitk::PlanarLine::New(), mitk::PlanarSubdivisionPolygon::New(), mitk::PlanarFourPointAngle::New(), mitk::New(), mitk::PlanarCross::New(), mitk::PlaneGeometry::New(), and mitk::PlanarPolygon::SetClosed().
|
overrideprotectedvirtual |
Does nothing in the current implementation
Definition at line 407 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 385 of file mitkPlanarFigureReader.cpp.
|
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 349 of file mitkPlanarFigureReader.cpp.
|
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 367 of file mitkPlanarFigureReader.cpp.
mitk::PlanarFigureReader::mitkClassMacro | ( | PlanarFigureReader | , |
FileReader | |||
) |
|
static |
|
protectedvirtual |
Resizes the output-objects according to the given number.
num | the new number of output objects. |
Definition at line 439 of file mitkPlanarFigureReader.cpp.
|
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 144 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 146 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 145 of file mitkPlanarFigureReader.h.
|
protected |
Definition at line 147 of file mitkPlanarFigureReader.h.