CanvasCV: CanvasCV-doxygen/src/canvascv/shapes/arrow.h Source File
CanvasCV  1.0.0
arrow.h
1 #ifndef ARROW_H
2 #define ARROW_H
3 
4 #include "line.h"
5 
6 namespace canvascv
7 {
8 
14 class Arrow : public Line
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  Arrow(const cv::Point &pos);
27 
28  virtual void draw(cv::Mat &canvas);
29 };
30 
31 }
32 
37 #endif // ARROW_H
The ShapeFactory class.
Definition: shapefactory.h:24
The Line class.
Definition: line.h:18
virtual void draw(cv::Mat &canvas)
draw shape on the canvas
The ShapeFactoryT class.
Definition: shapefactory.h:45
This namespace holds all the classes of the CanvasCV library.
Definition: canvas.h:20
virtual const char * getType() const
getType is always implemented by derived to return the same static pointer per shape.
The Arrow class.
Definition: arrow.h:14