13 #ifndef BASEDATA_H_HEADER_INCLUDED_C1EBB6FA 14 #define BASEDATA_H_HEADER_INCLUDED_C1EBB6FA 16 #include <itkDataObject.h> 49 BaseProperty::ConstPointer GetConstProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
true)
const override;
50 std::vector<std::string> GetPropertyKeys(
const std::string &contextName =
"",
bool includeDefaultContext =
false)
const override;
51 std::vector<std::string> GetPropertyContextNames()
const override;
54 BaseProperty * GetNonConstProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
true)
override;
55 void SetProperty(
const std::string &propertyKey,
BaseProperty *property,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
56 void RemoveProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
68 return m_TimeGeometry.GetPointer();
98 virtual void Expand(
unsigned int timeSteps);
123 if (m_TimeGeometry.IsNull())
125 return m_TimeGeometry->GetGeometryForTimeStep(t);
143 void UpdateOutputInformation()
override;
150 void SetRequestedRegionToLargestPossibleRegion()
override = 0;
163 bool RequestedRegionIsOutsideOfTheBufferedRegion()
override = 0;
176 bool VerifyRequestedRegion()
override = 0;
189 void CopyInformation(
const itk::DataObject *data)
override;
198 virtual bool IsInitialized()
const;
205 virtual void Clear();
214 virtual bool IsEmptyTimeStep(
unsigned int t)
const;
224 virtual bool IsEmpty()
const;
231 void SetRequestedRegion(
const itk::DataObject *data)
override = 0;
238 void ExecuteOperation(
Operation *operation)
override;
269 virtual void SetClonedGeometry(
const BaseGeometry *aGeometry3D);
276 virtual void SetClonedTimeGeometry(
const TimeGeometry *geometry);
282 virtual void SetClonedGeometry(
const BaseGeometry *aGeometry3D,
unsigned int time);
304 void SetProperty(
const char *propertyKey,
BaseProperty *property);
316 virtual void SetOrigin(
const Point3D &origin);
338 unsigned int GetTimeSteps()
const {
return m_TimeGeometry->CountTimeSteps(); }
342 unsigned long GetMTime()
const override;
347 void Graft(
const DataObject *)
override;
358 virtual void InitializeTimeGeometry(
unsigned int timeSteps = 1);
362 virtual void ClearData();
369 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Base of all data objects.
Base class of all Operation-classes.
DataCollection - Class to facilitate loading/accessing structured data.
mitk::TimeGeometry * GetTimeGeometry()
Return the TimeGeometry of the data as pointer.
Key-value list holding instances of BaseProperty.
abstract class, that can be used by Undo to undo an operation.
const mitk::TimeGeometry * GetTimeGeometry() const
Return the TimeGeometry of the data as const pointer.
Abstract base class for properties.
#define mitkClassMacroItkParent(className, SuperClassName)
bool m_LastRequestedRegionWasOutsideOfTheBufferedRegion
virtual void InitializeEmpty()
Pure virtual; Must be used in subclasses to get a data object to a valid state. Should at least creat...
unsigned int GetTimeSteps() const
Get the number of time steps from the TimeGeometry As the base data has not a data vector given by it...
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.
Base class of identifiable objects.
unsigned int m_SourceOutputIndexDuplicate
BaseGeometry Describes the geometry of a data object.