3D axes

J. Scott Pendergrass jsp at xontech.com
Fri Jun 11 16:28:16 EDT 1999


At 12:34 PM 6/11/99 -0500, you wrote:
>Hello,
>
>I am trying to display a 3D axes in VTK.  I have tried all of the classes I
>can find (vtkAxes, etc) to no luck.  I want an axes that is fixed on a give
>screen coordinate such that the axis rotates with the view but remains
>stationary when the view is panned or zoomed.  Any ideas?

Ben:

Here's a snippet from my application that constructs 3D axes like you want.

Scott

......... begin code snippet .............

  actorAxes = vtkActor::New();

  float scaleFactor = 2.0*maxDim;

  // create axes
  axes->SetOrigin(0,0,0);
  axes->SetScaleFactor(scaleFactor);
  polyMapAxes->SetInput(axes->GetOutput());
  actorAxes->SetMapper(polyMapAxes);
  actorAxes->PickableOff();

  ren1->AddActor(actorAxes);



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list