OSDN Git Service

Initial Commit
[qcad/qcad.git] / qcadwin / QDrawHSVGraph.h
1 //---------------------------------------------------------------------------\r
2 #ifndef QDrawHSVGraphH\r
3 #define QDrawHSVGraphH\r
4 //---------------------------------------------------------------------------\r
5 #include "QBits.h"\r
6 //---------------------------------------------------------------------------\r
7 \r
8 class QDrawHSVGraph {\r
9 private :\r
10   int LeftMargin;\r
11   int TopMargin;\r
12   int ColumnNumber;\r
13 \r
14   int BoxWidth;\r
15   int BoxDepth;\r
16   int BoxMaxHeight;\r
17   int BoxOffset;\r
18 \r
19   TCanvas *Canvas;\r
20 \r
21   void SetPenColor(TColor Color) {Canvas->Pen->Color = Color;};\r
22   void SetBrushColor(TColor Color) {Canvas->Brush->Color = Color;};\r
23 \r
24   void SetSize(int BoxSize);\r
25   void DrawBox(int _x, int _y, int height, double ang);\r
26   void DrawBoxBase(int _x, int _y);\r
27   TColor GetColor(double theta, double abVal);\r
28 public :\r
29   QDrawHSVGraph(TCanvas *_canvas);\r
30   void DrawTest(void);\r
31   void DrawAll(QBits * qBots);\r
32   void DrawAll2D(QBits * qBits);\r
33   void SetCanvas(TCanvas *_canvas) {Canvas = _canvas;};\r
34 };\r
35 #endif\r