![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Dec 2007
Location: Paraná, Entre Ríos, Argentina
Posts: 68
![]() |
I would like applying a FlyToOrbitViewStateIterator whitout to camera going up first if the zoom level is lower and without the camera going down first if the zoomlevel is higher. I want to avoid that "jumping" effect.
We have this method in Class FlyToOrbitViewStateIterator: public static FlyToOrbitViewStateIterator createPanToIterator(OrbitView orbitView, Globe globe, LatLon lookAtLatLon, Angle heading, Angle pitch, double zoom) Right? Is there a way to get the zoom value of the current view? I could use ScheduledOrbitViewStateIterator.createLa tLonIterator if the current value is the same to avoid the camera going up and down. That would only work if zoom is the same, but is better than nothing at all... |
|
|
|
|
|
#2 |
|
Member
Join Date: Dec 2007
Location: Paraná, Entre Ríos, Argentina
Posts: 68
![]() |
I reply myself
(OrbitView)wwd.getView()).getZoom() Anyway, looks that the jumping behaviour only takes place when the current zoom is the same as the zoom i pass to createPanToIterator. My idea is: if zoom is the same use FlyToOrbitViewStateIterator.createPanToI terator else use ScheduledOrbitViewStateIterator.createLa tLonIterator Thing is, zoom is never the same, it never gets the value specified in last FlyToOrbitViewStateIterator.createPanToI terator. Allways a bit more or less. Also... is there a way to speed up the iteration? |
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
![]() |
You should be able to set the altitude rather than the zoom.
|
|
|
|
![]() |
| 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 |
| Jumping Camera | mchristyuk | Development Help | 1 | 07-25-2007 04:32 PM |
| Jumping mouse cursor | Unregistered | Technical Support | 7 | 04-13-2007 07:11 PM |
| Placename jumping around | JunkSiu | Bug Reports | 1 | 03-26-2007 10:33 PM |