comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » TrackBall Object.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TrackBall Object. [message #16233] Tue, 13 July 1999 00:00 Go to next message
DBorland is currently offline  DBorland
Messages: 10
Registered: March 1999
Junior Member
Greetings,
Does the trackball object always rotate around the natural origin, or will
it rotate around a user defined origin?
What I am doing is I have the viewplane rectangle centered around the
polygon, and the trackball set to [xdim/2.,ydim/2.],xdim/2.. So that it
should be the entire view plane. The problem is that the polygon is
rotating around something other than the center of the viewplane rectangle.
Any hints on how to make this behave?

David Borland
Re: TrackBall Object. [message #16315 is a reply to message #16233] Wed, 14 July 1999 00:00 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
DBorland, dborland@egi.com writes:

> Any hints on how to make this behave?

I use the idlexrotator object in the examples/objects directory of
the 5.2 distribution. It won't do scaling or translation, but that's
easily achieved by changing the viewplane rectangle. The idlexrotator
is much better behaved and object-like than the trackball object.

If you take the model you want to plot, and encase it in yet
another model whch is reserved for plotting transformations you can
then swap between rotating in the window's and the object's coordinate
system by changing which of the two models is added to the
idlexrotator object.


Struan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Creating a Runtime App using Object Graphics
Next Topic: oplot in normal coordinates?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:21:59 PDT 2025

Total time taken to generate the page: 0.00554 seconds