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

Home » Public Forums » archive » Re: simple question about axis
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
Re: simple question about axis [message #39519] Tue, 25 May 2004 20:58
aardvark62 is currently offline  aardvark62
Messages: 6
Registered: November 2002
Junior Member
Hello, Elias.

Use IDLgrPolyline, IDLgrAxis, and XOBJVIEW. You will be able to spin
the result with your mouse.

-Paul Sorenson
www.paulsorenson.com

heoa@hotmail.com (elias) wrote in message news:<e920fce6.0405251404.6913d4d9@posting.google.com>...
> hello!
> I have a simple question...though I have not been able to solve and it
> is getting on my nerves...
>
> 1. I drew my 3-D space as follows: It is a cube! Apparently I
> succeded.
> PLOTS, [0,50], [0,0], [0,0], /T3D
> PLOTS, [0,0], [0,50], [0,0], /T3D
> PLOTS, [0,0], [0,0], [0,196], /T3D
> PLOTS, [0,50], [0,0], [196,196], /T3D
> PLOTS, [0,50], [50,50], [196,196], /T3D
> PLOTS, [0,0], [50,50], [196,0], /T3D
> PLOTS, [50,50], [50,0], [0,0], /T3D
> PLOTS, [50,0], [50,50], [0,0], /T3D
> PLOTS, [50,50], [50,50], [0,196], /T3D
> PLOTS, [50,50], [0,0], [196,0], /T3D
> PLOTS, [50,50], [50,0], [196,196], /T3D
> PLOTS, [50,50], [50,0], [196,196], /T3D
> PLOTS, [0,0], [0,50], [196,196], /T3D
>
> 2. I want to insert my 3-D axis with the z-direction down....I am
> using:
> xaxis = OBJ_NEW('IDLgrAxis', 0, RANGE=[0, 49.0], TICKDIR=1)
> yaxis = OBJ_NEW('IDLgrAxis', 1, RANGE=[0, 49.0], TICKDIR=1)
> zaxis = OBJ_NEW('IDLgrAxis', 2, RANGE=[0, 195.0], TICKDIR=1)
> But I don't see it at all!!! why? is it because I am calling SCALE 3
> afterwards??
>
> Scale3, xr=[0,49],yr=[0,49],zr=[0,195],AX=20, AZ=35
>
> 3. I want to freely rotate everything that I have in the ouput image
> window at the sametime with the mouse, in stead of specifying that in
> SCALE3. Is that possible?
>
>
> Thank you!!
> Elias
Re: simple question about axis [message #39525 is a reply to message #39519] Tue, 25 May 2004 15:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
elias writes:

> I have a simple question...though I have not been able to solve and it
> is getting on my nerves...
>
> 1. I drew my 3-D space as follows: It is a cube! Apparently I
> succeded.
> PLOTS, [0,50], [0,0], [0,0], /T3D
> PLOTS, [0,0], [0,50], [0,0], /T3D
> PLOTS, [0,0], [0,0], [0,196], /T3D
> PLOTS, [0,50], [0,0], [196,196], /T3D
> PLOTS, [0,50], [50,50], [196,196], /T3D
> PLOTS, [0,0], [50,50], [196,0], /T3D
> PLOTS, [50,50], [50,0], [0,0], /T3D
> PLOTS, [50,0], [50,50], [0,0], /T3D
> PLOTS, [50,50], [50,50], [0,196], /T3D
> PLOTS, [50,50], [0,0], [196,0], /T3D
> PLOTS, [50,50], [50,0], [196,196], /T3D
> PLOTS, [50,50], [50,0], [196,196], /T3D
> PLOTS, [0,0], [0,50], [196,196], /T3D
>
> 2. I want to insert my 3-D axis with the z-direction down....I am
> using:
> xaxis = OBJ_NEW('IDLgrAxis', 0, RANGE=[0, 49.0], TICKDIR=1)
> yaxis = OBJ_NEW('IDLgrAxis', 1, RANGE=[0, 49.0], TICKDIR=1)
> zaxis = OBJ_NEW('IDLgrAxis', 2, RANGE=[0, 195.0], TICKDIR=1)
> But I don't see it at all!!! why? is it because I am calling SCALE 3
> afterwards??
>
> Scale3, xr=[0,49],yr=[0,49],zr=[0,195],AX=20, AZ=35
>
> 3. I want to freely rotate everything that I have in the ouput image
> window at the sametime with the mouse, in stead of specifying that in
> SCALE3. Is that possible?

Oh, oh. :-(

You are trying to combine direct graphics and object
graphics which--despite your best efforts--is just
not ever going to work. It just plain can't be done.

Try using the AXIS command instead of creating
an axis object and see if that doesn't get you
further ahead.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using ASSOC function
Next Topic: Depth visibility with Object Graphics !!!

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

Current Time: Fri Oct 10 04:58:23 PDT 2025

Total time taken to generate the page: 1.11387 seconds