Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Stage Class Reference
[Setup of the Stage, Camera and LightSources]

A Stage has a Camera, LightSources and a background color. More...

#include <stage.h>

List of all members.

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 CameragetCamera () throw ()
 Get the camera.
virtual const CameragetCamera () const throw ()
 Get the camera (const).
virtual void setCamera (const Camera &camera) throw ()
 Set the camera of the stage.
virtual const ColorRGBAgetBackgroundColor () const throw ()
 Get the background color.
virtual void setBackgroundColor (const ColorRGBA &color) throw ()
 Set the background color.
virtual const ColorRGBAgetInfoColor () 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< LightSourcelight_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_


Detailed Description

A Stage has a Camera, LightSources and a background color.

It stores also the eye distance for the stereo view. Finally a flag can be set, so that a coordinate system will be shown.


Member Function Documentation

Vector3 VIEW::Stage::calculateAbsoluteCoordinates Vector3  pos  )  const
 

Calculate absolute room coordinates from relative coordinates.

See also:
calculateRelativeCoordinates

Vector3 VIEW::Stage::calculateRelativeCoordinates Vector3  pos  )  const
 

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.

Returns:
Vector3(times right_vector, times look_up_vector, times view_vector)

virtual void VIEW::Stage::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [virtual]
 

Internal value dump.

Dump the current state of this instance to the output ostream s with dumping depth depth.

Parameters:
s output stream
depth the dumping depth