-
Notifications
You must be signed in to change notification settings - Fork 1
/
hitsur.h
32 lines (25 loc) · 1.73 KB
/
hitsur.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
#pragma once
class HitSur : public Sur
{
public:
HitSur(const HDC hdc, const float zoom, const float offx, const float offy, const int width, const int height, const int hitx, const int hity, ISelect * const pbackground);
virtual ~HitSur();
virtual void Line(const float x, const float y, const float x2, const float y2);
virtual void Rectangle(const float x, const float y, const float x2, float y2);
virtual void Rectangle2(const int x, const int y, const int x2, const int y2);
virtual void Ellipse(const float centerx, const float centery, const float radius);
virtual void Ellipse2(const float centerx, const float centery, const int radius);
virtual void Polygon(const Vertex2D * const rgv, const int count);
virtual void Polygon(const std::vector<RenderVertex> &rgv);
virtual void PolygonImage(const std::vector<RenderVertex> &rgv, HBITMAP hbm, const float left, const float top, const float right, const float bottom, const int bitmapwidth, const int bitmapheight);
virtual void Polyline(const Vertex2D * const rgv, const int count);
virtual void Lines(const Vertex2D * const rgv, const int count);
virtual void Arc(const float x, const float y, const float radius, const float pt1x, const float pt1y, const float pt2x, const float pt2y);
virtual void Image(const float x, const float y, const float x2, const float y2, HDC hdcSrc, const int width, const int height);
virtual void SetObject(ISelect *psel);
virtual void SetFillColor(const int rgb);
virtual void SetBorderColor(const int rgb, const bool fDashed, const int width);
virtual void SetLineColor(const int rgb, const bool fDashed, const int width);
ISelect *m_pcur, *m_pselected;
int m_hitx, m_hity;
};