[vtkusers] derfine a fixed point to the camera

32sthide 32sthide at gmail.com
Tue Aug 14 12:21:47 EDT 2012


thank u. here's the code in case someone comes across the same problem. 

// Drawing some X,Y,Z axes 
vtkCubeAxesActor2D *axes= vtkCubeAxesActor2D::New();
    axes->SetViewProp(outlineActor);
    axes->SetCamera(ren->GetActiveCamera());
    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);
    ren->AddViewProp(axes);
*    ren->ResetCamera();*



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



More information about the vtkusers mailing list