vtkImplicitPlaneWidget

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

vtkImplicitPlaneWidget

Radim Kolář-2
Hi all,
I have one question about the plane widget.

I'm using vtkImplicitPlaneWidget like this:

this->planeWidget = vtkImplicitPlaneWidget::New();

Then I set some properties:
    this->planeWidget->SetInteractor(
this->pvtkMFCWindow->GetInteractor() );
    this->planeWidget->SetPlaceFactor(1.25);
    this->planeWidget->SetInput( this->texture_mapper->GetOutput() );
    this->planeWidget->NormalToZAxisOn();
    this->planeWidget->OutlineTranslationOff();
    this->planeWidget->PlaceWidget();
    this->planeWidget->GetSelectedPlaneProperty()->SetColor( 0.1, 0.1
,0.9 );
    this->planeWidget->GetPlaneProperty()->SetColor( 0.01, 0.01 ,0.95 );
    this->planeWidget->GetPlaneProperty()->SetOpacity(0.5);
    this->planeWidget->DrawPlaneOn();
    this->planeWidget->SetKeyPressActivationValue('p');
    this->planeWidget->On();

Now I would like to ensure that user can move with this plane ONLY in
one direction - no rotation should be allowed.
Is there some function or so to do this, please?

Thanks,
Radim

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers