Medical Imaging Interaction Toolkit  2018.4.99-36d69b77
Medical Imaging Interaction Toolkit
mitkExampleDataStructure.h
Go to the documentation of this file.
1 
2 /*============================================================================
3 
4 The Medical Imaging Interaction Toolkit (MITK)
5 
6 Copyright (c) German Cancer Research Center (DKFZ)
7 All rights reserved.
8 
9 Use of this source code is governed by a 3-clause BSD license that can be
10 found in the LICENSE file.
11 
12 ============================================================================*/
13 
14 #ifndef _MITK_ExampleDataStructure_H
15 #define _MITK_ExampleDataStructure_H
16 
17 #include <MitkNewModuleExports.h>
18 
19 #include "mitkBaseData.h"
20 
21 namespace mitk
22 {
29  {
30  public:
31  // virtual methods that need to be implemented
32  void UpdateOutputInformation() override;
33  void SetRequestedRegionToLargestPossibleRegion() override;
34  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
35  bool VerifyRequestedRegion() override;
36  void SetRequestedRegion(const itk::DataObject *) override;
37 
38  // Macros
40  itkFactorylessNewMacro(Self);
41  itkCloneMacro(Self);
42 
44 
45  // Get macros
46  itkGetMacro(Data, std::string);
47  itkGetConstMacro(Data, std::string);
48 
49  // Set macros
50  itkSetMacro(Data, std::string);
51 
59  void AppendAString(const std::string input);
60 
61  protected:
63  ~ExampleDataStructure() override;
64 
65  // this string is the data stored in this example data structure
66  std::string m_Data;
67 
68  private:
69  };
70 
78  mitk::ExampleDataStructure *rightHandSide,
80  bool verbose);
81 
82 } // namespace mitk
83 
84 #endif /* _MITK_ExampleDataStructure_H */
#define MITKNEWMODULE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:42
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
bool verbose(false)
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
MITKCORE_EXPORT const ScalarType eps