Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkPlanarDoubleEllipse.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 mitkPlanarDoubleEllipse_h
14 #define mitkPlanarDoubleEllipse_h
15 
17 #include <mitkPlanarFigure.h>
18 
19 namespace mitk
20 {
22  {
23  public:
25  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
26 
27  unsigned int GetNumberOfSegments() const;
28  void SetNumberOfSegments(unsigned int numSegments);
29 
30  unsigned int GetMaximumNumberOfControlPoints() const override;
31  unsigned int GetMinimumNumberOfControlPoints() const override;
32  bool SetControlPoint(unsigned int index, const Point2D &point, bool createIfDoesNotExist = true) override;
33 
34  const unsigned int FEATURE_ID_MAJOR_AXIS;
35  const unsigned int FEATURE_ID_MINOR_AXIS;
36  const unsigned int FEATURE_ID_THICKNESS;
37 
38  bool Equals(const mitk::PlanarFigure &other) const override;
39 
40  protected:
42 
44 
45  mitk::Point2D ApplyControlPointConstraints(unsigned int index, const Point2D &point) override;
46  void EvaluateFeaturesInternal() override;
47  void GenerateHelperPolyLine(double, unsigned int) override;
48  void GeneratePolyLine() override;
49 
50  private:
51  unsigned int m_NumberOfSegments;
52  bool m_ConstrainCircle;
53  bool m_ConstrainThickness;
54  };
55 }
56 
57 #endif
Base of all data objects.
Definition: mitkBaseData.h:37
DataCollection - Class to facilitate loading/accessing structured data.
const unsigned int FEATURE_ID_THICKNESS
const unsigned int FEATURE_ID_MAJOR_AXIS
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
const unsigned int FEATURE_ID_MINOR_AXIS
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
#define MITKPLANARFIGURE_EXPORT
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons...