]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.h
#3485 ShowNPionts for Multiple Groups
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ViewShowNPoints.h
diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.h
new file mode 100644 (file)
index 0000000..168d86a
--- /dev/null
@@ -0,0 +1,43 @@
+
+#ifndef __ViewShowNPoints_h_INCLUDED__
+#define __ViewShowNPoints_h_INCLUDED__
+
+
+#include "vtkActor.h"
+#include <vtkTextActor3D.h>
+#include <vtkRenderer.h>
+#include <vtkSphereSource.h>
+#include "vtkProperty.h"
+#include "vtkPolyDataMapper.h"
+#include "vtkRenderWindow.h"
+#include <vtkTextProperty.h>
+
+#include "ModelShowNPoints.h"
+
+class ViewShowNPoints
+  {
+       public:
+         ViewShowNPoints(ModelShowNPoints* modelShowNPoints);
+         ~ViewShowNPoints();
+      ModelShowNPoints* GetModelShowNPoints();
+      void SetModelShowNPoints(ModelShowNPoints* modelShowNPoints);
+      void RefreshPoint(int id);
+      void RefreshPoints();
+      void AddVtkPoint();
+      void AddPoint();
+      void Render();
+      void ErasePoint(int id);
+      
+      std::vector<vtkActor*>            lstActorsSphere;//NTU changed from prop3D to Actor
+      std::vector<vtkTextActor3D*>      lstActorsText;
+      std::vector<vtkSphereSource*>     lstSourceSphere;
+      std::vector<double>               mcolour;
+      double                            mopacity;
+      vtkRenderer*                      renderer;
+       private:
+      ModelShowNPoints*                 mmodelShowNPoints;
+  };
+
+#endif // __ViewShowNPoints_h_INCLUDED__
+
+