Go to the documentation of this file.
5 #ifndef BALL_VIEW_KERNEL_STAGE_H
6 #define BALL_VIEW_KERNEL_STAGE_H
8 #ifndef BALL_MATHS_VECTOR3_H
12 #ifndef BALL_MATHS_QUATERNION_H
16 #ifndef BALL_MATHS_MATRIX44_H
20 #ifndef BALL_MATHS_ANGLE_H
24 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
28 #ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
32 #ifndef BALL_COMMON_EXCEPTION_H
36 #ifndef BALL_VIEW_RENDERING_CAMERA_H
104 { position_ = position; }
108 {
return direction_;}
112 { direction_ = direction;}
116 {
return attenuation_;}
120 { attenuation_ = attenuation;}
135 {
return intensity_;}
141 { intensity_ = intensity;}
169 { relative_ = state;}
197 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
272 float ambient_intensity;
275 float specular_intensity;
278 float reflective_intensity;
316 {
return light_sources_;}
321 if (i >= light_sources_.size())
327 std::list<LightSource>::iterator l_it;
330 for (l_it = light_sources_.begin();
331 (current_light < i) && (l_it != light_sources_.end());
332 ++l_it, ++current_light)
361 {
return background_color_;}
365 { background_color_ = color;}
369 {
return info_color_;}
373 { info_color_ = color;}
377 { show_coordinate_system_ = state;}
381 {
return show_coordinate_system_;}
385 { eye_distance_ = value;}
389 {
return eye_distance_;}
393 { focal_distance_ = value;}
397 {
return focal_distance_;}
401 { swap_side_by_side_stereo_ = state;}
405 {
return swap_side_by_side_stereo_;}
409 {
return fog_intensity_;}
413 { fog_intensity_ = value;}
445 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
489 #endif // BALL_VIEW_KERNEL_STAGE_H
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
const Material & getMaterial() const
Gives access to the default material parameters, const version.
void setRelativeToCamera(bool state)
If set to true, the LightSource will move with the Camera.
LightSource(const LightSource &light_source)
bool swap_side_by_side_stereo_
const Vector3 & getAttenuation() const
Get the attenuation parameters of the light.
const Vector3 & getDirection() const
Get the direction vector of the light.
virtual const ColorRGBA & getBackgroundColor() const
Get the background color.
bool swapSideBySideStereo() const
Get settings for side by side stereo side swapping.
virtual void setBackgroundColor(const ColorRGBA &color)
Set the background color.
void setAngle(const Angle &angle)
Set the angle of the light cone.
float getIntensity() const
float getFogIntensity() const
void setIntensity(float intensity)
BALL_EXPORT bool operator<(const String &s1, const String &s2)
const Angle & getAngle() const
Get the angle of the light cone.
virtual const std::list< LightSource > & getLightSources() const
Get the light sources (const)
Types
Enumeration of different types of lights.
const Vector3 & getPosition() const
Get position.
Vector3 calculateRelativeCoordinates(Vector3 pos) const
virtual void setInfoColor(const ColorRGBA &color)
Set the background color.
void setDirection(const Vector3 &direction)
Set the direction vector of the light.
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
void setFocalDistance(float value)
Set the focal distance for the stereo view.
std::list< LightSource > light_sources_
void setColor(const ColorRGBA &color)
Stage(const Stage &stage)
Copy constructor.
float getFocalDistance() const
Get the focal distance for the stereo view.
virtual void addLightSource(const LightSource &light_source)
Add a light source.
void showCoordinateSystem(bool state)
Show coordinate system.
virtual ~Stage()
Destructor.
virtual void clear()
Explicit default initialization.
void setAttenuation(const Vector3 &attenuation)
Set the attenuation parameters of the light.
virtual const Camera & getCamera() const
Get the camera (const)
virtual LightSource & getLightSource(Position i)
Get a reference to the i-th light source.
virtual Camera & getCamera()
Get the camera.
bool show_coordinate_system_
BALL_EXPORT bool operator==(const String &s1, const String &s2)
virtual const ColorRGBA & getInfoColor() const
Get the background color.
virtual void removeLightSource(const LightSource &light_source)
Remove a light source.
void setFogIntensity(float value)
void setSwapSideBySideStereo(bool state)
Settings for side by side stereo side swapping.
Material & getMaterial()
Gives access to the default material parameters.
void setPosition(const Vector3 &position)
Set position.
const ColorRGBA & getColor() const
#define BALL_CREATE(name)
Vector3 calculateAbsoluteCoordinates(Vector3 pos) const
ColorRGBA background_color_
bool isRelativeToCamera() const
Test if a LightSource will move with the Camera.
virtual void setCamera(const Camera &camera)
float getEyeDistance() const
Get the eye distance for the stereo view.
bool coordinateSystemEnabled() const
Shows coordinate system.
void setEyeDistance(float value)
Set the eye distance for the stereo view.