World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-10-2007, 04:11 PM   #1
remleduff
Senior Member
 
Join Date: Jun 2007
Posts: 218
remleduff is on a distinguished road
Default View.setAltitude issues?

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;
}
remleduff is offline   Reply With Quote
Old 07-10-2007, 04:48 PM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

You can probably just use the setZoom() of the BasicOrbitView to the same effect.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 07-10-2007, 04:55 PM   #3
remleduff
Senior Member
 
Join Date: Jun 2007
Posts: 218
remleduff is on a distinguished road
Default

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.
remleduff is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.