Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BASEDATAIMPLEMENTATION_H_HEADER_INCLUDED
18 #define BASEDATAIMPLEMENTATION_H_HEADER_INCLUDED
19 
20 #include "mitkBaseData.h"
21 
22 namespace mitk
23 {
24  //##Documentation
25  //## @brief Implementation of BaseData (for testing)
26  //##
27  //## As BaseData is an abstract class, we need an implementation for testing its methods
28  //## @ingroup Data
29 
31  {
32  public:
34 
35  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
36 
37  virtual void InitializeTimeGeometry(unsigned int timeSteps /* = 1 */) override
38  {
40  }
41 
42  protected:
44 
45  virtual bool VerifyRequestedRegion() override { return false; };
46  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override { return false; };
47  virtual void SetRequestedRegionToLargestPossibleRegion() override{};
48  virtual void SetRequestedRegion(const itk::DataObject * /*data*/) override{};
49 
52  };
53 
54 } // namespace
55 
56 #endif // BASEDATA_H_HEADER_INCLUDED
Base of all data objects.
Definition: mitkBaseData.h:39
Implementation of BaseData (for testing)
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
virtual void InitializeTimeGeometry(unsigned int timeSteps) override
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and eve...
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:162
virtual void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
virtual void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to 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...
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.