#include <stage.h>
Public Member Functions | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal value dump. | |
Constructors and Destructors | |
Stage () throw () | |
Default Constructor. | |
Stage (const Stage &stage) throw () | |
Copy constructor. | |
virtual | ~Stage () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
Accessors | |
virtual const List< LightSource > & | getLightSources () const throw () |
Get the light sources (const). | |
virtual void | addLightSource (const LightSource &light_source) throw () |
Add a light source. | |
virtual void | removeLightSource (const LightSource &light_source) throw () |
Remove a light source. | |
void | clearLightSources () throw () |
virtual Camera & | getCamera () throw () |
Get the camera. | |
virtual const Camera & | getCamera () const throw () |
Get the camera (const). | |
virtual void | setCamera (const Camera &camera) throw () |
Set the camera of the stage. | |
virtual const ColorRGBA & | getBackgroundColor () const throw () |
Get the background color. | |
virtual void | setBackgroundColor (const ColorRGBA &color) throw () |
Set the background color. | |
virtual const ColorRGBA & | getInfoColor () const throw () |
Get the background color. | |
virtual void | setInfoColor (const ColorRGBA &color) throw () |
Set the background color. | |
void | showCoordinateSystem (bool state) throw () |
Show coordinate system. | |
bool | coordinateSystemEnabled () const throw () |
Shows coordinate system. | |
void | setEyeDistance (float value) throw () |
Set the eye distance for the stereo view. | |
float | getEyeDistance () const throw () |
Get the eye distance for the stereo view. | |
void | setFocalDistance (float value) throw () |
Set the focal distance for the stereo view. | |
float | getFocalDistance () const throw () |
Get the focal distance for the stereo view. | |
void | setSwapSideBySideStereo (bool state) throw () |
Settings for side by side stereo side swapping. | |
bool | swapSideBySideStereo () const throw () |
Get settings for side by side stereo side swapping. | |
float | getFogIntensity () const throw () |
void | setFogIntensity (float value) throw () |
float | getSpecularIntensity () const throw () |
void | setSpecularIntensity (float value) throw () |
float | getDiffuseIntensity () const throw () |
void | setDiffuseIntensity (float value) throw () |
float | getAmbientIntensity () const throw () |
void | setAmbientIntensity (float value) throw () |
float | getShininess () const throw () |
void | setShininess (float value) throw () |
Predicates | |
bool | operator== (const Stage &stage) const throw () |
Vector3 | calculateRelativeCoordinates (Vector3 pos) const |
Calculate coordiantes relative to the position of the camera in units of right_vector, look_up_vector and view_vector. | |
Vector3 | calculateAbsoluteCoordinates (Vector3 pos) const |
Calculate absolute room coordinates from relative coordinates. | |
Protected Attributes | |
ColorRGBA | background_color_ |
ColorRGBA | info_color_ |
List< LightSource > | light_sources_ |
Camera | camera_ |
bool | show_coordinate_system_ |
float | fog_intensity_ |
float | eye_distance_ |
float | focal_distance_ |
bool | swap_side_by_side_stereo_ |
float | specular_ |
float | diffuse_ |
float | ambient_ |
float | shininess_ |
It stores also the eye distance for the stereo view. Finally a flag can be set, so that a coordinate system will be shown.
|
Calculate absolute room coordinates from relative coordinates.
|
|
Calculate coordiantes relative to the position of the camera in units of right_vector, look_up_vector and view_vector. This is done by calculating the normals to three planes, spaned by these three vectors. This method is e.g. used to store the coordinates of the relative light sources in the INIFile, or in the LightSettings dialog.
|
|
Internal value dump. Dump the current state of this instance to the output ostream s with dumping depth depth.
|