]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.h
#3485 ShowNPionts for Multiple Groups
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / WidgetShowNPoints.h
index 05fa5f15092a7850d958645c728770230947c7b7..e1308c3f6ad135f38f4434c877ea46733f7f7aa7 100644 (file)
@@ -7,14 +7,12 @@
 
 
 #include "ModelShowNPoints.h"
+#include "ViewShowNPoints.h"
 
 #include <wx/panel.h>
 #include <wx/textctrl.h>
 #include <wx/slider.h>
 #include <wx/stattext.h>
-#include <vtkRenderer.h>
-#include <vtkTextActor3D.h>
-#include <vtkSphereSource.h>
 
 
 class WidgetShowNPoints : public wxPanel
@@ -34,8 +32,11 @@ class WidgetShowNPoints : public wxPanel
 
          virtual void UpdatePoints(wxCommandEvent &event);
          
-         void RefreshPoint(int id);
-         
+    // EED 2022-05-19
+         //void RefreshPoint(int id);
+      //void RefreshPoints();
+      //void AddVtkPoint();
+
          void SetColour(std::vector<double> colour);
          void SetOpacity(double opacity);
          void SetRadio(double radio);
@@ -48,8 +49,7 @@ class WidgetShowNPoints : public wxPanel
          void DeleteAllPoints();
 
          ModelShowNPoints* GetModelShowNPoints();
-         void RefreshPoints();
-         void AddVtkPoint();
+      ViewShowNPoints* GetViewShowNPoints();
          void SetInitLstPoints( std::vector<int> initLstPointsX,  std::vector<int> initLstPointsY, std::vector<int> initLstPointsZ, std::vector<std::string> initLstLabels );
 
                void SetType(int type);
@@ -62,21 +62,29 @@ class WidgetShowNPoints : public wxPanel
          virtual void                                  SetOutputBox();
 
   private:
-         void                                  ErasePoint(int id);
-         vtkRenderer                   *renderer;
-         std::vector<vtkActor*>        lstActorsSphere;//NTU changed from prop3D to Actor
-         std::vector<vtkTextActor3D*>  lstActorsText;
+         void                                      ErasePoint(int id);
+    
+      // EED 2022-05-19
+      //vtkRenderer                       *renderer;
+         //std::vector<vtkActor*>            lstActorsSphere;//NTU changed from prop3D to Actor
+         //std::vector<vtkTextActor3D*>      lstActorsText;
+      //std::vector<vtkSphereSource*>     lstSourceSphere;
+      //std::vector<double>               mcolour;
+      //ModelShowNPoints                *mmodelShowNPoints;
+      //double                            mopacity;
+      std::vector<ViewShowNPoints*>     lstViewShowNPoints;
+
          //NTU: For updating points
-         std::vector<vtkSphereSource*> lstSourceSphere;
-         std::vector<double>                   mcolour;
-         wxStaticText                          *askPointLabel;
-         wxTextCtrl                            *textCtrl;
-         wxStaticText                          *txtNrPoints;
-         wxSlider                              *sdrOpacity;
-         wxSlider                              *sdrRadio;
-         ModelShowNPoints                              *mmodelShowNPoints;
-         int                                                   mtype;
-         double                                mopacity;
+         wxStaticText                              *askPointLabel;
+         wxTextCtrl                                *textCtrl;
+         wxStaticText                              *txtNrPoints;
+         wxSlider                                  *sdrOpacity;
+         wxSlider                                  *sdrRadio;
+    
+    std::vector<ModelShowNPoints*>    lstModelShowNPoints;
+      int                               mActualLstPoints;
+  
+         int                                                       mtype;
 };