-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHPoint.h
More file actions
38 lines (31 loc) · 1.03 KB
/
HPoint.h
File metadata and controls
38 lines (31 loc) · 1.03 KB
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
33
34
35
36
37
38
// HPoint.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "IdNamedObj.h"
#include "HeeksColor.h"
class HPoint: public IdNamedObj{
private:
HeeksColor color;
public:
gp_Pnt m_p;
bool m_draw_unselected;
double mx,my;
~HPoint(void);
HPoint(const gp_Pnt &p, const HeeksColor* col);
HPoint(const HPoint &p);
const HPoint& operator=(const HPoint &b);
// HeeksObj's virtual functions
int GetType()const{return PointType;}
long GetMarkingMask()const{return MARKING_FILTER_POINT;}
void GetBox(CBox &box);
const wchar_t* GetTypeString(void)const{return L"Point";}
HeeksObj *MakeACopy(void)const;
void ModifyByMatrix(const double *mat);
void SetColor(const HeeksColor &col){color = col;}
const HeeksColor* GetColor()const{return &color;}
bool GetStartPoint(double* pos);
bool GetEndPoint(double* pos);
void CopyFrom(const HeeksObj* object){operator=(*((HPoint*)object));}
bool IsDifferent(HeeksObj* other);
};