Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkBaseDataTestImplementation.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkBaseDataTestImplementation_h
14 #define mitkBaseDataTestImplementation_h
15 
16 #include "mitkBaseData.h"
17 
18 namespace mitk
19 {
20  //##Documentation
21  //## @brief Implementation of BaseData (for testing)
22  //##
23  //## As BaseData is an abstract class, we need an implementation for testing its methods
24  //## @ingroup Data
25 
27  {
28  public:
30 
31  itkFactorylessNewMacro(Self);
32 
33  itkCloneMacro(Self);
34 
35  void InitializeTimeGeometry(unsigned int timeSteps /* = 1 */) override
36  {
38  }
39 
40  protected:
42 
43  bool VerifyRequestedRegion() override { return false; };
44  bool RequestedRegionIsOutsideOfTheBufferedRegion() override { return false; };
46  void SetRequestedRegion(const itk::DataObject * /*data*/) override{};
47 
50  };
51 
52 } // namespace
53 
54 #endif
mitk::BaseDataTestImplementation
Implementation of BaseData (for testing)
Definition: mitkBaseDataTestImplementation.h:26
mitk::BaseDataTestImplementation::InitializeTimeGeometry
void InitializeTimeGeometry(unsigned int timeSteps) override
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
Definition: mitkBaseDataTestImplementation.h:35
mitk::BaseDataTestImplementation::~BaseDataTestImplementation
~BaseDataTestImplementation() override
Definition: mitkBaseDataTestImplementation.h:49
mitk::BaseDataTestImplementation::SetRequestedRegionToLargestPossibleRegion
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
Definition: mitkBaseDataTestImplementation.h:45
mitk::BaseDataTestImplementation::BaseDataTestImplementation
BaseDataTestImplementation()
Definition: mitkBaseDataTestImplementation.h:48
mitk::BaseDataTestImplementation::RequestedRegionIsOutsideOfTheBufferedRegion
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
Definition: mitkBaseDataTestImplementation.h:44
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataTestImplementation::VerifyRequestedRegion
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
Definition: mitkBaseDataTestImplementation.h:43
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkCloneMacro
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:154
mitkBaseData.h
mitk::BaseData::InitializeTimeGeometry
virtual void InitializeTimeGeometry(unsigned int timeSteps=1)
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseDataTestImplementation::SetRequestedRegion
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
Definition: mitkBaseDataTestImplementation.h:46