Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPlanarFigureControlPointStyleProperty.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 mitkPlanarFigureControlPointStyleProperty_h
18 #define mitkPlanarFigureControlPointStyleProperty_h
19 
21 
23 
24 namespace mitk
25 {
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
46 
48 
49  typedef enum { Square, Circle } Shape;
50 
51  virtual Shape GetShape();
52 
53  virtual void SetShape(Shape);
54 
55  protected:
57 
58  PlanarFigureControlPointStyleProperty(const IdType &value);
59 
64  PlanarFigureControlPointStyleProperty(const std::string &value);
65 
70  virtual bool AddEnum(const std::string &name, const IdType &id) override;
71 
75  virtual void AddEnumTypes();
76 
77  private:
78  // purposely not implemented
80 
81  virtual itk::LightObject::Pointer InternalClone() const override;
82  };
83 
84 } // end of namespace mitk
85 
86 #endif
itk::SmartPointer< Self > Pointer
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
DataCollection - Class to facilitate loading/accessing structured data.
Defines the rendering style of control points for PlanarFigure objects.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define MITKPLANARFIGURE_EXPORT