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

#include <SkyDome.h>

Inheritance diagram for vtStarDome:
vtGroup NodeExtension

Classes

struct  Star
 

Public Member Functions

void Create (const char *starfile, float brightness, const char *moon_texture=NULL)
 
void SetTime (const vtTime &time)
 
void SetStarFile (char *starpath)
 

Additional Inherited Members

- Public Attributes inherited from NodeExtension
osg::Node * m_pNode
 
bool m_bCastShadow
 

Detailed Description

A StarDome is a sphere of stars, based on real star data, implemented as Points. 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 Moon (as a texture billboard). The Moon and Stars are moved appropriately for the time (set with SetTime).

Member Function Documentation

void vtStarDome::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: