# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CVisualCollisionManagerUser Class Reference

UVisualCollisionManager implementation. More...

#include <visual_collision_manager_user.h>

Inheritance diagram for NL3D::CVisualCollisionManagerUser:

NL3D::UVisualCollisionManager List of all members.

Public Methods

 CVisualCollisionManagerUser ()
 Constructor. More...

virtual void setLandscape (ULandscape *landscape)
 setup the landscape used for this collision manager. More...

virtual UVisualCollisionEntitycreateEntity ()
 create an entity. More...

virtual void deleteEntity (UVisualCollisionEntity *entity)
 delete an entity. More...

virtual void setSunContributionPower (float power, float maxThreshold)
 Build a lighting table to remap sun contribution from landscape to sun contribution for objects. More...


Protected Types

typedef CPtrSet< CVisualCollisionEntityUserTVisualCollisionEntitySet

Protected Attributes

CVisualCollisionManager _Manager
TVisualCollisionEntitySet _Entities

Detailed Description

UVisualCollisionManager implementation.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 47 of file visual_collision_manager_user.h.


Member Typedef Documentation

typedef CPtrSet<CVisualCollisionEntityUser> NL3D::CVisualCollisionManagerUser::TVisualCollisionEntitySet [protected]
 

Definition at line 84 of file visual_collision_manager_user.h.


Constructor & Destructor Documentation

NL3D::CVisualCollisionManagerUser::CVisualCollisionManagerUser   [inline]
 

Constructor.

Definition at line 52 of file visual_collision_manager_user.h.

References NL3D_MEM_VISUAL_COLLISION.


Member Function Documentation

virtual UVisualCollisionEntity* NL3D::CVisualCollisionManagerUser::createEntity   [inline, virtual]
 

create an entity.

NB: CVisualCollisionManager owns this ptr, and you must delete it with deleteEntity(). NB: all CVisualCollisionEntity are deleted when this manager is deleted.

Implements NL3D::UVisualCollisionManager.

Definition at line 64 of file visual_collision_manager_user.h.

References _Entities, _Manager, and NL3D_MEM_VISUAL_COLLISION.

virtual void NL3D::CVisualCollisionManagerUser::deleteEntity UVisualCollisionEntity   entity [inline, virtual]
 

delete an entity.

Implements NL3D::UVisualCollisionManager.

Definition at line 70 of file visual_collision_manager_user.h.

References _Entities, and NL3D_MEM_VISUAL_COLLISION.

virtual void NL3D::CVisualCollisionManagerUser::setLandscape ULandscape   landscape [inline, virtual]
 

setup the landscape used for this collision manager.

ptr is kept, and manager must be cleared when the landscape is deleted.

Implements NL3D::UVisualCollisionManager.

Definition at line 58 of file visual_collision_manager_user.h.

References _Manager, and NL3D_MEM_VISUAL_COLLISION.

virtual void NL3D::CVisualCollisionManagerUser::setSunContributionPower float    power,
float    maxThreshold
[inline, virtual]
 

Build a lighting table to remap sun contribution from landscape to sun contribution for objects.

The value remap the landscape sun contribution (0 ~ 1) to an object sun contribution (0 ~1) using the following formula:

objectSunContribution = min ( powf ( landscapeSunContribution / maxThreshold, power ), 1 );

Default is 0.5 (=> sqrt) for power and 0.5 for maxThreshold.

Implements NL3D::UVisualCollisionManager.

Definition at line 76 of file visual_collision_manager_user.h.

References _Manager, and NL3D_MEM_VISUAL_COLLISION.


Member Data Documentation

TVisualCollisionEntitySet NL3D::CVisualCollisionManagerUser::_Entities [protected]
 

Definition at line 85 of file visual_collision_manager_user.h.

Referenced by createEntity, and deleteEntity.

CVisualCollisionManager NL3D::CVisualCollisionManagerUser::_Manager [protected]
 

Definition at line 83 of file visual_collision_manager_user.h.

Referenced by createEntity, setLandscape, and setSunContributionPower.


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