67#define C_MAXIMUM_OPENGL_LIGHT_COUNT 8
127 const GLfloat a_green,
128 const GLfloat a_blue);
158 virtual bool computeCollisionDetection(const cVector3d& a_segmentPointA,
159 const cVector3d& a_segmentPointB,
160 cCollisionRecorder& a_recorder,
161 cCollisionSettings& a_settings);
167 const unsigned int a_IDN);
190 const bool a_mirrorY =
false);
Implementation of a camera.
Implements color properties.
Implements graphic fog capabilities.
Implements a base class for all objects.
Implements arrays of 3D triangles.
This class implements fog inside the world.
Definition CFog.h:82
This class implements a base class for modeling light sources.
Definition CGenericLight.h:80
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
This class implements a virtual world.
Definition CWorld.h:93
std::list< cShadowMap * > m_shadowMaps
List of active shadow maps.
Definition CWorld.h:209
void setBackgroundColor(const GLfloat a_red, const GLfloat a_green, const GLfloat a_blue)
This method sets the background color of this world.
Definition CWorld.cpp:101
virtual bool updateShadowMaps(const bool a_mirrorX=false, const bool a_mirrorY=false)
This method updates all shadow maps.
Definition CWorld.cpp:250
cColorf m_backgroundColor
Background color of the world.
Definition CWorld.h:200
bool m_renderLightSources
If true then light sources should be used.
Definition CWorld.h:248
double getShadowIntensity()
Definition CWorld.h:186
double m_worldModelView[16]
It's useful to store the world's modelview matrix, for rendering stuff in "global" coordinates.
Definition CWorld.h:212
cColorf getBackgroundColor() const
This method returns the background color of this world.
Definition CWorld.h:134
virtual ~cWorld()
Destructor of cWorld.
Definition CWorld.cpp:86
bool addLightSource(cGenericLight *a_light)
This method adds a light source to this world.
Definition CWorld.cpp:132
virtual std::string getClassName()
This method returns the name of the object class.
Definition CWorld.h:116
bool getUseShadowCastring()
This method returns true if shadow casting is enabled, false otherwise.
Definition CWorld.h:180
void setUseShadowCasting(bool a_enabled)
This method enables or disables shadow casting.
Definition CWorld.h:177
cWorld()
Constructor of cWorld.
Definition CWorld.cpp:59
double m_shadowIntensity
Shadow intensity. Values ranges between 0.0 and 1.0 (0.0 = no shadow - full light....
Definition CWorld.h:251
virtual cGenericLight * getLightSource(int index)
This method returns a pointer to a particular light source (between 0 and MAXIMUM_OPENGL_LIGHT_COUNT-...
Definition CWorld.cpp:227
void enableLightSourceRendering(bool enable)
This method enables or disables the rendering of this world's light sources.
Definition CWorld.h:144
void setShadowIntensity(double a_intensity)
This method sets the shadow Intensity. (0.0 = no shadow - full light. 1.0 = full shadow - no light)
Definition CWorld.h:183
cFog * m_fog
Fog property.
Definition CWorld.h:203
virtual void computeLocalInteraction(const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int a_IDN)
This method updates the geometric relationship between the tool and this world.
Definition CWorld.cpp:414
bool removeLightSource(cGenericLight *a_light)
This method removed a light source from this world.
Definition CWorld.cpp:193
std::vector< cGenericLight * > m_lights
List of light sources.
Definition CWorld.h:206
virtual void render(cRenderOptions &a_options)
This method renders all light sources of this world.
Definition CWorld.cpp:358
bool isShadowCastingSupported()
This method returns true if shadow casting is supported on this hardware, false otherwise.
Definition CWorld.cpp:328
bool m_useShadowCasting
If true then shadow maps are used.
Definition CWorld.h:254
Definition CAudioBuffer.cpp:57
double cClamp01(const double &a_value)
This function clamps a value to a value ranged between 0.0 and 1.0.
Definition CMaths.h:431
This class defines a color using a GLfloat representation for each component.
Definition CColor.h:139
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83
This class implements a 3D vector.
Definition CVector3d.h:89