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

A water quad. More...

#include <water_model.h>

Inheritance diagram for NL3D::CWaterModel:

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

Public Methods

 CWaterModel ()
 ctor. More...

virtual ITrackgetDefaultTrack (uint valueId)
 Default Track Values are identity (pos,pivot= 0, scale= 1, rots=0). More...

virtual uint32 getWaterHeightMapID () const
 inherited from UWaterInstance. More...

virtual float getHeightFactor () const
 inherited from UWaterInstance. More...

virtual float getHeight (const NLMISC::CVector2f &pos)
 inherited from UWaterInstance. More...

virtual float getAttenuatedHeight (const NLMISC::CVector2f &pos, const NLMISC::CVector &viewer)
 inherited from UWaterInstance. More...


Static Public Methods

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

IModelcreator ()

Protected Attributes

CScene_Scene

Friends

class CWaterRenderObs
class CWaterShape

Detailed Description

A water quad.

Author:
Nicolas Vizerie , Nevrax France
Date:
2001

Definition at line 52 of file water_model.h.


Constructor & Destructor Documentation

NL3D::CWaterModel::CWaterModel  
 

ctor.

Definition at line 50 of file water_model.cpp.

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

Referenced by creator.


Member Function Documentation

IModel* NL3D::CWaterModel::creator   [inline, static]
 

Reimplemented from NL3D::CTransformShape.

Definition at line 60 of file water_model.h.

References CWaterModel, and NL3D::IModel::IModel.

float NL3D::CWaterModel::getAttenuatedHeight const NLMISC::CVector2f   pos,
const NLMISC::CVector   viewer
[virtual]
 

inherited from UWaterInstance.

Implements NL3D::UWaterInstance.

Definition at line 112 of file water_model.cpp.

References CWaterShape, NL3D::ITransformable::getPos, NL3D::GetWaterPoolManager, height, NL3D::CTransformShape::Shape, NLMISC::CVector2f::x, and NLMISC::CVector2f::y.

ITrack * NL3D::CWaterModel::getDefaultTrack uint    valueId [virtual]
 

Default Track Values are identity (pos,pivot= 0, scale= 1, rots=0).

Reimplemented from NL3D::CTransform.

Definition at line 68 of file water_model.cpp.

References CWaterShape, nlassert, NL3D::ITransformable::PosValue, NL3D::ITransformable::RotQuatValue, NL3D::ITransformable::ScaleValue, and NL3D::CTransformShape::Shape.

float NL3D::CWaterModel::getHeight const NLMISC::CVector2f   pos [virtual]
 

inherited from UWaterInstance.

Implements NL3D::UWaterInstance.

Definition at line 102 of file water_model.cpp.

References CWaterShape, NL3D::ITransformable::getPos, NL3D::GetWaterPoolManager, height, and NL3D::CTransformShape::Shape.

float NL3D::CWaterModel::getHeightFactor   const [virtual]
 

inherited from UWaterInstance.

Implements NL3D::UWaterInstance.

Definition at line 93 of file water_model.cpp.

References CWaterShape, and NL3D::CTransformShape::Shape.

uint32 NL3D::CWaterModel::getWaterHeightMapID   const [virtual]
 

inherited from UWaterInstance.

Implements NL3D::UWaterInstance.

Definition at line 85 of file water_model.cpp.

References CWaterShape, and NL3D::CTransformShape::Shape.

void NL3D::CWaterModel::registerBasic   [static]
 

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

Reimplemented from NL3D::CTransformShape.

Definition at line 59 of file water_model.cpp.

References NL3D::RenderTravId, NL3D::TransformShapeId, and NL3D::WaterModelClassId.


Friends And Related Function Documentation

friend class CWaterRenderObs [friend]
 

Definition at line 77 of file water_model.h.

friend class CWaterShape [friend]
 

Definition at line 78 of file water_model.h.

Referenced by getAttenuatedHeight, getDefaultTrack, getHeight, getHeightFactor, and getWaterHeightMapID.


Member Data Documentation

CScene* NL3D::CWaterModel::_Scene [protected]
 

Definition at line 79 of file water_model.h.


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