[vtkusers] VtkPointWidget cursor visibility Issue
Satwik
satwik.k8 at gmail.com
Fri Jun 1 07:27:47 EDT 2018
Hi everyone,
I'm trying to draw x,y,z cursor lines on 3D MIP PET dataset.
As an input i'm passing the volume. Here is the code:
d->pointWidget = vtkSmartPointer<vtkPointWidget>::New();
d->pointWidget->SetInteractor(d->m_iren);
d->pointWidget->SetPlaceFactor(1.01);
d->pointWidget->SetHandleSize(0.005);
d->pointWidget->SetProp3D(d->m_volume);
d->pointWidget->SetDefaultRenderer(d->m_renderer);
d->pointWidget->PlaceWidget();
d->pointWidget->EnabledOff();
d->pointWidget->XShadowsOff();
d->pointWidget->YShadowsOff();
d->pointWidget->ZShadowsOff();
d->pointWidget->OutlineOff();
d->pointWidget->GetProperty()->SetColor(0, 1, 0);
d->pointWidget->GetProperty()->SetLineWidth(2);
d->pointWidget->GetProperty()->SetOpacity(1);
d->pointWidget->On();
Problem i'm facing is that the cursor inside the volume is getting
transparent. How can i make it visible. So, that i can see the intersection
points.
Is there is any other way to draw cursors(X,Y & Z) sugge
<http://vtk.1045678.n5.nabble.com/file/t341724/MIP.png>
Regards,
Satwik k
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list