-
Notifications
You must be signed in to change notification settings - Fork 5
/
pointsList.h
68 lines (53 loc) · 1.77 KB
/
pointsList.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef __APOLO__POINTS_LIST__H
#define __APOLO__POINTS_LIST__H
#include "mrcore.h"
#include "wx/grid.h"
#include "wx/wx.h"
#include "faceWidget.h"
#include "changeVertex.h"
class globalView;
class FaceWidget;
class ChangeVertex;
class PointsList: public wxPanel
{
public:
PointsList(wxWindow *window,const wxString label=wxEmptyString,const wxPoint& pos = wxDefaultPosition,const wxSize& size = wxDefaultSize);
void CreatePanel();
wxWindow *getParent(){return parent;}
void SetPoints(double x, double y);
void SetVertex(int r);
void OnChange(wxGridEvent& event);
void AssociateFace(FaceWidget *face);
void AssociateDesign2D(globalView *Design2D);
Vector2D getLastPointAdded(){return lastPoint;}
Vector2D getChangePointAdded(){return changePoint;}
Vector2D getDeletePointAdded(){return deletePoint;}
Vector2D getMovedPointAdded(){return movedPoint;}
double getAuxRow(){return auxrow;}
void ChangePoint();
void OnMenuChangePoint(wxCommandEvent& event);
void DeletePoint ();
void DeletePoints();
void DeletePointMarked(int r);
void OnMenuDeletePoint(wxCommandEvent& event);
void OnItemMenu(wxGridEvent& event);
void RefreshGrid();
int CheckPoint(double x,double y);
void MovedPoint(int rowtochange,double x,double y);
void InsertedPoint(int firts,int second,double x,double y);
void MovedPoints();
void MarkRow(int MarkedRow);
void SetDesignAssociated(bool aux){designAssociated=aux;};
wxGrid *grid;
private:
FaceWidget *faces;
globalView *Screen2D;
bool facesAssociated,designAssociated;
wxString name;
wxWindow *parent;
ChangeVertex *changeVertex;
double row,col,auxrow;
Vector2D lastPoint, changePoint,deletePoint,movedPoint;
DECLARE_EVENT_TABLE();
};
#endif // __APOLO__POINTS_LIST__H