[vtkusers] How to Scale vtkCubeAxesActor2D
sergio campos
camposs968 at gmail.com
Tue Dec 20 17:36:50 EST 2011
Hello
I scaled "Z" axes polydata through vtkActor
vtkSmartPointer<vtkTransform> transform =
vtkSmartPointer<vtkTransform>::New();
transform->Scale(1,1,30);
actor->SetUserMatrix(transform->GetMatrix())
but Now when i use vtkCubeAxesActor2D :
vtkSmartPointer<vtkCubeAxesActor2D>axes=
vtkSmartPointer<vtkCubeAxesActor2D>::New();
axes->SetViewProp(outlineActor);
axes->SetCamera(ren->GetActiveCamera());
axes->SetLabelFormat("%6.4g");
axes->SetNumberOfLabels(5);
axes->SetFlyModeToOuterEdges();
axes->SetFontFactor(0.8);
axes->SetAxisTitleTextProperty(tprop);
axes->SetAxisLabelTextProperty(tprop);
the scale of the label axes do not match with the data. any suggestions?
regards
ruben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111220/c834b9c6/attachment.htm>
More information about the vtkusers
mailing list