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;}
187 bool operator == (
const LightSource& light_source)
const;
197 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
299 virtual void clear();
308 {
return light_sources_;}
313 if (i >= light_sources_.size())
319 std::list<LightSource>::iterator l_it;
322 for (l_it = light_sources_.begin();
323 (current_light < i) && (l_it != light_sources_.end());
324 ++l_it, ++current_light)
330 virtual void addLightSource(
const LightSource& light_source);
333 virtual void removeLightSource(
const LightSource& light_source) ;
336 void clearLightSources();
353 {
return background_color_;}
357 { background_color_ = color;}
361 {
return info_color_;}
365 { info_color_ = color;}
369 { show_coordinate_system_ = state;}
373 {
return show_coordinate_system_;}
377 { eye_distance_ = value;}
381 {
return eye_distance_;}
385 { focal_distance_ = value;}
389 {
return focal_distance_;}
393 { swap_side_by_side_stereo_ = state;}
397 {
return swap_side_by_side_stereo_;}
401 {
return fog_intensity_;}
405 { fog_intensity_ = value;}
413 { specular_ = value;}
433 {
return shininess_;}
437 { shininess_ = value;}
446 bool operator == (
const Stage& stage)
const;
470 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
519 #endif // BALL_VIEW_KERNEL_STAGE_H
void setAmbientIntensity(float value)
ColorRGBA reflective_color
virtual const Camera & getCamera() const
Get the camera (const)
const Angle & getAngle() const
Get the angle of the light cone.
float getShininess() const
void setPosition(const Vector3 &position)
Set position.
#define BALL_CREATE(name)
void setDirection(const Vector3 &direction)
Set the direction vector of the light.
bool swap_side_by_side_stereo_
std::list< LightSource > light_sources_
const Vector3 & getDirection() const
Get the direction vector of the light.
float getEyeDistance() const
Get the eye distance for the stereo view.
ColorRGBA background_color_
void setColor(const ColorRGBA &color)
virtual void setBackgroundColor(const ColorRGBA &color)
Set the background color.
float getSpecularIntensity() const
Types
Enumeration of different types of lights.
virtual const ColorRGBA & getInfoColor() const
Get the background color.
void setAttenuation(const Vector3 &attenuation)
Set the attenuation parameters of the light.
RaytracingMaterial & getRTMaterial()
Gives access to the default material parameters.
virtual Camera & getCamera()
Get the camera.
virtual void setCamera(const Camera &camera)
void setRelativeToCamera(bool state)
If set to true, the LightSource will move with the Camera.
void setEyeDistance(float value)
Set the eye distance for the stereo view.
float getAmbientIntensity() const
const ColorRGBA & getColor() const
float getIntensity() const
bool swapSideBySideStereo() const
Get settings for side by side stereo side swapping.
bool isRelativeToCamera() const
Test if a LightSource will move with the Camera.
virtual void setInfoColor(const ColorRGBA &color)
Set the background color.
void setSpecularIntensity(float value)
const Vector3 & getPosition() const
Get position.
float reflective_intensity
virtual LightSource & getLightSource(Position i)
Get a reference to the i-th light source.
float getFogIntensity() const
const RaytracingMaterial & getRTMaterial() const
Gives access to the default material parameters, const version.
void setIntensity(float intensity)
const Vector3 & getAttenuation() const
Get the attenuation parameters of the light.
void setDiffuseIntensity(float value)
virtual ~Stage()
Destructor.
void setShininess(float value)
void setAngle(const Angle &angle)
Set the angle of the light cone.
bool coordinateSystemEnabled() const
Shows coordinate system.
bool show_coordinate_system_
-*- Mode: C++; tab-width: 2; -*-
float getDiffuseIntensity() const
void showCoordinateSystem(bool state)
Show coordinate system.
float getFocalDistance() const
Get the focal distance for the stereo view.
virtual const std::list< LightSource > & getLightSources() const
Get the light sources (const)
virtual const ColorRGBA & getBackgroundColor() const
Get the background color.
void setFogIntensity(float value)
void setFocalDistance(float value)
Set the focal distance for the stereo view.
RaytracingMaterial rt_material_
void setSwapSideBySideStereo(bool state)
Settings for side by side stereo side swapping.