#ifndef __WidgetShowNPoints_h_INCLUDED__ #define __WidgetShowNPoints_h_INCLUDED__ #include "ModelShowNPoints.h" #include #include #include #include #include #include #include class WidgetShowNPoints : public wxPanel { public: WidgetShowNPoints( wxWindow *parent , int type ); ~WidgetShowNPoints(); void OnAddPoint(wxCommandEvent &event); void OnInsertPoint (wxCommandEvent& event);//CFT void OnSetPoint(wxCommandEvent& event); void OnRenamePoint(wxCommandEvent& event); void OnErasePoint(wxCommandEvent& event); void OnEraseLastPoint(wxCommandEvent &event); void OnDeleteAllPoints(wxCommandEvent &event); void OnSavePoints(wxCommandEvent &event); void OnLoadPoints(wxCommandEvent &event); virtual void UpdatePoints(wxCommandEvent &event); void RefreshPoint(int id); void SetColour(std::vector colour); void SetOpacity(double opacity); void SetRadio(double radio); void SetImage(vtkImageData *image); void SetRenderer(vtkRenderer *renderer); void SetReferencePoint(std::vector point); void AddPoint(int x, int y, int z, std::string label); void InsertPoint(int x, int y, int z, std::string label);//CFT void DeleteAllPoints(); ModelShowNPoints* GetModelShowNPoints(); void RefreshPoints(); void AddVtkPoint(); void SetInitLstPoints( std::vector initLstPointsX, std::vector initLstPointsY, std::vector initLstPointsZ, std::vector initLstLabels ); void SetType(int type); int GetType(); double GetRadio(); double GetOpacity(); protected: virtual void SetOutputBox(); private: void ErasePoint(int id); vtkRenderer *renderer; std::vector lstActorsSphere;//NTU changed from prop3D to Actor std::vector lstActorsText; //NTU: For updating points std::vector lstSourceSphere; std::vector mcolour; wxStaticText *askPointLabel; wxTextCtrl *textCtrl; wxStaticText *txtNrPoints; wxSlider *sdrOpacity; wxSlider *sdrRadio; ModelShowNPoints *mmodelShowNPoints; int mtype; double mopacity; }; #endif // __WidgetShowNPoints_h_INCLUDED__