Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _MITK_PLANAR_CIRCLE_H_
00020 #define _MITK_PLANAR_CIRCLE_H_
00021
00022 #include "mitkPlanarFigure.h"
00023 #include "PlanarFigureExports.h"
00024
00025
00026 namespace mitk
00027 {
00028
00029 class Geometry2D;
00030
00035 class PlanarFigure_EXPORT PlanarCircle : public PlanarFigure
00036 {
00037 public:
00038 mitkClassMacro( PlanarCircle, PlanarFigure );
00039
00040 itkNewMacro( Self );
00041
00042
00048
00049
00050 bool SetControlPoint( unsigned int index, const Point2D &point, bool createIfDoesNotExist );
00051
00053 unsigned int GetMinimumNumberOfControlPoints() const
00054 {
00055 return 2;
00056 }
00057
00058
00060 unsigned int GetMaximumNumberOfControlPoints() const
00061 {
00062 return 2;
00063 }
00064
00065
00066
00067 protected:
00068 PlanarCircle();
00069 virtual ~PlanarCircle();
00070
00072 virtual void GeneratePolyLine();
00073
00075 virtual void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight);
00076
00078 virtual void EvaluateFeaturesInternal();
00079
00080 virtual void PrintSelf( std::ostream &os, itk::Indent indent ) const;
00081
00082
00083
00084 const unsigned int FEATURE_ID_RADIUS;
00085 const unsigned int FEATURE_ID_DIAMETER;
00086 const unsigned int FEATURE_ID_AREA;
00087
00088 private:
00089
00090 };
00091
00092 }
00093
00094 #endif //_MITK_PLANAR_CIRCLE_H_