Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkPlanarFigureReader.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_PlanarFigureReader__H_
18 #define _MITK_PlanarFigureReader__H_
19 
20 #include "mitkFileReader.h"
21 #include "mitkPlanarFigureSource.h"
23 
24 #include <list>
25 
26 class TiXmlElement;
27 namespace mitk
28 {
38  {
39  public:
41 
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
44 
48  itkSetStringMacro(FileName);
49 
54  itkGetStringMacro(FileName);
55 
59  itkSetStringMacro(FilePrefix);
60 
64  itkGetStringMacro(FilePrefix);
65 
69  itkSetStringMacro(FilePattern);
70 
74  itkGetStringMacro(FilePattern);
75 
76  static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern);
77 
81  itkGetConstMacro(Success, bool);
82 
83  protected:
84  typedef std::list<double> DoubleList;
85 
90 
94  virtual ~PlanarFigureReader();
95 
99  virtual void GenerateData() override;
100 
104  virtual void GenerateOutputInformation() override;
105 
110  virtual void ResizeOutputs(const unsigned int &num);
111 
118  virtual int CanReadFile(const char *name);
119 
125  mitk::Vector3D GetVectorFromXMLNode(TiXmlElement *e);
126 
132  mitk::Point3D GetPointFromXMLNode(TiXmlElement *e);
133 
142  DoubleList GetDoubleAttributeListFromXMLNode(TiXmlElement *e, const char *attributeNameBase, unsigned int count);
143 
144  std::string m_FileName;
145  std::string m_FilePrefix;
146  std::string m_FilePattern;
147  bool m_Success;
148  };
149 }
150 #endif
std::list< double > DoubleList
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
reads xml representations of mitk::PlanarFigure from a file
Base class for all filters which have an object of type mitk::PlanarFigure as output.
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define MITKPLANARFIGURE_EXPORT
Interface class of readers that read from files.