CHAI3D - GEL MODULE  3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
cGELWorld Class Reference

This class implements a virtual world that manages deformable objects. More...

#include <CGELWorld.h>

Inheritance diagram for cGELWorld:

Public Member Functions

 cGELWorld ()
 Constructor of cGELWorld. More...
 
virtual ~cGELWorld ()
 Destructor of cGELWorld. More...
 
void updateDynamics (double a_timeInterval)
 This method integrates the dynamic simulation over a time period passed as argument. More...
 
void clearExternalForces ()
 This method clears all external forces applied on all deformable objects. More...
 
void updateSkins (bool a_updateNormals=true)
 This method updates the mesh of all deformable objects. More...
 

Public Attributes

std::list< cGELMesh * > m_gelMeshes
 List of deformable solids. More...
 
double m_simulationTime
 Current time of simulation. More...
 
chai3d::cVector3d m_gravity
 Gravity constant. More...
 

Detailed Description

cGELWorld implements a virtual world that simulates deformable objects.

Constructor & Destructor Documentation

cGELWorld::cGELWorld ( )

Constructor of cDefWorld.

cGELWorld::~cGELWorld ( )
virtual

Destructor of cGELWorld.

Member Function Documentation

void cGELWorld::updateDynamics ( double  a_timeInterval)

This method integrates the simulation over a time interval passed as argument.

Parameters
a_timeIntervalTime interval.
void cGELWorld::clearExternalForces ( )

This method clears all external forces being applied on the deformable objects contained in this world.

void cGELWorld::updateSkins ( bool  a_updateNormals = true)

This method update the mesh of every deformable object contained in the virtual world.

Parameters
a_updateNormalsIf true then surface normals are recomputed.

Member Data Documentation

std::list<cGELMesh*> cGELWorld::m_gelMeshes
double cGELWorld::m_simulationTime
chai3d::cVector3d cGELWorld::m_gravity

The documentation for this class was generated from the following files:

CHAI3D - GEL MODULE 3.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2015 - CHAI3D
All Rights Reserved.