Medical Imaging Interaction Toolkit  2025.12.02
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  {
37  Superclass::InitializeTimeGeometry(timeSteps);
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
Implementation of BaseData (for testing)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
void InitializeTimeGeometry(unsigned int timeSteps) override
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
mitkClassMacro(BaseDataTestImplementation, BaseData)
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
Base of all data objects.
Definition: mitkBaseData.h:44
Find image slices visible on a given plane.