X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FWidgetShowNPoints.h;fp=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FWidgetShowNPoints.h;h=05fa5f15092a7850d958645c728770230947c7b7;hb=b6280d5b96447f5e4db026549d346e0d099a86f6;hp=0000000000000000000000000000000000000000;hpb=307866a8f06b14018ea832926bdf3d887bfffea8;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.h new file mode 100644 index 0000000..05fa5f1 --- /dev/null +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.h @@ -0,0 +1,88 @@ + + +#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__ +