-
Notifications
You must be signed in to change notification settings - Fork 3
/
LineBrush.h
32 lines (27 loc) · 842 Bytes
/
LineBrush.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// LineBrush.h
//
// The header file for Line Brush.
//
#ifndef LINEBRUSH_H
#define LINEBRUSH_H
#include "ImpBrush.h"
#include <functional>
class LineBrush : public ImpBrush
{
public:
LineBrush(ImpressionistDoc* pDoc = NULL, char* name = NULL);
void BrushBegin(const Point source, const Point target);
void BrushMove(const Point source, const Point target);
void BrushEnd(const Point source, const Point target);
void RightBegin(const Point source, const Point target) override;
void RightMove(const Point source, const Point target) override;
void RightEnd(const Point source, const Point target) override;
void DrawLine(const Point source, const Point target, const double rad);
char* BrushName(void);
Point ClippedPoint(const Point origin, const int size, const double rad);
private:
Point start;
Point prev;
};
#endif