[vtkusers] derfine a fixed point to the camera

32sthide 32sthide at gmail.com
Tue Aug 14 10:45:45 EDT 2012


hi,

when i use vtkCubeAxesActor2D to draw some axes the camera fixed point will
became my (0,0,0) and the cube will get really zoomed in.

How can I change it? when i disable the axes the cube became normal again.

here's my axes code.

 // Drawing some X,Y,Z axes
  vtkCubeAxesActor2D *axes= vtkCubeAxesActor2D::New();
    axes->SetViewProp(outlineActor);
    axes->SetCamera(ren->GetActiveCamera());
    axes->GetScaling();
    axes->GetFlyMode();
    axes->SetBounds(1.0,2.0,1.0,2.0,1.0,2.0);
    axes->SetCornerOffset(0.0);
    axes->UseRangesOn();
    axes->SetRanges(0.0,6.0,0.0,2.0,0.0,6.0);
    axes->SetLabelFormat("%6.4g");
    axes->SetNumberOfLabels(12);
    axes->SetFontFactor(1);
    ren->AddViewProp(axes);

thanks



--
View this message in context: http://vtk.1045678.n5.nabble.com/derfine-a-fixed-point-to-the-camera-tp5715243.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list