Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtSkyDome Class Reference

#include <SkyDome.h>

Inheritance diagram for vtSkyDome:
vtTransform TransformExtension NodeExtension

Public Member Functions

void Create (const char *starfile, int depth, float radius, const char *sun_texture=NULL, const char *moon_texture=NULL)
 
void SetGeoLocation (const DPoint2 &geo)
 
void SetTime (const vtTime &time)
 
void SetDayColors (const RGBf &horizon, const RGBf &azimuth)
 
void SetSunsetColor (const RGBf &sunset)
 
void SetInterpCutoff (float cutoff)
 
void SetSunLight (vtTransform *light)
 
void SetSunLightSource (vtLightSource *ls)
 
bool SetTexture (const char *filename)
 
void SetStarAltitude (float fDegrees)
 
void RefreshCelestialObjects ()
 
void ShowMarkers (bool bShow)
 
bool MarkersShown ()
 

Protected Member Functions

void CreateMarkers ()
 
void UpdateSunLight ()
 
void ApplyDomeColors ()
 
void ConvertVertices ()
 

Protected Attributes

DPoint2 m_geo
 
vtTime m_time
 
float m_fSunAlt
 
float m_fSunAzi
 
float m_fStarAltitude
 
vtStarDomem_pStarDome
 
vtTransformm_pSunLight
 
vtLightSourcem_pSunLightSource
 
RGBf DayHorizonCol
 
RGBf DayAzimuthCol
 
RGBf SunsetCol
 
float Cutoff
 
int NumVertices
 
FPoint3SphVertices
 
vtTransformm_pCelestial
 
vtGeodem_pDomeGeom
 
vtMaterialArrayPtr m_pMats
 
vtMaterialm_pMat
 
vtMaterialm_pTextureMat
 
vtMeshm_pDomeMesh
 
vtMovGeodem_pSunGeom
 
vtMaterialm_pSunMat
 
ImagePtr m_pSunImage
 
bool m_bHasTexture
 
vtGeodem_pTicks
 
vtGeodem_pWireSphere
 
vtTransformm_pGreenMarker
 
vtTransformm_pRedMarker
 

Additional Inherited Members

- Public Attributes inherited from TransformExtension
osg::MatrixTransform * m_pTransform
 

Detailed Description

A SkyDome is a hemisphere which is colored according to the time of day: shades of blue, plus yellow-orange at dawn and dusk. The intended use is to make it large and far away from the camera, so that it is always behind all the terrain and objects in the world. It also contains an image of the Sun (as a texture billboard). The Sun is moved and sky is colored appropriately for the time of day (set with SetTime). It also supplies a real Light (vtLightSource) which approximates the actual color, direction and intensity of sunlight.

Member Function Documentation

void vtSkyDome::Create ( const char *  starfile,
int  depth,
float  radius,
const char *  sun_texture = NULL,
const char *  moon_texture = NULL 
)

Creates a complete SkyDome, which includes a StarDome.

void vtSkyDome::SetTime ( const vtTime time)

Sets the time of day (or night).

Parameters
timeTime in seconds since midnight.

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