Skip to main content

How I can scale a 3D graph when the windows height changes?

No replies
marcelnagm
Offline
Joined: 2010-06-02
Points: 0

I did something like that ,
but i think if you add a listener on the window (Wich i dont remeber now ;]
) and
conect that to the transformGroup from the shape that will work.

I hope that helped you
(My english is not good as i want)

2010/10/22

> Thanks for you response:
>
> I prove it using a specific ViewingPlatform when I create the
> SimpleUniverse:
>
> SimpleUniverse simpleU = new SimpleUniverse(new MyViewingPlatform(), new
> Viewer(new OffScreenCanvas3D(config)));,
>
> Where MyViewPlataform() has the reimplmented method:
> public double getViewPlatformDistance(BranchGroup scene, Component canvas,
> View view),
>
> Bit it doesn´t work, i don´t know if I must do something more.
>
> Thanks, best regards.
> [Message sent by forum member 'miguelmu123']
>
> http://forums.java.net/jive/thread.jspa?messageID=485972
>