3 #ifndef __WidgetShowNPoints_h_INCLUDED__
4 #define __WidgetShowNPoints_h_INCLUDED__
9 #include "ModelShowNPoints.h"
12 #include <wx/textctrl.h>
13 #include <wx/slider.h>
14 #include <wx/stattext.h>
15 #include <vtkRenderer.h>
16 #include <vtkTextActor3D.h>
17 #include <vtkSphereSource.h>
20 class WidgetShowNPoints : public wxPanel
23 WidgetShowNPoints( wxWindow *parent , int type );
25 void OnAddPoint(wxCommandEvent &event);
26 void OnInsertPoint (wxCommandEvent& event);//CFT
27 void OnSetPoint(wxCommandEvent& event);
28 void OnRenamePoint(wxCommandEvent& event);
29 void OnErasePoint(wxCommandEvent& event);
30 void OnEraseLastPoint(wxCommandEvent &event);
31 void OnDeleteAllPoints(wxCommandEvent &event);
32 void OnSavePoints(wxCommandEvent &event);
33 void OnLoadPoints(wxCommandEvent &event);
35 virtual void UpdatePoints(wxCommandEvent &event);
37 void RefreshPoint(int id);
39 void SetColour(std::vector<double> colour);
40 void SetOpacity(double opacity);
41 void SetRadio(double radio);
42 void SetImage(vtkImageData *image);
43 void SetRenderer(vtkRenderer *renderer);
44 void SetReferencePoint(std::vector<int> point);
46 void AddPoint(int x, int y, int z, std::string label);
47 void InsertPoint(int x, int y, int z, std::string label);//CFT
48 void DeleteAllPoints();
50 ModelShowNPoints* GetModelShowNPoints();
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);
66 vtkRenderer *renderer;
67 std::vector<vtkActor*> lstActorsSphere;//NTU changed from prop3D to Actor
68 std::vector<vtkTextActor3D*> lstActorsText;
69 //NTU: For updating points
70 std::vector<vtkSphereSource*> lstSourceSphere;
71 std::vector<double> mcolour;
72 wxStaticText *askPointLabel;
74 wxStaticText *txtNrPoints;
77 ModelShowNPoints *mmodelShowNPoints;
87 #endif // __WidgetShowNPoints_h_INCLUDED__