13 #ifndef BASEDATA_H_HEADER_INCLUDED_C1EBB6FA 14 #define BASEDATA_H_HEADER_INCLUDED_C1EBB6FA 16 #include <itkDataObject.h> 44 BaseProperty::ConstPointer GetConstProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
true)
const override;
45 std::vector<std::string> GetPropertyKeys(
const std::string &contextName =
"",
bool includeDefaultContext =
false)
const override;
46 std::vector<std::string> GetPropertyContextNames()
const override;
49 BaseProperty * GetNonConstProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
true)
override;
50 void SetProperty(
const std::string &propertyKey,
BaseProperty *property,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
51 void RemoveProperty(
const std::string &propertyKey,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
63 return m_TimeGeometry.GetPointer();
115 virtual void Expand(
unsigned int timeSteps);
140 if (m_TimeGeometry.IsNull())
142 return m_TimeGeometry->GetGeometryForTimeStep(t);
160 void UpdateOutputInformation()
override;
167 void SetRequestedRegionToLargestPossibleRegion()
override = 0;
180 bool RequestedRegionIsOutsideOfTheBufferedRegion()
override = 0;
193 bool VerifyRequestedRegion()
override = 0;
206 void CopyInformation(
const itk::DataObject *data)
override;
215 virtual bool IsInitialized()
const;
222 virtual void Clear();
231 virtual bool IsEmptyTimeStep(
unsigned int t)
const;
241 virtual bool IsEmpty()
const;
248 void SetRequestedRegion(
const itk::DataObject *data)
override = 0;
255 void ExecuteOperation(
Operation *operation)
override;
286 virtual void SetClonedGeometry(
const BaseGeometry *aGeometry3D);
293 virtual void SetClonedTimeGeometry(
const TimeGeometry *geometry);
299 virtual void SetClonedGeometry(
const BaseGeometry *aGeometry3D,
unsigned int time);
321 void SetProperty(
const char *propertyKey,
BaseProperty *property);
333 virtual void SetOrigin(
const Point3D &origin);
355 unsigned int GetTimeSteps()
const {
return m_TimeGeometry->CountTimeSteps(); }
359 unsigned long GetMTime()
const override;
364 void Graft(
const DataObject *)
override;
375 virtual void InitializeTimeGeometry(
unsigned int timeSteps = 1);
386 InitializeTimeGeometry(timeSteps);
391 virtual void ClearData();
398 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
const mitk::TimeGeometry * GetTimeSlicedGeometry() const
Return the TimeGeometry of the data as const pointer.
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 * GetUpdatedTimeSliceGeometry()
Return the TimeGeometry of the data.
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.
virtual void InitializeTimeSlicedGeometry(unsigned int timeSteps=1)
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
unsigned int m_SourceOutputIndexDuplicate
BaseGeometry Describes the geometry of a data object.