[vtkusers] vtkImplicitPlaneWidget
Radim Kolář
kolarr at feec.vutbr.cz
Mon Feb 6 05:42:21 EST 2006
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
More information about the vtkusers
mailing list