]> Creatis software - creaMaracasVisu.git/commitdiff
bbmaracasvisuShowNPoints.h
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 8 Jun 2009 12:37:44 +0000 (12:37 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 8 Jun 2009 12:37:44 +0000 (12:37 +0000)
bbtk/src/bbmaracasvisuShowNPoints.h

index 46ab8b9f3a58c659e675dbf4c8aaf68554250a7f..a203d1f9d03353c46ab7362c13ab1dd95351ecec 100644 (file)
@@ -7,6 +7,7 @@
 #include "vtkActor.h"
 #include "vtkImageData.h"
 #include "vtkRenderer.h"
+#include "vtkTextActor3D.h"
 
 namespace bbcreaMaracasVisu
 {
@@ -20,12 +21,13 @@ namespace bbcreaMaracasVisu
          WidgetShowNPoints( wxWindow *parent,  ShowNPoints *box);
          ~WidgetShowNPoints(); 
          void OnAddPoint(wxCommandEvent &event);   
-         void ErasePoint(int id);
+         void OnRenamePoint(wxCommandEvent& event);
          void OnErasePoint(wxCommandEvent& event);
          void OnEraseLastPoint(wxCommandEvent &event);   
          void OnDeleteAllPoints(wxCommandEvent &event);   
+         void OnSavePoints(wxCommandEvent &event);   
+         void OnLoadPoints(wxCommandEvent &event);   
          
-         void SetOutputBox();
          void SetPoint(std::vector<int> ppoint);
          void SetColour(std::vector<double> colour);
          void SetOpacity(double opacity);
@@ -38,21 +40,28 @@ namespace bbcreaMaracasVisu
          std::vector<std::string> GetLstLabels();
 
   private:
-       ShowNPoints                              *mbbShowNPoints;
-       vtkRenderer                              *renderer;
-       std::vector<int>                 lstPointsX;
-       std::vector<int>                 lstPointsY;
-       std::vector<int>                 lstPointsZ;
-       std::vector<std::string> lstLabels;
-       std::vector<vtkProp3D*>  lstActorsSphere;
-       std::vector<vtkProp3D*>  lstActorsText;
+         
+         std::string   CleanSpaces(std::string ss);
+         int                   GetNearestPoint();
+         void                  ErasePoint(int id);
+         void                  SetOutputBox();
+         
+         ShowNPoints                                   *mbbShowNPoints;
+         vtkRenderer                                   *renderer;
+         std::vector<int>                              lstPointsX;
+         std::vector<int>                              lstPointsY;
+         std::vector<int>                              lstPointsZ;
+         std::vector<std::string>              lstLabels;
+         std::vector<vtkProp3D*>               lstActorsSphere;
+         std::vector<vtkTextActor3D*>  lstActorsText;
 
-       std::vector<int>                mpoint;
-       vtkImageData                    *mimage;
-       std::vector<double>             mcolour;
-       double                                  mopacity;
-       double                                  mradio;
-       wxTextCtrl                              *textCtrl;
+         std::vector<int>                              mpoint;
+         vtkImageData                                  *mimage;
+         std::vector<double>                   mcolour;
+         double                                                mopacity;
+         double                                                mradio;
+         wxTextCtrl                                    *textCtrl;
+         wxStaticText                                  *txtNrPoints;
   };