VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
makVrf::DtVrfSilverliningGroup Class Reference
Inheritance diagram for makVrf::DtVrfSilverliningGroup:
Inheritance graph
[legend]

Public Member Functions

 DtVrfSilverliningGroup (makVrv::DtDe &)
 CTOR.
virtual ~DtVrfSilverliningGroup ()
virtual void setDateAndTime (unsigned short year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minutes, double seconds, bool observeDaylightSavings)
 Setup the date and time of silver lining.
- Public Member Functions inherited from makVrv::DtSilverliningGroup
 DtSilverliningGroup (DtDe &de)
 CTOR.
virtual ~DtSilverliningGroup ()
 DTOR.
void setGenerateCubeMaps (bool enabled)
 Enable auto-generation of cube maps from the sky.
void setCubeMapGenerationDistanceThreshold (double threshold)
 Set the distance threshold for re-generating cube maps.
unsigned int getCubeMap (const osg::ref_ptr< osg::Camera > camera) const
 Retrieve a texture ID for a cube map containing the local sky for a given camera.
unsigned int getPrimaryCubeMap () const
 Retrieve a texture ID for a cube map containing the local sky for general use.
void installIntoChannel (DtChannel *)
void applyFog (osg::ref_ptr< osg::Camera > camera)
 Apply fog for a given camera.
void deleteGeods ()
 Tell the silver-lining group to delete its specific children.
void setGeocentricMode (bool mode)
 Set the group to be in geocentric mode.
bool geocentricMode () const
 Get the simulation are in geocentric mode.
void setHiResCumulus (bool enabled)
 Sets use of high-resolution (lower performance) cumulus clouds.
bool hiResCumulus () const
 Gets use of high-resolution cumulus clouds.
void setLensFlare (bool enabled)
 Set use of lens flare effects.
bool lensFlare () const
 Get the use of lens flare effects.
void setCrepuscularRays (bool enabled)
 Set use of crepuscular rays (sun rays) effects.
bool crepuscularRays () const
 Get the use of crepuscular rays (sun rays) effects.
void setForcedMoonPhase (float phase)
 Forces the moon phase regardless of simulated date. 0 = new moon, 1.0 = full moon.
void clearForcedMoonPhase ()
 Clears a forced moon phase and goes back to simulating it based on the date.
bool moonPhaseIsForced () const
 Retrieves whether a forced moon phase is being used.
float forcedMoonPhase () const
 Retrieves the forced moon phase (if any)
void setForcedSunAndMoon (double sunLat, double sunLon, double moonLat, double moonLon, bool horizonCoords=true)
 Force latitude and longitude of the sun & moon to specified positions, using horizon (default) or ecliptic coordinates Note latitudes and longitudes are in radians.
void clearForcedSunAndMoon ()
bool sunAndMoonPositionIsForced () const
 Retrieves whether a forced sun and moon is being used.
void getForcedSunAndMoonPosition (double &sunLat, double &sunLon, double &moonLat, double &moonLon, bool &horizonCoords) const
 Retrieves the forced sun an moon position (if any)
*void setLightPollution (double Wm2)
 Sets the simulated amount of nighttime light pollution, in watts per square meter.
double lightPollution () const
 Gets the simulated light pollution in watts per square meter.
virtual void updateTime ()
 Update the time in the atmosphere.
virtual void setLocation (const DtVector &location)
 Set the location using a local coordinate (it will be converted to the global coordinate using the current coordinate system).
virtual void update (const osg::Matrix &m)
 Update the lighting.
virtual void update2D (const osg::Matrix &m)
 Update the lighting in 2D mode.
virtual void updateConditions (DtOsgSkyObject *skyObject)
 Update all conditions from a DtOsgSkyObject.
int cloudLayerCount () const
 Get the number of cloud layers.
void removeCloudLayer (int index)
 Remove a cloud layer.
void setFogColor (const osg::Vec4f &rgbA)
 Set the fog color (which will be lit based on time of day) when visibility gets below the fog threshold distance.
void setFogHeight (float height)
 Sets the simulated height of the fog on the skybox only.
void setFogBlend (const osg::Vec4f &rgbA, float density)
 Set parameters to blend with the fog specified in setFogColor.
void setFogOverride (osg::ref_ptr< osg::Camera > camera, const osg::Vec4f &rgbA, float density)
 Override all fog computations to the given fog color & density.
void setFogThresholdDistance (float distance)
 Sets the visibility distance at which fog effects kick in instead of haze.
void setHorizonColor (const osg::Vec4f &rgbA)
 Set the color of the sky at and below the horizon.
void setCubeMapDirty ()
 Set the cube map dirty flag.
void setUse16BitEnviroMap (bool flag)
 Set the silverlining atmosphere to use a 16 bit environment map.
bool getUse16BitEnviroMap ()
 Get whether or not the atmosphere should use a 16 bit environment map.
void setUsingSensorFXShader (bool flag)
 Set the flag that silverlining is using the sensorFX shaders.
bool getUsingSensorFXShader ()
 Get the flag that silverlining is using the sensorFX shaders.
void clearHorizonColor ()
 Clear usage of a set horizon color.
void clearFogOverride (osg::ref_ptr< osg::Camera > camera)
 Undo any override for fog previously set.
void clearFogOverrideForAllCameras (void)
virtual void setUseGlobalTimeZone (bool b)
 If set to true at next update use UTC time to position sun/moon, else use local timezone based on the position of the observer.
virtual bool useGlobalTimeZone () const
 Get the current value of using GMT time for observer.
float getSunAlpha () const
 Gets the alpha value of the sun disc (affected by fog)
void addCirroCumulus (const DtVector &position, const DtVector &bounds, bool infinite, bool relative)
 Add cirrus clouds too the scene.
void addCirrusFibratus (const DtVector &position, const DtVector &bounds, bool infinite, bool relative)
void addNimbostratus (const DtVector &position, const DtVector &bounds, double density, bool infinite, bool relative)
void addCumulusMediocris (const DtVector &position, const DtVector &bounds, double density, bool infinite, bool relative)
void addCumulusCongestus (const DtVector &position, const DtVector &bounds, double density, bool infinite, bool relative)
void addCumulonumbusCappilatus (const DtVector &position, const DtVector &bounds, double density, bool relative)
void addStratocumulus (const DtVector &position, const DtVector &bounds, double density, bool infinite, bool relative)
void setCloudLayerEnabled (int index, bool enabled)
void setCloudLayerPosition (int index, double xCoord, double yCoord)
void setWind (double directionDEN, double minAltitude, double maxAltitude, double velocity)
void setAirTurbidity (float turbidity)
void setVisibleDistance (float distance)
float getVisibleDistance () const
void createAtmosphere ()
void destroyAtmosphere ()
void addRain (float mmPerHour, bool global)
void addSleet (float mmPerHour, bool global)
void addSnow (float mmPerHour, bool global, bool wet)
void clearAllPrecipitation ()
void realizeLayers ()
SilverLining::Atmosphere * findAtmosphere ()
DtDegetDtDe ()
void getGMTDateTime (long &julianDate, double &GMTTod)
osg::Node * getCloudsNode ()
osg::Node * getSkyNode ()
std::vector< unsigned intgetDefaultShaderVector ()
void setSunMoonEnabled (bool drawSunMoon)
bool getSunMoonEnabled ()
void setStarsEnabled (bool drawStars)
bool getStarsEnabled ()
void enableLighting (osg::ref_ptr< osg::Camera > camera, bool enable)

Additional Inherited Members

- Protected Types inherited from makVrv::DtSilverliningGroup
typedef std::vector< CloudLayerCloudLayerList
typedef std::map< osg::ref_ptr
< osg::Camera >, bool
FogOverrideMap
- Protected Member Functions inherited from makVrv::DtSilverliningGroup
void addLayer (const CloudLayer &layer)
 Add layer.
void realizeLayer (CloudLayer &layer)
 Realize Layer.
void destroyLayer (DtSilverliningGroup::CloudLayer &layer)
int CalculateZoneByLongitude (double longitude)
void SetTimeAndLocation ()
void addPrecipitationToClouds (int type, float mmPerHour)
void updatePrecipitation ()
void setCloudVisibility ()
virtual void traverse (osg::NodeVisitor &nv)
 Traverse.
void resetLayers ()
void forceResetLayers ()
void generateCubeMap (const osg::Matrix &viewMatrix)
- Protected Attributes inherited from makVrv::DtSilverliningGroup
DtDemyDe
OpenThreads::Mutex myMutex
DtReferenceEllipsoid myRefEllip
DtGeodeticCoord myGeod
SilverLining::Atmosphere * myAtmosphere
 my atmosphere.
SilverLining::LocalTime * myLocalTime
SilverLining::Location * myLocation
CloudLayerList myLayers
CloudLayerList myDestroyedLayers
osg::ref_ptr< osg::Geode > mySkyGeod
osg::ref_ptr< osg::LightSource > mySkyLight
osg::ref_ptr< osg::Geode > myCloudGeod
osg::ref_ptr< DtLightManagerGroupmyLightManagerGroup
osg::Vec4f myFogColor
osg::Vec4f myBlendedFogColor
osg::Vec4f myHorizonColor
bool myHasFixedHorizonColor
float myFogDensity
float myVisibility
float myTurbidity
bool myGeocFlag
bool myNeedsResetFlag
bool myCubeMapDirty
bool myCubeMapEnabled
bool myLensFlareEnabled
bool myCrepuscularRaysEnabled
bool myMoonPhaseForced
float myForcedMoonPhase
bool mySunAndMoonPositionForced
float myForcedSunLat
float myForcedSunLon
float myForcedMoonLat
float myForcedMoonLon
bool myForcedSunAndMoonUsingHorizonCoords
bool myHiResCumulus
bool myUse16BitEnviroMap
bool myUsingSensorFXShader
FogOverrideMap myOverrideFogMap
std::map< osg::ref_ptr
< osg::Camera >, float > 
myFogOverrideDensityMap
std::map< osg::ref_ptr
< osg::Camera >, osg::Vec4f > 
myFogOverrideColorMap
float myFogHeight
float myFogThresholdDistance
float mySunAlpha
bool myCurveCloudsTowardGround
bool myPrecipitationStateSaved
int mySavedPrecipitationType
float mySavedPrecipitationIntensity
bool myForceRelight
osg::ref_ptr< DtOsgFogComponentmyFogComponent
bool myFogInstalled
std::vector< unsigned intmyDefaultShaderVector
bool myDrawStars
bool myDrawSunMoon
DtSignalConnectionManager myConnections
bool myUseGlobalTimeZone

Constructor & Destructor Documentation

makVrf::DtVrfSilverliningGroup::DtVrfSilverliningGroup ( makVrv::DtDe )

CTOR.

virtual makVrf::DtVrfSilverliningGroup::~DtVrfSilverliningGroup ( )
virtual

Member Function Documentation

virtual void makVrf::DtVrfSilverliningGroup::setDateAndTime ( unsigned short  year,
unsigned char  month,
unsigned char  day,
unsigned char  hour,
unsigned char  minutes,
double  seconds,
bool  observeDaylightSavings 
)
virtual

Setup the date and time of silver lining.

If not using day/night illumination model, always show as noon

Reimplemented from makVrv::DtSilverliningGroup.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)