Medical Imaging Interaction Toolkit  2018.4.99-6ca56567
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 BASEDATAIMPLEMENTATION_H_HEADER_INCLUDED
14 #define BASEDATAIMPLEMENTATION_H_HEADER_INCLUDED
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 // BASEDATA_H_HEADER_INCLUDED
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
void InitializeTimeGeometry(unsigned int timeSteps) override
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
Base of all data objects.
Definition: mitkBaseData.h:42
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
Implementation of BaseData (for testing)
DataCollection - Class to facilitate loading/accessing structured data.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
virtual void InitializeTimeGeometry(unsigned int timeSteps=1)
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...