BALL
1.4.1
|
#include <BALL/VIEW/KERNEL/stage.h>
Classes | |
class | RaytracingMaterial |
Public Member Functions | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
RaytracingMaterial & | getRTMaterial () |
Gives access to the default material parameters. | |
const RaytracingMaterial & | getRTMaterial () const |
Gives access to the default material parameters, const version. | |
Constructors and Destructors | |
Stage () | |
Stage (const Stage &stage) | |
Copy constructor. | |
virtual | ~Stage () |
Destructor. | |
virtual void | clear () |
Explicit default initialization. | |
Accessors | |
virtual const std::list < LightSource > & | getLightSources () const |
Get the light sources (const) | |
virtual void | addLightSource (const LightSource &light_source) |
Add a light source. | |
virtual void | removeLightSource (const LightSource &light_source) |
Remove a light source. | |
void | clearLightSources () |
virtual Camera & | getCamera () |
Get the camera. | |
virtual const Camera & | getCamera () const |
Get the camera (const) | |
virtual void | setCamera (const Camera &camera) |
virtual const ColorRGBA & | getBackgroundColor () const |
Get the background color. | |
virtual void | setBackgroundColor (const ColorRGBA &color) |
Set the background color. | |
virtual const ColorRGBA & | getInfoColor () const |
Get the background color. | |
virtual void | setInfoColor (const ColorRGBA &color) |
Set the background color. | |
void | showCoordinateSystem (bool state) |
Show coordinate system. | |
bool | coordinateSystemEnabled () const |
Shows coordinate system. | |
void | setEyeDistance (float value) |
Set the eye distance for the stereo view. | |
float | getEyeDistance () const |
Get the eye distance for the stereo view. | |
void | setFocalDistance (float value) |
Set the focal distance for the stereo view. | |
float | getFocalDistance () const |
Get the focal distance for the stereo view. | |
void | setSwapSideBySideStereo (bool state) |
Settings for side by side stereo side swapping. | |
bool | swapSideBySideStereo () const |
Get settings for side by side stereo side swapping. | |
float | getFogIntensity () const |
void | setFogIntensity (float value) |
float | getSpecularIntensity () const |
void | setSpecularIntensity (float value) |
float | getDiffuseIntensity () const |
void | setDiffuseIntensity (float value) |
float | getAmbientIntensity () const |
void | setAmbientIntensity (float value) |
float | getShininess () const |
void | setShininess (float value) |
Predicates | |
bool | operator== (const Stage &stage) const |
Vector3 | calculateRelativeCoordinates (Vector3 pos) const |
Vector3 | calculateAbsoluteCoordinates (Vector3 pos) const |
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.
BALL::VIEW::Stage::Stage | ( | ) |
Default Constructor
BALL::VIEW::Stage::Stage | ( | const Stage & | stage | ) |
Copy constructor.
|
inlinevirtual |
|
virtual |
Add a light source.
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.
|
virtual |
Explicit default initialization.
void BALL::VIEW::Stage::clearLightSources | ( | ) |
|
inline |
|
virtual |
Internal value dump. Dump the current state of this instance to the output ostream s with dumping depth depth.
s | output stream |
depth | the dumping depth |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
virtual |
Remove a light source.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |