Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkExampleDataStructure.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 mitkExampleDataStructure_h
14 #define mitkExampleDataStructure_h
15 
16 #include <MitkNewModuleExports.h>
17 
18 #include "mitkBaseData.h"
19 
20 namespace mitk
21 {
27  class MITKNEWMODULE_EXPORT ExampleDataStructure : public BaseData
28  {
29  public:
30  // virtual methods that need to be implemented
31  void UpdateOutputInformation() override;
34  bool VerifyRequestedRegion() override;
35  void SetRequestedRegion(const itk::DataObject *) override;
36 
37  // Macros
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
43 
44  // Get macros
45  itkGetMacro(Data, std::string);
46  itkGetConstMacro(Data, std::string);
47 
48  // Set macros
49  itkSetMacro(Data, std::string);
50 
58  void AppendAString(const std::string input);
59 
60  protected:
63 
64  // this string is the data stored in this example data structure
65  std::string m_Data;
66 
67  private:
68  };
69 
76  MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide,
77  mitk::ExampleDataStructure *rightHandSide,
79  bool verbose);
80 
81 } // namespace mitk
82 
83 #endif
Base of all data objects.
Definition: mitkBaseData.h:44
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(ExampleDataStructure, BaseData)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
void AppendAString(const std::string input)
Append a string to the data string.
void UpdateOutputInformation() override
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
Find image slices visible on a given plane.
MITKCORE_EXPORT const ScalarType eps
double ScalarType
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.