![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2007
Posts: 218
![]() |
Hi all,
I was trying to figure out what the issues are that causes that method to not be implemented and discovered that a very simple implementation seems to basically work the way I expect it to, so I wondered what the hidden complications were that I was missing. ![]() I know I'm not normalizing or preventing collisions with the globe or clipping plane, but works as a workaround for now. ![]() public void setAltitude(double newAltitude) { this.altitude = newAltitude; this.eyeDist = altitude; } |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
You can probably just use the setZoom() of the BasicOrbitView to the same effect.
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2007
Posts: 218
![]() |
Actually, no.
setZoom sets eyeDist but not altitude, so depending on when I try to set the initial zoom of my display it gets reinitialized back to the default altitude which is way out in space. ![]() To be a little more clear, I create my WorldWindow in a tab that isn't visible until clicked on. The View doesn't end up getting initialized until the first time it's painted and BasicOrbitView.initializeAttributes will set eyeDist to whatever getInitialAltitude returns. setZoom would probably work fine if the WorldWindow was visible when it is created because the timing would work right. As is, I'd have to do a FocusListener or something to reset the zoom once the window become visible. I think setAltitude makes more sense though. --Aaron Last edited by remleduff; 07-10-2007 at 05:04 PM. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Release 0.2.1 Issues | jdorny | Development Help | 14 | 07-11-2007 09:19 AM |
| Movie Recorder issues | PirateVert | Add-ons & Scripts | 1 | 04-19-2007 03:21 AM |
| Place finder does not work properly due to localization issues | Submarine | Bug Reports | 2 | 01-05-2007 06:25 PM |
| audio issues with WW | henri2 | Technical Support | 3 | 09-11-2006 06:42 PM |
| Connection issues - please help! | Unregistered | Technical Support | 1 | 08-10-2006 02:57 PM |