forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faceWidget.h
55 lines (49 loc) · 1.65 KB
/
faceWidget.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
#ifndef __APOLO__FACEWIDGET__H
#define __APOLO__FACEWIDGET__H
#include "mainWindow.h"
#include <wx/wx.h>
#include <wx/splitter.h>
#include "simulatedWorld.h"
#include "pointsList.h"
#include "canvas.h"
#include "mrcore.h"
#include "faceDesign.h"
#include <math.h>
#include <conio.h>
DECLARE_EVENT_TYPE(wxEVT_POINT_ADDED, -1)
class PointsList;
class FaceWidget : public wxPanel
{
public:
FaceWidget(wxWindow *parent,SimulatedWorld *simu,const wxPoint& pos,const wxSize& size,bool horizontal=true, bool pre=false);
void CreatePanel();
void RefreshCanvas();
void GetPoint(wxCommandEvent& event);
void ChangePoint(wxCommandEvent& event); //Función que se encargará de establecer el nuevo punto
void SetVertex(bool addvertex=true,bool changevertex=false,bool deletevertex=false,bool movepoint=false,int deleteRow=0);
void CheckPointToMove(wxCommandEvent& event); //Función que se encarga de comprobar si el punto seleccionado hay que moverlo
void OnChangeSplitter(wxSplitterEvent &event);
void SetAlign(bool al){align=al;}
bool GetAlign(){return align;}
Canvas *GetCanvas3D(){return canvas2;}
void AssociatePointTable(PointsList *point);
void ChangeView(bool world);
void CreateFace();
Face* GetFace() {return face;}
Canvas *canvas2;
FaceDesign* design1;
private:
bool tableAssociated;
bool align,h;
bool worldView;
bool noPreliminar3D;
double x,y;
Face *face,*faceCopy;
PointsList *points;
SimulatedWorld *world;
//Poner las canvas aquí después de la corrección
wxSplitterWindow* canvas;
int resp; //Variable en la que vamos a almacenar la fila del punto a cambiar
DECLARE_EVENT_TABLE();
};
#endif // __APOLO__FACEWIDGET__H