3 #ifndef __WidgetShowNPoints_h_INCLUDED__
4 #define __WidgetShowNPoints_h_INCLUDED__
9 #include "ModelShowNPoints.h"
10 #include "ViewShowNPoints.h"
13 #include <wx/textctrl.h>
14 #include <wx/slider.h>
15 #include <wx/stattext.h>
18 class WidgetShowNPoints : public wxPanel
21 WidgetShowNPoints( wxWindow *parent , int type );
23 void OnAddPoint(wxCommandEvent &event);
24 void OnInsertPoint (wxCommandEvent& event);//CFT
25 void OnSetPoint(wxCommandEvent& event);
26 void OnRenamePoint(wxCommandEvent& event);
27 void OnErasePoint(wxCommandEvent& event);
28 void OnEraseLastPoint(wxCommandEvent &event);
29 void OnDeleteAllPoints(wxCommandEvent &event);
30 void OnSavePoints(wxCommandEvent &event);
31 void OnLoadPoints(wxCommandEvent &event);
33 virtual void UpdatePoints(wxCommandEvent &event);
36 //void RefreshPoint(int id);
37 //void RefreshPoints();
40 void SetColour(std::vector<double> colour);
41 void SetOpacity(double opacity);
42 void SetRadio(double radio);
43 void SetImage(vtkImageData *image);
44 void SetRenderer(vtkRenderer *renderer);
45 void SetReferencePoint(std::vector<int> point);
47 void AddPoint(int x, int y, int z, std::string label);
48 void InsertPoint(int x, int y, int z, std::string label);//CFT
49 void DeleteAllPoints();
51 ModelShowNPoints* GetModelShowNPoints();
52 ViewShowNPoints* GetViewShowNPoints();
53 void SetInitLstPoints( std::vector<int> initLstPointsX, std::vector<int> initLstPointsY, std::vector<int> initLstPointsZ, std::vector<std::string> initLstLabels );
55 void SetType(int type);
62 virtual void SetOutputBox();
65 void ErasePoint(int id);
68 //vtkRenderer *renderer;
69 //std::vector<vtkActor*> lstActorsSphere;//NTU changed from prop3D to Actor
70 //std::vector<vtkTextActor3D*> lstActorsText;
71 //std::vector<vtkSphereSource*> lstSourceSphere;
72 //std::vector<double> mcolour;
73 //ModelShowNPoints *mmodelShowNPoints;
75 std::vector<ViewShowNPoints*> lstViewShowNPoints;
77 //NTU: For updating points
78 wxStaticText *askPointLabel;
80 wxStaticText *txtNrPoints;
84 std::vector<ModelShowNPoints*> lstModelShowNPoints;
95 #endif // __WidgetShowNPoints_h_INCLUDED__