新手求教 用VTK读取一个DICOM序列文件, 想在鼠标点击图像的一个点的时候 添加一个标记。
vtkPointHandleRepresentation3D* handleRep = vtkPointHandleRepresentation3D::New();
handleRep->SetHandleSize(20);
handleRep->GetProperty()->SetColor(1,0,0);
handleRep->GetProperty()->SetLineWidth(2);
handleRep->GetSelectedProperty()->SetColor(0,1,0);
handleRep->GetSelectedProperty()->SetLineWidth(2);
this->MRMarkers = vtkSeedRepresentation::New();
this->MRMarkers->SetHandleRepresentation(handleRep);
添加了以后发现 当在一张图像上添加点以后 在这张图片的上一层图片也会显示这个点 怎样才能只在选定的这张图片上显示啊
vtkPointHandleRepresentation3D* handleRep = vtkPointHandleRepresentation3D::New();
handleRep->SetHandleSize(20);
handleRep->GetProperty()->SetColor(1,0,0);
handleRep->GetProperty()->SetLineWidth(2);
handleRep->GetSelectedProperty()->SetColor(0,1,0);
handleRep->GetSelectedProperty()->SetLineWidth(2);
this->MRMarkers = vtkSeedRepresentation::New();
this->MRMarkers->SetHandleRepresentation(handleRep);
添加了以后发现 当在一张图像上添加点以后 在这张图片的上一层图片也会显示这个点 怎样才能只在选定的这张图片上显示啊