X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=vv%2FvvSlicerManagerCommand.cxx;h=c645a27cc88992345b9e479d4b1409688a7a933c;hb=1b76473a92cb470240527e6495b4adcca5bc3bdb;hp=cac22d01fd84c8a528a90f2df10c574249e14049;hpb=975f55b2da41c23fcb357ece9a98bc13d967c8e9;p=clitk.git diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index cac22d0..c645a27 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -381,9 +381,13 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, //>>>>>>> 921642d767beba2442dacc8fdb40dc36396e1b7d if (newLandmark) { - this->SM->AddLandmark(xWorld,yWorld,zWorld, + double pLand[3]; pLand[0] = xWorld; pLand[1] = yWorld; pLand[2] = zWorld; + double ptLand[3]; + this->SM->GetSlicer(VisibleInWindow)->GetConcatenatedTransform()->TransformPoint(pLand, ptLand); + this->SM->AddNewLandmark(ptLand[0],ptLand[1],ptLand[2], this->SM->GetSlicer(VisibleInWindow)->GetTSlice()); - this->SM->GetSlicer(VisibleInWindow)->UpdateLandmarks(); + this->SM->GetSlicer(VisibleInWindow)->RemoveLandmarks(); + //this->SM->GetSlicer(VisibleInWindow)->DisplayLandmarks(); this->SM->Render(); } if (event == vtkCommand::PickEvent || event == vtkCommand::StartPickEvent) {