X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcpExtensions%2FInteraction%2FSphereWidget.cxx;h=1778d3fbfa26996a1e27e9854e83a4e94508730f;hb=4c1d2229e65d601ac8138d804b4ae5e91c468e1a;hp=0b944654f0915fd173ce77d050a0c77001d9cb98;hpb=64ee1e8924a88841c1c943fef576860402e0777c;p=cpPlugins.git diff --git a/lib/cpExtensions/Interaction/SphereWidget.cxx b/lib/cpExtensions/Interaction/SphereWidget.cxx index 0b94465..1778d3f 100644 --- a/lib/cpExtensions/Interaction/SphereWidget.cxx +++ b/lib/cpExtensions/Interaction/SphereWidget.cxx @@ -93,6 +93,7 @@ void cpExtensions::Interaction::SphereWidget::SetCenter(double * center) this->Superclass::SetCenter(center); this->SphereActor->SetPosition(center); this->SphereActor->Modified(); + this->Modified(); this->GetInteractor()->Render(); } @@ -103,8 +104,10 @@ void cpExtensions::Interaction::SphereWidget::SetCenter(void* data, double * cen self->Superclass::SetCenter(center); self->SphereActor->SetPosition(center); self->SphereActor->Modified(); + self->Modified(); + self->GetInteractor()->Render(); - std::cout << "sphere: {" << center[0] << " , " << center[1] << " , " << center[2] + 19 << "} " << std::endl; + std::cout << "sphere: {" << center[0] << " , " << center[1] << " , " << center[2] << "} " << std::endl; } // -------------------------------------------------------------------------