[vtkusers] Can't move vtkAxesActor with vtkInteractorStyleTrackballActor
David Doria
daviddoria+vtk at gmail.com
Sun Jan 10 15:59:07 EST 2010
If I use vtkInteractorStyleTrackballActor:
vtkSmartPointer<vtkInteractorStyleTrackballActor> style =
vtkSmartPointer<vtkInteractorStyleTrackballActor>::New(); //like paraview
renderWindowInteractor->SetInteractorStyle( style );
I can move/rotate a normal actor:
vtkSmartPointer<vtkConeSource> coneSource =
vtkSmartPointer<vtkConeSource>::New();
vtkSmartPointer<vtkPolyDataMapper> coneMapper =
vtkSmartPointer<vtkPolyDataMapper>::New();
coneMapper->SetInput(coneSource->GetOutput());
vtkSmartPointer<vtkActor> coneActor = vtkSmartPointer<vtkActor>::New();
coneActor->SetMapper(coneMapper);
renderer->AddActor(coneActor);
But I can't move/rotate an AxesActor:
vtkSmartPointer<vtkAxesActor> axes = vtkSmartPointer<vtkAxesActor>::New();
renderer->AddActor(axes);
Anyone know why this might be?
I tried setting:
axes->DragableOn();
but it appears 'true' is the default value, so that didn't change anything.
Thanks,
David
More information about the vtkusers
mailing list