source: osgVisual/include/sky_Silverlining/visual_skySilverLining.h @ 90

Last change on this file since 90 was 88, checked in by Torben Dannhauer, 14 years ago

Moved memory leak detection from source file to headerfile. Its still in the class but at least not in the source file.

The leak detection works, but the false positives are not stopped.
Use Linux/Valgrind? to make your final leak detection beyond the easy first approach in MSVC

File size: 23.1 KB
Line 
1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer
3 *
4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
10 * You have to aquire licenses for all used proprietary modules.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * OpenSceneGraph Public License for more details.
16 *
17 * This file is based on the OSG example of the Silverlining SDK:
18 * Copyright (c) 2008 Sundog Software, LLC. All rights reserved worldwide.
19*/
20
21#include <osg/NodeCallback>
22#include <osg/Geode>
23
24#include <SilverLining.h>
25#include <MillisecondTimer.h>
26#include <windows.h>
27#include <skySilverLining_skyDrawable.h>
28#include <skySilverLining_cloudsDrawable.h>
29#include <skySilverLining_AtmosphereReference.h>
30#include <skySilverLining_ProjectionMatrixCallback.h>
31#include <skySilverLining_cloudLayerSlot.h>
32
33#include <visual_util.h>
34
35namespace osgVisual
36{
37
38#define MAX_CLOUDLAYER_SLOTS 5
39/**
40 * \brief This class is the container class for the sky, stars and clouds
41 *
42 * This class is the container class for the sky, stars and clouds. It is responsible for initialization and updating of the sky system.
43 * It is realized as Geode that it is possible to install an updateCallback on this class.
44 * This way, the sky position is always updated during update traversal of the scene graph.
45 *
46 * The NodeCallback class is nested into this class that no external user can use this callback.
47 *
48 * @todo Add Cloudlayer->set/getalpha() function
49 * @todo Terrain shadows do not exist
50 * @todo Calibrate visual range with test objects. Populate a Lookuptable to use for true visibility ranges.
51 * @todo Implement an abstract sky interface class to allow other sky implementations than silverlining with identical interfaces
52 *
53 * @author Torben Dannhauer
54 * @date  Jul 2009
55 */ 
56class visual_skySilverLining : public osg::Geode
57{
58        #include <leakDetection.h>
59public:
60        /**
61         * \brief Constructor.
62         *
63         * @param viewer_ : Pointer to the applications viewer
64         */ 
65        visual_skySilverLining(osgViewer::Viewer* viewer_);
66
67        /**
68         * \brief Destrcutor: The updateCallback is removed and the atmosphere, if instantiated.
69         *
70         */ 
71        virtual ~visual_skySilverLining(void);
72
73        /**
74         * \brief Returns a Pointer to the atmosphere object.
75         *
76         * @return Pointer to the atmosphere object.
77         */ 
78        SilverLining::Atmosphere* getAtmosphere() {return atmosphere;};
79
80        /**
81         * \brief Checks if the sky system is initialized.
82         *
83         * Checks if the sky system is initialized. If not, it makes a deep lookup at the main cameras userdata, if atmosphere is initialized.
84         * If this returns true, the local variable is updated with ne new initialize status. If this deep lookup returns false, this method returns also false
85         * asks the cameras user data if initialzed. If that is
86         *
87         * @return : Returns the status of initialization.
88         */ 
89        bool isInitialized();
90       
91        /**
92         * \brief This function initializes the sky framework if its used with a PRE_RENDER camera like the distortion module.
93         *
94         * @param distortedRoot : osg::Group* which is the rootNode over distortion and scene
95         * @param sceneGraphRoot : osg::Group* which is the rootNode and coordinateSystemNode of the scene.
96         */ 
97        void init(osg::Group *distortedRoot, osg::CoordinateSystemNode *sceneGraphRoot);
98
99        /**
100         * \brief This function can be called by the updateCallback. If the postInitialization for adding clouds etc. has be called already, this function will skip.
101         *
102         * If this function is called before sky is initalized, all actions are skipped.
103         * A standart usage is adding objects like clouds and winds, configuring time, location and visibility.
104         *
105         */ 
106        void postInit();
107
108        /**
109         * \brief This function shuts the sky framework down.
110         *
111         */ 
112        void shutdown();
113
114
115/** @name Time
116 *  The following functions control the simulated time and date.
117 */
118//@{
119        /**
120         * \brief Sets the new Date and Time to the sky system.
121         *
122         * Update is only performed if the sky systme is initialized.
123         *
124         * @param year_ : Year to set. SilverLining can only handle Gregorian calendar years, which means that years before 1582 will not be accurately simulated.
125         * @param month_ : Month to set. Ranging from 1 (Jan) to 12 (Dec)
126         * @param day_ : Day to set Ranging from 1 to 31
127         * @param hour_ : Hour to set. Ranging from 0 to 23
128         * @param minute_ : Minute to set. Ranging from 0 to 59.
129         * @param second_ : Second to set. Ranging from 0 to 59.
130         * @param daylightSaving_ : Configures, if the configured DateTime is in daylight savings or without daylight savings.
131         * @param timezoneOffset_ : Configures the timezone. Hour offset from GMT, ignoring daylight savings time.
132         */ 
133        void setDateTime( int year_, int month_, int day_, int hour_, int minute_, int second_, bool daylightSaving_, double timezoneOffset_ );
134
135        /**
136         * \brief Set time for the sky system.
137         *
138         * @param hour_ : Hour to set. Ranging from 0 to 23
139         * @param minute_ : Minute to set. Ranging from 0 to 59.
140         * @param second_ : Second to set. Ranging from 0 to 59.
141         */ 
142        void setTime( int hour_, int minute_, int second_ );
143
144        /**
145         * \brief Sets the date for the sky system.
146         *
147         * @param year_ : Year to set. SilverLining can only handle Gregorian calendar years, which means that years before 1582 will not be accurately simulated.
148         * @param month_ : Month to set. Ranging from 1 (Jan) to 12 (Dec)
149         * @param day_ : Day to set Ranging from 1 to 31
150         */ 
151        void setDate( int year_, int month_, int day_ );
152
153        /**
154         * \brief Configures the date and time by epoche (Seconds elapsed since midnight, January 1, 1970 UTC)
155         *
156         * This function ignores the daylight savings and timezone.
157         *
158         * @param secondsSince1970_ : Seconds elapsed since midnight, January 1, 1970 UTC
159         */ 
160        void setDateByEpoch(int secondsSince1970_ );
161
162//@}
163
164/** @name Location
165 *  The following functions control the location to simulate.
166 */
167//@{
168        /**
169         * \brief Configures the sky system to simulate a specific location.
170         *
171         * @param lat_ : Latitude in radians
172         * @param lon_ : Longitude in radians
173         * @param alt_ : Altimeter in meters above see level.
174         */ 
175        void setLocation(double lat_, double lon_, double alt_);
176//@}
177
178/** @name Visibility and Haze
179 *  The following functions control the atmosperic effects like visibility range and haze.
180 */
181//@{
182        /**
183         * \brief This functions sets the visibility range in meters to simulate.
184         *
185         * @param visibility_ : Visibility range in meters.
186         */ 
187        void setVisibility(double visibility_);
188
189        /**
190         * \brief This function returns the visibility range in meters which is simulated.
191         *
192         * @return : Visibility range in meters.
193         */ 
194        double getVisibility();
195
196        /**
197         * \brief This function sets the haze factor to simulate.
198         *
199         * 1 = Pure air, range 256 km
200         * 2 = very clear, range 50 km
201         * 3 = clear, range 15 km
202         * 7 = light haze, range 8 km
203         * 20 = haze, range 3 km
204         * 50 = thin fog, range 2 km
205         *
206         * @param turbidity_ : Haze factor to simulate.
207         */ 
208        void setTurbidity(double turbidity_);
209
210        /**
211         * \brief This function returns the simulated haze factor.
212         *
213         * @return : Haze factor.
214         */ 
215        double getTurbidity();
216//@}
217
218/** @name Light pollution
219 *  The following functions control the light pollution to simulate at night.
220 */
221//@{
222        /**
223         * \brief This functions sets the light pollution in Watt/m2
224         *
225         * @param lightPollution_ : Light pollution to set.
226         */ 
227        void setLightPollution(double lightPollution_);
228
229        /**
230         * \brief This function returns the simulated light pollution in Watt/m2.
231         *
232         * @return : Light pollution in Watt/m2
233         */ 
234        double getLightPollution();
235//@}
236
237/** @name Clouds
238 *  The following functions control the available slots for cloudLayer. In each slot a cloud layer can be adde and its perscpitation or
239 * baseAltitude updated. All other values are not updateable, therefore a delete and recreation of the cloud layer would be necessary.
240 */
241//@{
242        /**
243         * \brief This function adds a Cloudlayer to a sepcified SLOT. If the slot is used, this function returns immediately.
244         *
245         * If the slot number is out of range, nothing happens.
246         *
247         * Currently supported CloudTypes are:
248         *
249         * \li CloudTypes::CIRROCUMULUS - High planar cloud puffs.
250         * \li CloudTypes::CIRRUS_FIBRATUS - High, wispy cirrus clouds.
251     * \li CloudTypes::NIMBOSTRATUS - Low stratus decks.
252     * \li CloudTypes::CUMULONIMBUS_CAPPILATUS - A large thunderhead with lightning and rain.
253     * \li CloudTypes::CUMULUS_MEDIOCRIS - Small, puffy clouds.
254     * \li CloudTypes::CUMULUS_CONGESTUS - Larger cumulus clouds with flattened bottoms.
255     * \li CloudTypes::CUMULUS_MEDIOCRIS_INFINITE - A cumulus mediocris layer where the clouds wrap around
256     *  the camera location at all times, to create the illusion of an infinitely large cloud layer.
257     * \li CloudTypes::CUMULUS_CONGESTUS_INFINITE - A cumulus congestus layer where the clouds wrap around
258     *  the camera location at all times, to create the illusion of an infinitely large cloud layer.
259         *
260         * @param slot_ : Slot to use.
261         * @param baseLength_ : Baselength in meter of the cloud layer to generate.
262         * @param baseWidth_ : Basewideth in meter of the cloud layer to generate.
263         * @param thickness_ : Thicknes of the could layer in meter.
264         * @param baseHeight_ : Height of the cloud base in WGS84.
265         * @param density_ : Coverage of the cloud layer in percent (0.0 - 1.0).
266         * @param cloudtype_ : Type of the cloudlayer to generate.
267         */ 
268        void addCloudLayer(int slot_, double baseLength_, double baseWidth_, double thickness_, double baseHeight_, double density_, CloudTypes cloudtype_ );
269
270        /**
271         * \brief This function remove the cloudlayer in the specified slot and marks the slot as free.
272         *
273         * If the slot number is out of range, nothing happens.
274         *
275         * @param slot_ : Slot number to clean
276         */ 
277        void removeCloudLayer( int slot_ );
278       
279        /**
280         * \brief This function removes the cloud layers from all slots
281         *
282         */ 
283        void clearAllSlots();
284
285        /**
286         * \brief This function returns a pointer to the cloudLayer this slot contains.
287         *
288         * If the slot number is out of range, nothing happens.
289         *
290         * @param slot_ : Slot to query for it's cloudLayer pointer.
291         * @return : Pointer to the contained cloud layer.
292         */ 
293        SilverLining::CloudLayer* getCloudLayer( int slot_ );
294       
295        /**
296         * \brief This function configure the cloud layer als enabled (show clouds) or disabled (hide clouds).
297         *
298         * If the slot number is out of range, nothing happens.
299         *
300         * @param slot_ : Cloudlayer to hide/show.
301         * @param enabled_ : Control where hide or show should be configured.
302         */ 
303        void setEnabled(int slot_, bool enabled_ );
304
305        /**
306         * \brief This function returns if the specified cloud layer is en- or disabled (hidden or shown).
307         *
308         * If the slot number is out of range, nothing happens.
309         *
310         * @param slot_ : Slot zu query.
311         * @return : true if clouds are visible, false if clouds are hidden.
312         */ 
313        bool isEnabled( int slot_ );
314
315        /**
316         * \brief This functions fade the clouds in or out, depending on the visibility tsatus before.
317         *
318         * If the slot number is out of range, nothing happens.
319         *
320         * @param slot_ : Slot to fade.
321         * @param fadetimeMS_ : Milliseconds to fade the cloud layer.
322         */ 
323        void fadeVisibility( int slot_, int fadetimeMS_);
324
325        /**
326         * \brief
327         *
328         * If the slot number is out of range, nothing happens.
329         *
330         * @param slot_
331         * @return : String with the literal name of the cloud layer type.
332         */ 
333        std::string getCloudLayerTypeName( int slot_ );
334
335//@}
336
337/** @name Wind
338 *  Description of wind. Attention: Wind volumes are not geocentric: If far enough away from upvector location, the earth will curve away under the wind volume.
339 */
340//@{
341        /**
342         * \brief This function adds a wind volume to the scene, with the specified characteristics.
343         *
344         * @param bottom_ : Height in WGS84 in metern of the wind volumes bottom.
345         * @param top_ : Height in WGS84 in metern of the wind volumes top.
346         * @param speed_ : Windspeed in the wind volume in meter per seconds.
347         * @param direction_ : Wind direction in the wind volume in degree (wind origin, not wind destination).
348         *
349         */ 
350        void addWindVolume(double bottom_, double top_, double speed_, int direction_);
351
352        /**
353         * \brief This function deletes all wind volumes.
354         *
355         */ 
356        void clearAllWindVolumes();
357
358        /**
359         * \brief This functions checks wether the specified altitude in MSL is inside a wind volume.
360         *
361         * If multiple wind volumes are nested, this function returns the first matching wind volume.
362         * Because geocentric wind is not implemented, the altitude information is always base on the location where the wind was added.
363         * To avoid multiple winds, don't use nested wind volumes.
364         *
365         * @param height_ : Height in meters in WGS84 to check for wind.
366         * @param bottom_ : If checking altitude is inside a volume, the bottom altitude of the volume in meters above MSL is written into, otherwise -1.
367         * @param top_ : If checking altitude is inside a volume, the top altitude of the volume in meters above MSL is written into, otherwise -1.
368         * @param speed_ : If checking altitude is inside a volume, the wind speed in the wind volume is written into, otherwise -1.
369         * @param direction_ : If checking altitude is inside a volume, the wind direction (0 deg = from north, 90 deg = from east) in the wind volume is written into, otherwise -1.
370         * @return : True if checking altitude is inside a wind volume, otherwise false.
371         */ 
372        bool insideWind(double height_, double& bottom_, double& top_, double& speed_, double& direction_);
373
374       
375//@}
376
377/** @name Precipitation
378 *  The following functions control the rate and type of precipitation. It is possible to configure it on an global or a per cloud basis.
379 */
380//@{
381        // Per SLOT
382        /**
383         * \brief This functions enables the specified precipitation rate and precipitation type at the specified cloudLayer slot.
384         *
385         * @param slot_ : CloudLayer slot to enable precipitation in.
386         * @param rate_mmPerHour_rain_ : Precipitation rate in mm/hour of rain.
387         * @param rate_mmPerHour_drySnow_ : Precipitation rate in mm/hour of dry snow.
388         * @param rate_mmPerHour_wetSnow_ : Precipitation rate in mm/hour of wet snow.
389         * @param rate_mmPerHour_sleet_ : Precipitation rate in mm/hour of sleet.
390         */ 
391        void setSlotPrecipitation( int slot_, double rate_mmPerHour_rain_, double rate_mmPerHour_drySnow_, double rate_mmPerHour_wetSnow_, double rate_mmPerHour_sleet_ );
392
393        /**
394         * \brief This function retrieves the precipitation of a cloudlayer slot.
395         *
396         * @param slot_ : Slot to check for precipitation.
397         * @param rate_mmPerHour_rain : Precipitation rate in mm/hour of rain.
398         * @param rate_mmPerHour_drySnow : Precipitation rate in mm/hour of dry snow.
399         * @param rate_mmPerHour_wetSnow : Precipitation rate in mm/hour of wet snow.
400         * @param rate_mmPerHour_sleet : Precipitation rate in mm/hour of sleet.
401         * @return : True if cloudLayer has precipitation.
402         */ 
403        bool getSlotPrecipitation( int slot_, double& rate_mmPerHour_rain, double& rate_mmPerHour_drySnow, double& rate_mmPerHour_wetSnow, double& rate_mmPerHour_sleet );
404       
405        /**
406         * \brief This function checks a specified location for precipitation at the specified cloudLayer slot.
407         *
408         * @param slot_ : CloudLayer slot to check for specification.
409         * @param rate_mmPerHour_rain : Precipitation rate in mm/hour of rain.
410         * @param rate_mmPerHour_drySnow : Precipitation rate in mm/hour of dry snow.
411         * @param rate_mmPerHour_wetSnow : Precipitation rate in mm/hour of wet snow.
412         * @param rate_mmPerHour_sleet : Precipitation rate in mm/hour of sleet.
413         * @param lat_ : Latitude to check for precipitation. If it defaults to -1, the internal sky latitude will be used.
414         * @param lon_ : Longitude to check for precipitation. If it defaults to -1, the internal sky longitude will be used.
415         * @param height_ : Height in WGS84 to check for precipitation. If it defaults to -1, the internal sky height will be used.
416         * @return : Returns true if precipitation at the specified location is true. 
417         */ 
418        bool getSlotPrecipitationAtLocation( int slot_, double& rate_mmPerHour_rain, double& rate_mmPerHour_drySnow, double& rate_mmPerHour_wetSnow, double& rate_mmPerHour_sleet, double lat_=-1, double lon_=-1, double height_=-1 );
419
420        /**
421         * \brief This function clears all types of precipitation of the specified slot.
422         *
423         * @param slot_ : Slot toe clear precipitation.
424         */ 
425        void clearAllPrecipitation( int slot_ );
426
427        // Global
428        /**
429         * \brief This function clears the global precipitation.
430         *
431         */ 
432        void clearGlobalPrecipitation();
433
434        /**
435         * \brief This function sets the cloud independent, global precipitation.
436         *
437         * @param rate_mmPerHour_rain_ : Precipitation rate in mm/hour of rain.
438         * @param rate_mmPerHour_drySnow_ : Precipitation rate in mm/hour of dry snow.
439         * @param rate_mmPerHour_wetSnow_ : Precipitation rate in mm/hour of wet snow.
440         * @param rate_mmPerHour_sleet_ : Precipitation rate in mm/hour of sleet.
441         */ 
442        void setGlobalPrecipitation( double rate_mmPerHour_rain_, double rate_mmPerHour_drySnow_, double rate_mmPerHour_wetSnow_, double rate_mmPerHour_sleet_ );
443       
444        // Misc
445        /**
446         * \brief This function returns the overall precipitation rate of all cloud dependent precipitation.
447         *
448         * This function adds the precipitation of all cloudLayer seperated for all types of precipitation.
449         * Global precipitation is ignored, because precipitation without clouds is artificial and only reasonable for visualiszation purposes.
450         *
451         * @param rate_mmPerHour_rain : Precipitation rate in mm/hour of rain.
452         * @param rate_mmPerHour_drySnow : Precipitation rate in mm/hour of dry snow.
453         * @param rate_mmPerHour_wetSnow : Precipitation rate in mm/hour of wet snow.
454         * @param rate_mmPerHour_sleet : Precipitation rate in mm/hour of sleet.
455         * @param lat_ : Latitude to check for precipitation. If it defaults to -1, the internal sky latitude will be used.
456         * @param lon_ : Longitude to check for precipitation. If it defaults to -1, the internal sky longitude will be used.
457         * @param height_ : Height in WGS84 to check for precipitation. If it defaults to -1, the internal sky height will be used.
458         * @return : True if precipitation lookup was successful.
459         */ 
460        bool getOverallPrecipitationAtLocation( double& rate_mmPerHour_rain, double& rate_mmPerHour_drySnow, double& rate_mmPerHour_wetSnow, double& rate_mmPerHour_sleet, double lat_=-1, double lon_=-1, double height_=-1 );
461//@}
462
463
464
465
466
467private:
468        /**
469         * \brief Nested Callback class
470         *
471         * @author Torben Dannhauer
472         * @date  Jul 2009
473         */ 
474        class skyUpdateCallback : public osg::NodeCallback
475        {
476        public:
477                /**
478                 * \brief Constructor
479                 *
480                 * @param csn_ : Pointer to the Coordinate System Node. Necessary to extract lat, lon and height of the camera position.
481                 * @param sceneCamera_ : Pointer to the scene camera (undistorted camera, type PRE_RENDER)
482                 * @param sky_ : Pointer to the sky system.
483                 */ 
484                skyUpdateCallback(osg::CoordinateSystemNode* csn_, osg::Camera* sceneCamera_, visual_skySilverLining* sky_)
485                        : csn(csn_), sceneCamera(sceneCamera_), sky(sky_) {};
486
487                /**
488                 * \brief This function is executed as callback during traversal. It updates the skys displayed location.
489                 *
490                 */ 
491                virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
492        private:
493                /**
494                 * Referenced pointer to the Coordinate System Node. Necessary to extract lat, lon and height of the camera position.
495                 */ 
496                osg::ref_ptr<osg::CoordinateSystemNode> csn;
497               
498                /**
499                 * Referenced pointer to the scene camera (undistorted camera, type PRE_RENDER)
500                 */ 
501                osg::ref_ptr<osg::Camera> sceneCamera;
502
503                /**
504                 * Referenced pointer to the sky system.
505                 */ 
506                osg::ref_ptr<visual_skySilverLining> sky;
507        };      // Nested class END
508
509        /**
510         * \brief This function updates the atmosphere's upVector,
511         * if delta_lat or delta_lon (from the existing location
512         * and the location of the last upVector update) is larger than N degree.
513         * If an update is requiered, the existing location is noted as the last update location.
514         *
515         * Iis called by this->setLocation.
516         *
517         */ 
518        void updateUpVector();
519
520        /**
521         * Pointer to the atmosphere object of Silverlining.
522         */ 
523        SilverLining::Atmosphere *atmosphere;
524
525        /**
526         * Referenced Pointer to the viewer
527         */ 
528        osg::ref_ptr<osgViewer::Viewer> viewer;
529
530        /**
531         * Referenced Pointer to the camera which pre renders the scene
532         */ 
533        osg::ref_ptr<osg::Camera> sceneCamera;
534 
535        /**
536         * Referenced Pointer to the coordinate system node. Required for WGS84 transformations.
537         */ 
538        osg::ref_ptr<osg::CoordinateSystemNode> sceneRoot;
539
540        /**
541         * Referenced Pointer to the updatecallback, which is installed at this node.
542         */ 
543        osg::ref_ptr<skyUpdateCallback> updateCallback;
544
545        /**
546         * Referenced Pointer to the ProjectionMatrix callback.
547         */ 
548        osg::ref_ptr<skySilverLining_projectionMatrixCallback> cb;
549
550        /**
551         * Referenced Pointer to the sky Drawable, which renders the skybox.
552         */ 
553        osg::ref_ptr<skySilverLining_skyDrawable> skyDrawable;
554
555        /**
556         * Referenced Pointer to the cloudsDrawable, which renders the clouds.
557         */ 
558        osg::ref_ptr<skySilverLining_cloudsDrawable> cloudsDrawable;
559
560        /**
561         * Flag which contains if the sky system is initialized. This status is only a local
562         * copy if the cameras userdata which contain the primary information if the sky system is initialized
563         */ 
564        bool atmosphereInitialized;
565
566        /**
567         * This variable indicates whether postinit() was called already.
568         */ 
569        bool postInitialized;
570
571        /**
572         * This vector contains all available slots for cloud layer.
573         */ 
574        std::vector<cloudLayerSlot> cloudLayerSlots;
575
576                /**
577         * Latitude, which mirrors the latitude of the last sky update. This is neccesary if any weather effect is added to calculate the earth radius on that location for appropriate level above MSL
578         */ 
579        double lat;
580
581        /**
582         * Longitude, which mirrors the latitude of the last sky update. This is neccesary if any weather effect is added to calculate the earth radius on that location for appropriate level above MSL
583         */ 
584        double lon;
585
586        /**
587         * Height, which mirrors the height of the last sky update.
588         */ 
589        double height;
590
591        /**
592         * This variable contains the latitude of the last upVector update.
593         */ 
594        double upVectorLat;
595
596        /**
597         * This variable contains the longitude of the last upVector update.
598         */ 
599        double upVectorLon;
600
601};
602
603using namespace SilverLining;
604
605//class MyMillisecondTimer : public SilverLining::MillisecondTimer
606//{
607//public:
608//      virtual unsigned long GetMilliseconds() const
609//        {
610//                      return timeGetTime() * 50;
611//        }
612//};
613
614
615} // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.