CanvasCV: CanvasCV-doxygen/src/canvascv/shapes/ellipse.h Source File
CanvasCV  1.0.0
ellipse.h
1 #ifndef ELLIPSE_H
2 #define ELLIPSE_H
3 
4 #include "rectangle.h"
5 
6 namespace canvascv
7 {
8 
14 class Ellipse : public Rectangle
15 {
16 public:
17 
18  virtual const char *getType() const;
19 
20  static const char * type;
21 
22 protected:
23  friend class ShapeFactory;
24  template <class T> friend class ShapeFactoryT;
25 
26  Ellipse(const cv::Point &pos);
27  virtual void draw(Mat &canvas);
28 };
29 
30 }
31 
36 #endif // ELLIPSE_H
The ShapeFactory class.
Definition: shapefactory.h:24
virtual const char * getType() const
getType is always implemented by derived to return the same static pointer per shape.
The Ellipse class.
Definition: ellipse.h:14
The ShapeFactoryT class.
Definition: shapefactory.h:45
This namespace holds all the classes of the CanvasCV library.
Definition: canvas.h:20
The Rectangle class.
Definition: rectangle.h:15