ViewShowNPoints::ViewShowNPoints(ModelShowNPoints* modelShowNPoints)
{
renderer = NULL;
- mmodelShowNPoints=modelShowNPoints;
+ mmodelShowNPoints = modelShowNPoints;
}
//----------------------------------------------------------------------
}
//------------------------------------------------------------------------
-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();
}
{
// 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);
//------------------------------------------------------------------------
void ViewShowNPoints::SetModelShowNPoints( ModelShowNPoints* modelShowNPoints)
{
- mmodelShowNPoints=modelShowNPoints;
+ mmodelShowNPoints = modelShowNPoints;
}