[vtkusers] Cursor Lines using VTKPointWidget

satwik k satwik.k8 at gmail.com
Tue Jun 20 07:56:04 EDT 2017


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

[image: Inline image 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170620/362abb53/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3DMip1.PNG
Type: image/png
Size: 105823 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170620/362abb53/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3DMIP.PNG
Type: image/png
Size: 187812 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170620/362abb53/attachment-0003.png>


More information about the vtkusers mailing list