[vtkusers] How to display opaque vtkPointWidget inside 3D MIP or Volume

Satwik satwik.k8 at gmail.com
Mon Jun 11 00:43:15 EDT 2018


Hi everyone,

I'm trying to draw x,y,z cursor lines on 3D MIP PET dataset.



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.


Regards,
Satwik k  <http://vtk.1045678.n5.nabble.com/file/t341724/MIP.png> 



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list