X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuShowNPoints.h;h=c890f13066389ef4fcaf16b8cee25f1da2b6d9cf;hb=664e4e099f2b90efe6e9cfeaa4b880238460f6b2;hp=a203d1f9d03353c46ab7362c13ab1dd95351ecec;hpb=3f50fcd2bb43091e837ac26a9c175674a3fd32ee;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuShowNPoints.h b/bbtk/src/bbmaracasvisuShowNPoints.h index a203d1f..c890f13 100644 --- a/bbtk/src/bbmaracasvisuShowNPoints.h +++ b/bbtk/src/bbmaracasvisuShowNPoints.h @@ -5,6 +5,7 @@ #include "vtkActor.h" +#include "vtkSphereSource.h" #include "vtkImageData.h" #include "vtkRenderer.h" #include "vtkTextActor3D.h" @@ -26,7 +27,9 @@ namespace bbcreaMaracasVisu void OnEraseLastPoint(wxCommandEvent &event); void OnDeleteAllPoints(wxCommandEvent &event); void OnSavePoints(wxCommandEvent &event); - void OnLoadPoints(wxCommandEvent &event); + void OnLoadPoints(wxCommandEvent &event); + + void UpdatePoints(wxCommandEvent &event); void SetPoint(std::vector ppoint); void SetColour(std::vector colour); @@ -40,31 +43,37 @@ namespace bbcreaMaracasVisu std::vector GetLstLabels(); private: - - std::string CleanSpaces(std::string ss); - int GetNearestPoint(); - void ErasePoint(int id); - void SetOutputBox(); - - ShowNPoints *mbbShowNPoints; - vtkRenderer *renderer; - std::vector lstPointsX; - std::vector lstPointsY; - std::vector lstPointsZ; - std::vector lstLabels; - std::vector lstActorsSphere; - std::vector lstActorsText; - - std::vector mpoint; - vtkImageData *mimage; - std::vector mcolour; - double mopacity; - double mradio; - wxTextCtrl *textCtrl; - wxStaticText *txtNrPoints; - }; + void AddPoint(int x, int y, int z, std::string label); + std::string CleanSpaces(std::string ss); + int GetNearestPoint(); + void ErasePoint(int id); + void SetOutputBox(); + + ShowNPoints *mbbShowNPoints; + vtkRenderer *renderer; + std::vector lstPointsX; + std::vector lstPointsY; + std::vector lstPointsZ; + std::vector lstLabels; + std::vector lstActorsSphere;//NTU changed from prop3D to Actor + std::vector lstActorsText; + //NTU: For updating points + + std::vector lstSourceSphere; + + std::vector mpoint; + vtkImageData *mimage; + std::vector mcolour; + double mopacity; + double mradio; + wxStaticText *askPointLabel; + wxTextCtrl *textCtrl; + wxStaticText *txtNrPoints; + wxSlider *sdrOpacity; + wxSlider *sdrRadio; + }; class /*BBTK_EXPORT*/ ShowNPoints : @@ -112,4 +121,3 @@ BBTK_END_DESCRIBE_BLACK_BOX(ShowNPoints); #endif // __bbcreaMaracasVisuShowNPoints_h_INCLUDED__ #endif // _USE_WXWIDGETS_ -