]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.cxx
#3485 ShowNPionts for Multiple Groups
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ViewShowNPoints.cxx
index ac81dd792d76a0eb84dc06b48c871eb00bd64666..0af0e4532675941e3d3489f350d35164bbe0557a 100644 (file)
@@ -7,7 +7,7 @@
 ViewShowNPoints::ViewShowNPoints(ModelShowNPoints* modelShowNPoints)
 {
     renderer                    = NULL;
-    mmodelShowNPoints=modelShowNPoints;
+    mmodelShowNPoints           = modelShowNPoints;
 }
 //----------------------------------------------------------------------
 
@@ -41,13 +41,19 @@ void ViewShowNPoints::RefreshPoint(int id)
 }
 
 //------------------------------------------------------------------------
-void ViewShowNPoints::RefreshPoints()
+void ViewShowNPoints::RefreshEachPoint()
 {
     int id,size=lstActorsSphere.size();
     for (id=0;id<size;id++)
     {
         RefreshPoint(id);
     } // for
+}
+
+//------------------------------------------------------------------------
+void ViewShowNPoints::RefreshPoints()
+{
+    RefreshEachPoint();
     renderer->GetRenderWindow()->Render();
 }
 
@@ -56,8 +62,8 @@ void ViewShowNPoints::AddVtkPoint()
 {
     // Sphere
     vtkSphereSource *vtksphere = vtkSphereSource::New();
-    vtksphere->SetThetaResolution (20);
-    vtksphere->SetPhiResolution (20);
+    vtksphere->SetThetaResolution (10);
+    vtksphere->SetPhiResolution (10);
     vtksphere->SetRadius( 1 );
     //NTU: For updating points
     lstSourceSphere.push_back(vtksphere);
@@ -134,5 +140,5 @@ ModelShowNPoints* ViewShowNPoints::GetModelShowNPoints()
 //------------------------------------------------------------------------
 void ViewShowNPoints::SetModelShowNPoints( ModelShowNPoints*  modelShowNPoints)
 {
-    mmodelShowNPoints=modelShowNPoints;
+    mmodelShowNPoints = modelShowNPoints;
 }