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

A CVegetableBlendLayerModel does not have to be created by user. More...

#include <vegetable_blend_layer_model.h>

Inheritance diagram for NL3D::CVegetableBlendLayerModel:

NL3D::CTransform NL3D::IModel NL3D::ITransformable NLMISC::CRefCount NL3D::IAnimatable List of all members.

Public Methods

virtual void initModel ()
 overrides initModel(), to setup HrcObs. More...

void setWorldPos (const CVector &pos)
 Ugly but it works: setup directly both the worldMatrix and the localMatrix. More...


Static Public Methods

void registerBasic ()
 Call at the begining of the program, to register the model, and the basic observers. More...


Public Attributes

CVegetableManagerVegetableManager
 The vegetableManager which create us, and will delete us. More...

std::vector< CVegetableSortBlock * > SortBlocks
 Public (for vegetableManager only!!) list of vegetable SortBlocks to render. More...


Protected Methods

 CVegetableBlendLayerModel ()
 Constructor. More...

virtual ~CVegetableBlendLayerModel ()
 Destructor. More...


Protected Attributes

CTransformHrcObs_HrcObs

Private Methods

void render (IDriver *driver)
 render method, called by CVegetableBlendLayerRenderObs. More...


Static Private Methods

IModelcreator ()

Friends

class CVegetableBlendLayerRenderObs

Detailed Description

A CVegetableBlendLayerModel does not have to be created by user.

It is an internal class of CVegetableManager. It is used to draw AlphaBlend ZSort rdrPass vegetables. Thoses vegetables are rendered in separate Z ordered layer, so transparency with other transparents objects is well performed (as best as it can).

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 58 of file vegetable_blend_layer_model.h.


Constructor & Destructor Documentation

NL3D::CVegetableBlendLayerModel::CVegetableBlendLayerModel   [protected]
 

Constructor.

Definition at line 52 of file vegetable_blend_layer_model.cpp.

References NL3D::CTransform::setOpacity, NL3D::CTransform::setTransparency, and VegetableManager.

Referenced by creator.

virtual NL3D::CVegetableBlendLayerModel::~CVegetableBlendLayerModel   [inline, protected, virtual]
 

Destructor.

Definition at line 92 of file vegetable_blend_layer_model.h.


Member Function Documentation

IModel* NL3D::CVegetableBlendLayerModel::creator   [inline, static, private]
 

Reimplemented from NL3D::CTransform.

Definition at line 100 of file vegetable_blend_layer_model.h.

References CVegetableBlendLayerModel, and NL3D::IModel::IModel.

void NL3D::CVegetableBlendLayerModel::initModel   [virtual]
 

overrides initModel(), to setup HrcObs.

Reimplemented from NL3D::CTransform.

Definition at line 66 of file vegetable_blend_layer_model.cpp.

References _HrcObs, NL3D::IModel::getObs, and NL3D::HrcTravId.

void NL3D::CVegetableBlendLayerModel::registerBasic   [static]
 

Call at the begining of the program, to register the model, and the basic observers.

Reimplemented from NL3D::CTransform.

Definition at line 43 of file vegetable_blend_layer_model.cpp.

References NL3D::ClipTravId, NL3D::RenderTravId, NL3D::TransformId, and NL3D::VegetableBlendLayerModelId.

void NL3D::CVegetableBlendLayerModel::render IDriver   driver [private]
 

render method, called by CVegetableBlendLayerRenderObs.

Definition at line 87 of file vegetable_blend_layer_model.cpp.

References H_AUTO, NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT, nlassert, SortBlocks, and VegetableManager.

void NL3D::CVegetableBlendLayerModel::setWorldPos const CVector &    pos
 

Ugly but it works: setup directly both the worldMatrix and the localMatrix.

NB: LayerModels are always created in the root.

Definition at line 75 of file vegetable_blend_layer_model.cpp.

References _HrcObs.


Friends And Related Function Documentation

friend class CVegetableBlendLayerRenderObs [friend]
 

Definition at line 101 of file vegetable_blend_layer_model.h.


Member Data Documentation

CTransformHrcObs* NL3D::CVegetableBlendLayerModel::_HrcObs [protected]
 

Reimplemented from NL3D::CTransform.

Definition at line 96 of file vegetable_blend_layer_model.h.

Referenced by initModel, and setWorldPos.

std::vector<CVegetableSortBlock*> NL3D::CVegetableBlendLayerModel::SortBlocks
 

Public (for vegetableManager only!!) list of vegetable SortBlocks to render.

this is a vector<> because not so much reallocation, and it is just an array of ptrs, so very little memory load.

Definition at line 79 of file vegetable_blend_layer_model.h.

Referenced by render.

CVegetableManager* NL3D::CVegetableBlendLayerModel::VegetableManager
 

The vegetableManager which create us, and will delete us.

Definition at line 72 of file vegetable_blend_layer_model.h.

Referenced by CVegetableBlendLayerModel, and render.


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