# 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::CLoadBalancingGroup Class Reference

A LoadBalancing Group. More...

#include <load_balancing_trav.h>

List of all members.

Public Types

enum  TPolygonBalancingMode { PolygonBalancingOff = 0, PolygonBalancingOn, PolygonBalancingClamp, CountPolygonBalancing }

Public Methods

 CLoadBalancingGroup ()
void setNbFaceWanted (uint nFaces)
uint getNbFaceWanted () const
float getNbFaceAsked () const
void addNbFacesPass0 (float v)
float computeModelNbFace (float faceIn)
 Compute the number of face to be rendered for thismodel, according to the number of faces he want to draw. More...


Public Attributes

std::string Name

Private Methods

void computeRatioAndSmooth (TPolygonBalancingMode polMode)

Private Attributes

bool _DefaultGroup
float _NbFacePass0
uint _NbFaceWanted
float _FaceRatio
NLMISC::CValueSmoother _ValueSmoother
TPolygonBalancingMode _PrecPolygonBalancingMode

Friends

class CLoadBalancingTrav


Detailed Description

A LoadBalancing Group.

Models are owned by a group (through ILoadBalancingObs). Groups are created in CLoadBalancingTrav.

See also:
CScene CLoadBalancingTrav
Author:
Lionel Berenguier , Nevrax France
Date:
2002

Definition at line 67 of file load_balancing_trav.h.


Member Enumeration Documentation

enum NL3D::CLoadBalancingGroup::TPolygonBalancingMode
 

Enumeration values:
PolygonBalancingOff 
PolygonBalancingOn 
PolygonBalancingClamp 
CountPolygonBalancing 

Definition at line 71 of file load_balancing_trav.h.


Constructor & Destructor Documentation

NL3D::CLoadBalancingGroup::CLoadBalancingGroup  
 

Definition at line 53 of file load_balancing_trav.cpp.

References _DefaultGroup, _FaceRatio, _NbFacePass0, _NbFaceWanted, _PrecPolygonBalancingMode, _ValueSmoother, NLMISC::CValueSmoother::init, and NL3D_DEFAULT_LOADBALANCING_VALUE_SMOOTHER.


Member Function Documentation

void NL3D::CLoadBalancingGroup::addNbFacesPass0 float    v [inline]
 

Definition at line 87 of file load_balancing_trav.h.

References _NbFacePass0, and v.

float NL3D::CLoadBalancingGroup::computeModelNbFace float    faceIn [inline]
 

Compute the number of face to be rendered for thismodel, according to the number of faces he want to draw.

Definition at line 90 of file load_balancing_trav.h.

References _FaceRatio.

void NL3D::CLoadBalancingGroup::computeRatioAndSmooth TPolygonBalancingMode    polMode [private]
 

Definition at line 66 of file load_balancing_trav.cpp.

References _FaceRatio, _NbFacePass0, _NbFaceWanted, _PrecPolygonBalancingMode, _ValueSmoother, NLMISC::CValueSmoother::addValue, NLMISC::clamp, NLMISC::CValueSmoother::getSmoothValue, NLMISC::CValueSmoother::init, NL3D_DEFAULT_LOADBALANCING_VALUE_SMOOTHER, NL3D_LOADBALANCING_SMOOTHER_MAX_RATIO, PolygonBalancingClamp, PolygonBalancingOff, PolygonBalancingOn, and NLMISC::CValueSmoother::reset.

float NL3D::CLoadBalancingGroup::getNbFaceAsked   const [inline]
 

Definition at line 83 of file load_balancing_trav.h.

References _NbFacePass0.

uint NL3D::CLoadBalancingGroup::getNbFaceWanted   const [inline]
 

Definition at line 81 of file load_balancing_trav.h.

References _NbFaceWanted.

void NL3D::CLoadBalancingGroup::setNbFaceWanted uint    nFaces [inline]
 

Definition at line 80 of file load_balancing_trav.h.

References _NbFaceWanted.


Friends And Related Function Documentation

friend class CLoadBalancingTrav [friend]
 

Definition at line 93 of file load_balancing_trav.h.


Member Data Documentation

bool NL3D::CLoadBalancingGroup::_DefaultGroup [private]
 

Definition at line 96 of file load_balancing_trav.h.

Referenced by CLoadBalancingGroup.

float NL3D::CLoadBalancingGroup::_FaceRatio [private]
 

Definition at line 105 of file load_balancing_trav.h.

Referenced by CLoadBalancingGroup, computeModelNbFace, and computeRatioAndSmooth.

float NL3D::CLoadBalancingGroup::_NbFacePass0 [private]
 

Definition at line 99 of file load_balancing_trav.h.

Referenced by addNbFacesPass0, CLoadBalancingGroup, computeRatioAndSmooth, and getNbFaceAsked.

uint NL3D::CLoadBalancingGroup::_NbFaceWanted [private]
 

Definition at line 102 of file load_balancing_trav.h.

Referenced by CLoadBalancingGroup, computeRatioAndSmooth, getNbFaceWanted, and setNbFaceWanted.

TPolygonBalancingMode NL3D::CLoadBalancingGroup::_PrecPolygonBalancingMode [private]
 

Definition at line 110 of file load_balancing_trav.h.

Referenced by CLoadBalancingGroup, and computeRatioAndSmooth.

NLMISC::CValueSmoother NL3D::CLoadBalancingGroup::_ValueSmoother [private]
 

Definition at line 108 of file load_balancing_trav.h.

Referenced by CLoadBalancingGroup, and computeRatioAndSmooth.

std::string NL3D::CLoadBalancingGroup::Name
 

Definition at line 75 of file load_balancing_trav.h.


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