From 2fcae0362dddfd613ec085c6b48da49e721d0021 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 29 May 2009 14:26:14 +0000 Subject: [PATCH] bbmaracasvisuShowNPoints.cxx --- bbtk/src/bbmaracasvisuShowNPoints.h | 35 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/bbtk/src/bbmaracasvisuShowNPoints.h b/bbtk/src/bbmaracasvisuShowNPoints.h index d32401c..8a2feec 100644 --- a/bbtk/src/bbmaracasvisuShowNPoints.h +++ b/bbtk/src/bbmaracasvisuShowNPoints.h @@ -17,20 +17,23 @@ namespace bbcreaMaracasVisu class WidgetShowNPoints : public wxPanel { public: - WidgetShowNPoints( wxWindow *parent, ShowNPoints *box); - ~WidgetShowNPoints(); - void OnAddPoint(wxCommandEvent &event); - void OnErasePoint(wxCommandEvent &event); - void OnDeleteAllPoints(wxCommandEvent &event); - void SetPoint(std::vector ppoint); - void SetColour(std::vector colour); - void SetOpacity(double opacity); - void SetRadio(double radio); - void SetImage(vtkImageData *image); - void SetRenderer(vtkRenderer *renderer); - std::vector GetLstPointsX(); - std::vector GetLstPointsY(); - std::vector GetLstPointsZ(); + WidgetShowNPoints( wxWindow *parent, ShowNPoints *box); + ~WidgetShowNPoints(); + void OnAddPoint(wxCommandEvent &event); + void ErasePoint(int id); + void OnErasePoint(wxCommandEvent& event); + void OnEraseLastPoint(wxCommandEvent &event); + void OnDeleteAllPoints(wxCommandEvent &event); + + void SetPoint(std::vector ppoint); + void SetColour(std::vector colour); + void SetOpacity(double opacity); + void SetRadio(double radio); + void SetImage(vtkImageData *image); + void SetRenderer(vtkRenderer *renderer); + std::vector GetLstPointsX(); + std::vector GetLstPointsY(); + std::vector GetLstPointsZ(); private: ShowNPoints *mbbShowNPoints; @@ -38,13 +41,15 @@ namespace bbcreaMaracasVisu std::vector lstPointsX; std::vector lstPointsY; std::vector lstPointsZ; - std::vector lstActors; + std::vector lstActorsSphere; + std::vector lstActorsText; std::vector mpoint; vtkImageData *mimage; std::vector mcolour; double mopacity; double mradio; + wxTextCtrl *textCtrl; }; -- 2.46.2