Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::BaseDataTestImplementation Class Reference

Implementation of BaseData (for testing). More...

#include <mitkBaseDataTestImplementation.h>

Inheritance diagram for mitk::BaseDataTestImplementation:
Collaboration diagram for mitk::BaseDataTestImplementation:

Public Member Functions

 mitkClassMacro (BaseDataTestImplementation, BaseData)
 
Pointer Clone () const
 
void InitializeTimeGeometry (unsigned int timeSteps) override
 Initialize the time geometry with the given number of time steps. More...
 
- Public Member Functions inherited from mitk::BaseData
 mitkClassMacroItkParent (BaseData, itk::DataObject)
 
BaseProperty::ConstPointer GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
 Get a const property by its key. More...
 
std::vector< std::string > GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const override
 Get all property keys stored in the property list. More...
 
std::vector< std::string > GetPropertyContextNames () const override
 Get the names of all property contexts. More...
 
BaseProperty * GetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override
 Get a non-const property by its key. More...
 
void SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
 Set a property in the property list. More...
 
void RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
 Remove a property from the property list. More...
 
const mitk::TimeGeometry * GetTimeGeometry () const
 Return the TimeGeometry of the data as const pointer. More...
 
mitk::TimeGeometry * GetTimeGeometry ()
 Return the TimeGeometry of the data as non-const pointer. More...
 
const mitk::TimeGeometry * GetUpdatedTimeGeometry ()
 Return the TimeGeometry of the data after ensuring it is up-to-date. More...
 
virtual void Expand (unsigned int timeSteps)
 Expand the TimeGeometry to a number of time steps. More...
 
const mitk::BaseGeometry * GetUpdatedGeometry (int t=0)
 Return the BaseGeometry of the data at time step t after ensuring it is up-to-date. More...
 
mitk::BaseGeometry * GetGeometry (int t=0) const
 Return the BaseGeometry of the data at time step t as a non-const pointer. More...
 
void UpdateOutputInformation () override
 Update the information for this BaseData so that it can be used as an output of a BaseProcess. More...
 
void CopyInformation (const itk::DataObject *data) override
 Copy information from the specified data set. More...
 
virtual bool IsInitialized () const
 Check whether the data has been initialized. More...
 
virtual void Clear ()
 Reset the data object by calling ClearData() and InitializeEmpty(). More...
 
virtual bool IsEmptyTimeStep (unsigned int t) const
 Check whether the object contains data at the specified time step. More...
 
virtual bool IsEmpty () const
 Check whether the object contains data at any time step. More...
 
void ExecuteOperation (Operation *operation) override
 Execute an operation on this data object. More...
 
virtual void SetGeometry (BaseGeometry *aGeometry3D)
 Set the BaseGeometry of the data, which will be referenced (not copied!). More...
 
virtual void SetTimeGeometry (TimeGeometry *geometry)
 Set the TimeGeometry of the data, which will be referenced (not copied!). More...
 
virtual void SetClonedGeometry (const BaseGeometry *aGeometry3D)
 Set a clone of the provided geometry as the BaseGeometry of the data. More...
 
virtual void SetClonedTimeGeometry (const TimeGeometry *geometry)
 Set a clone of the provided TimeGeometry as the TimeGeometry of the data. More...
 
virtual void SetClonedGeometry (const BaseGeometry *aGeometry3D, unsigned int time)
 Set a clone of the provided geometry as the BaseGeometry of a given time step. More...
 
mitk::PropertyList::Pointer GetPropertyList () const
 Get the data's property list. More...
 
void SetPropertyList (PropertyList *propertyList)
 Set the data's property list, replacing the existing one. More...
 
mitk::BaseProperty::Pointer GetProperty (const char *propertyKey) const
 Get a property by its key from the PropertyList. More...
 
void SetProperty (const char *propertyKey, BaseProperty *property)
 Set a property in the PropertyList. More...
 
virtual void SetOrigin (const Point3D &origin)
 Convenience method for setting the origin of the BaseGeometry instances of all time steps. More...
 
itk::SmartPointer< mitk::BaseDataSource > GetSource () const
 Get the process object that generated this data object. More...
 
unsigned int GetTimeSteps () const
 Get the number of time steps from the TimeGeometry. More...
 
itk::ModifiedTimeType GetMTime () const override
 Get the modification time of this data object or its geometry, whichever was modified most recently. More...
 
void Graft (const DataObject *) override
 Graft data and information from another data object. More...
 
- Public Member Functions inherited from mitk::OperationActor
 itkTypeMacroNoParent (OperationActor) virtual ~OperationActor()
 
- Public Member Functions inherited from mitk::Identifiable
 Identifiable ()
 Default constructor. Generates a new random UID. More...
 
 Identifiable (const UIDType &uid)
 Construct with a pre-existing UID. More...
 
 Identifiable (const Identifiable &)=delete
 Copy construction is deleted to prevent UID duplication. More...
 
 Identifiable (Identifiable &&) noexcept
 Move constructor. Transfers ownership of the UID. More...
 
virtual ~Identifiable ()
 Virtual destructor. More...
 
Identifiable & operator= (const Identifiable &)=delete
 Copy assignment is deleted to prevent UID duplication. More...
 
Identifiable & operator= (Identifiable &&other) noexcept
 Move assignment operator. Transfers ownership of the UID. More...
 
virtual UIDType GetUID () const
 Get the unique identifier of this object. More...
 
UIDType GetRuntimeUID () const noexcept
 Get a runtime-unique ID for this object instance. More...
 
- Public Member Functions inherited from mitk::IPropertyOwner
 ~IPropertyOwner () override
 
virtual bool PropertyIsOwned (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const
 Checks if a certain property exists. More...
 
- Public Member Functions inherited from mitk::IPropertyProvider
virtual ~IPropertyProvider ()
 Virtual destructor. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 mitkCloneMacro (Self)
 
 BaseDataTestImplementation (const BaseDataTestImplementation &other)
 Copy constructor. More...
 
bool VerifyRequestedRegion () override
 Verify the requested region. More...
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 Check if the requested region is outside of the buffered region. More...
 
void SetRequestedRegionToLargestPossibleRegion () override
 Set the requested region to the largest possible region. More...
 
void SetRequestedRegion (const itk::DataObject *) override
 Set the requested region from the given data object (no-op for testing). More...
 
 BaseDataTestImplementation ()
 Default constructor. More...
 
 ~BaseDataTestImplementation () override
 Destructor. More...
 
- Protected Member Functions inherited from mitk::BaseData
 BaseData ()
 
 BaseData (const BaseData &other)
 
 ~BaseData () override
 
virtual void ClearData ()
 reset to non-initialized state, release memory More...
 
virtual void InitializeEmpty ()
 Pure virtual; Must be used in subclasses to get a data object to a valid state. Should at least create one empty object and call Superclass::InitializeTimeGeometry() to ensure an existing valid geometry. More...
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
- Protected Member Functions inherited from mitk::Identifiable
virtual void SetUID (const UIDType &uid)
 

Additional Inherited Members

- Public Types inherited from mitk::Identifiable
using UIDType = std::string
 Type alias for unique identifiers. More...
 
- Protected Attributes inherited from mitk::BaseData
bool m_LastRequestedRegionWasOutsideOfTheBufferedRegion
 
unsigned int m_SourceOutputIndexDuplicate
 
bool m_Initialized
 

Detailed Description

Implementation of BaseData (for testing).

As BaseData is an abstract class, we need an implementation for testing its methods.

Definition at line 27 of file mitkBaseDataTestImplementation.h.

Constructor & Destructor Documentation

◆ BaseDataTestImplementation() [1/2]

mitk::BaseDataTestImplementation::BaseDataTestImplementation ( const BaseDataTestImplementation &  other)
inlineprotected

Copy constructor.

Definition at line 48 of file mitkBaseDataTestImplementation.h.

◆ BaseDataTestImplementation() [2/2]

mitk::BaseDataTestImplementation::BaseDataTestImplementation ( )
inlineprotected

Default constructor.

Definition at line 60 of file mitkBaseDataTestImplementation.h.

◆ ~BaseDataTestImplementation()

mitk::BaseDataTestImplementation::~BaseDataTestImplementation ( )
inlineoverrideprotected

Destructor.

Definition at line 62 of file mitkBaseDataTestImplementation.h.

Member Function Documentation

◆ Clone()

Pointer mitk::BaseDataTestImplementation::Clone ( ) const

◆ InitializeTimeGeometry()

void mitk::BaseDataTestImplementation::InitializeTimeGeometry ( unsigned int  timeSteps)
inlineoverridevirtual

Initialize the time geometry with the given number of time steps.

Parameters
timeStepsNumber of time steps to initialize.

Reimplemented from mitk::BaseData.

Definition at line 39 of file mitkBaseDataTestImplementation.h.

◆ mitkClassMacro()

mitk::BaseDataTestImplementation::mitkClassMacro ( BaseDataTestImplementation  ,
BaseData   
)

◆ mitkCloneMacro()

mitk::BaseDataTestImplementation::mitkCloneMacro ( Self  )
protected

◆ New()

static Pointer mitk::BaseDataTestImplementation::New ( )
static

◆ RequestedRegionIsOutsideOfTheBufferedRegion()

bool mitk::BaseDataTestImplementation::RequestedRegionIsOutsideOfTheBufferedRegion ( )
inlineoverrideprotectedvirtual

Check if the requested region is outside of the buffered region.

Returns
Always returns false.

Implements mitk::BaseData.

Definition at line 53 of file mitkBaseDataTestImplementation.h.

◆ SetRequestedRegion()

void mitk::BaseDataTestImplementation::SetRequestedRegion ( const itk::DataObject *  )
inlineoverrideprotectedvirtual

Set the requested region from the given data object (no-op for testing).

Implements mitk::BaseData.

Definition at line 57 of file mitkBaseDataTestImplementation.h.

◆ SetRequestedRegionToLargestPossibleRegion()

void mitk::BaseDataTestImplementation::SetRequestedRegionToLargestPossibleRegion ( )
inlineoverrideprotectedvirtual

Set the requested region to the largest possible region.

Implements mitk::BaseData.

Definition at line 55 of file mitkBaseDataTestImplementation.h.

◆ VerifyRequestedRegion()

bool mitk::BaseDataTestImplementation::VerifyRequestedRegion ( )
inlineoverrideprotectedvirtual

Verify the requested region.

Returns
Always returns false.

Implements mitk::BaseData.

Definition at line 51 of file mitkBaseDataTestImplementation.h.


The documentation for this class was generated from the following file: