16 #pragma warning (disable : 4996)
18 #ifndef mitkDataCollection_H_
19 #define mitkDataCollection_H_
21 #include <itkLightObject.h>
22 #include <itkDataObject.h>
23 #include "itkObjectFactory.h"
30 #include <MitkDataCollectionExports.h>
61 itkFactorylessNewMacro(
Self)
65 virtual void UpdateOutputInformation();
66 virtual void SetRequestedRegionToLargestPossibleRegion();
67 virtual bool RequestedRegionIsOutsideOfTheBufferedRegion();
68 virtual bool VerifyRequestedRegion();
69 virtual void SetRequestedRegion(
const itk::DataObject *);
71 void Init(std::string name);
87 void SetName(std::string name);
91 std::string GetDataFilePath(
size_t index)
const;
99 size_t NameToIndex(std::string name);
106 std::string IndexToName(
size_t index)
const;
113 bool HasElement(std::string name);
121 bool HasElement(
size_t index);
188 template <
class ImageType>
194 template <
class ImageType>
206 void SetNameForIndex(
size_t index, std::string &name);
211 void SetXMLFile(std::string absoluteXMlFile);
216 std::string GetXMLFile();
235 bool RemoveIndex(
size_t index);
242 bool RemoveElement(std::string& name);
278 std::vector<itk::DataObject::Pointer> m_DataVector;
279 std::vector<std::string> m_NameVector;
280 std::vector<std::string> m_FilePathVector;
281 std::map<std::string, size_t> m_DataNames;
285 std::string m_XMLFile;
itk::SmartPointer< Self > Pointer
Base of all data objects.
DataCollection - Class to facilitate loading/accessing structured data.
T::Pointer GetData(const std::string &name)
map::core::discrete::Elements< 3 >::InternalImageType ImageType
#define mitkClassMacro(className, SuperClassName)
static std::string GetName(std::string fileName, std::string suffix)