[vtkusers] vtkCubeAxesActor2D scaling

Jessica Weiner suspended at gmail.com
Sat Feb 25 14:25:40 EST 2006


I want to scale a cube with height, width and length ranging from 0 to 100.
I am using vtkCubeAxesActor2D to do this and it always scales the cube from
some negative number to some positive number (-0.5 to +0.5). How can I set
the scale so that the range is positive (0 to 100). Here a snippet of code I
am using right now:


vtkCubeAxesActor2D *axes = vtkCubeAxesActor2D::New();
axes->SetPropA(cubeActor); // Input((vtkDataSet
*)cubeElevation->GetOutput());
axes->SetCamera(ren->GetActiveCamera());
axes->ScalingOff();
axes->SetLabelFormat("%6.4g");
axes->SetFontFactor(0.8);


Thanks.
Jess




More information about the vtkusers mailing list