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

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

sky silverlining vereinfacht.

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