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

This class allow to create a sequence of small quads that tesselate a poly. More...

#include <quad_effect.h>

List of all members.

Public Types

typedef std::vector< NLMISC::CVector2fTPoint2DVect
 a vector of 2d points. More...

typedef std::vector< std::pair<
float, float > > 
TRasters

Static Public Methods

void makeRasters (const TPoint2DVect &poly, float quadWidth, float quadHeight, TRasters &dest, float &startY)
 Make raters from the given clipped polygon. More...

void processPoly (const TPoint2DVect &poly, float quadWidth, float quadHeight, TPoint2DVect &dest)
 edge is in scope. More...


Detailed Description

This class allow to create a sequence of small quads that tesselate a poly.

Author:
Nicolas Vizerie , Nevrax France
Date:
2001

Definition at line 46 of file quad_effect.h.


Member Typedef Documentation

typedef std::vector<NLMISC::CVector2f> NL3D::CQuadEffect::TPoint2DVect
 

a vector of 2d points.

Definition at line 50 of file quad_effect.h.

typedef std::vector< std::pair< float, float> > NL3D::CQuadEffect::TRasters
 

Definition at line 53 of file quad_effect.h.

Referenced by processPoly.


Member Function Documentation

void NL3D::CQuadEffect::makeRasters const TPoint2DVect   poly,
float    quadWidth,
float    quadHeight,
TRasters   dest,
float &    startY
[static]
 

Make raters from the given clipped polygon.

Parameters:
poly  a polygon that describe the area where datas are taken from.
quadWidth  width of the quad
quadHeight  height of the quad
dest  a vector that will be filled with the given rasters
startY  will be filled with the start y position on screen

Definition at line 61 of file quad_effect.cpp.

References min, and NL3D::TEdgeList.

Referenced by processPoly.

void NL3D::CQuadEffect::processPoly const TPoint2DVect   poly,
float    quadWidth,
float    quadHeight,
TPoint2DVect   dest
[static]
 

edge is in scope.

Parameters:
poly  a polygon that describe the area where datas are taken from.
quadWidth  width of the quad
quadHeight  height of the quad
dest  a vector that will contains the pos of all the quads that cover the poly

Definition at line 234 of file quad_effect.cpp.

References makeRasters, and TRasters.


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