Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
7 Division of Medical and Biological Informatics.
8 All rights reserved.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without
11 even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 A PARTICULAR PURPOSE.
13 
14 See LICENSE.txt or http://www.mitk.org for details.
15 
16 ===================================================================*/
17 
18 #ifndef _MITK_ExampleDataStructure_H
19 #define _MITK_ExampleDataStructure_H
20 
21 #include <MitkNewModuleExports.h>
22 
23 #include "mitkBaseData.h"
24 
25 namespace mitk
26 {
32  class MITKNEWMODULE_EXPORT ExampleDataStructure : public BaseData
33  {
34  public:
35  // virtual methods that need to be implemented
36  virtual void UpdateOutputInformation() override;
37  virtual void SetRequestedRegionToLargestPossibleRegion() override;
38  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
39  virtual bool VerifyRequestedRegion() override;
40  virtual void SetRequestedRegion(const itk::DataObject *) override;
41 
42  // Macros
44  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
45 
46 
47 
48  // Get macros
49  itkGetMacro(Data, std::string);
50  itkGetConstMacro(Data, std::string);
51 
52  // Set macros
53  itkSetMacro(Data, std::string);
54 
62  void AppendAString(const std::string input);
63 
64  protected:
66  virtual ~ExampleDataStructure();
67 
68  // this string is the data stored in this example data structure
69  std::string m_Data;
70 
71  private:
72  };
73 
80  MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide,
81  mitk::ExampleDataStructure *rightHandSide,
83  bool verbose);
84 
85 } // namespace mitk
86 
87 #endif /* _MITK_ExampleDataStructure_H */
Base of all data objects.
Definition: mitkBaseData.h:39
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
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