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

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