Cursor Lines using VTKPointWidget

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cursor Lines using VTKPointWidget

Satwik
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 make it visible. So, that i can see the intersection points.


If there is any other way to draw cursors(X,Y & Z) suggest.

Regards,
Satwik k

Inline image 1

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

3DMIP.PNG (250K) Download Attachment
Loading...