|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLPACS::CEdgeQuad Class Referencea quadgrid of list of edge chain.
More...
#include <edge_quad.h>
List of all members.
Public Methods |
| CEdgeQuad () |
| Constructor. More...
|
| CEdgeQuad (const CEdgeQuad &o) |
| Copy Constructor. More...
|
| ~CEdgeQuad () |
| Destructor. More...
|
CEdgeQuad & | operator= (const CEdgeQuad &o) |
| operator=. More...
|
void | clear () |
| clear. More...
|
void | build (const CExteriorMesh &em, const CGlobalRetriever &global, CCollisionSurfaceTemp &cst, uint32 thisInstance) |
| build a chain quad, with a list of exterior Edges and the global retriever. More...
|
sint | selectEdges (const NLMISC::CAABBox &bbox, CCollisionSurfaceTemp &cst) const |
| look in the quad to select a list of chain from a bbox. More...
|
sint | selectEdges (CVector start, CVector end, CCollisionSurfaceTemp &cst) const |
| look in the quad to select a list of chain from a line. More...
|
const std::vector< CExteriorEdgeEntry > & | getEdgeEntries () const |
| Get the whole set of edge entries. More...
|
const CExteriorEdgeEntry & | getEdgeEntry (uint entry) const |
| Get a single edge entry. More...
|
void | serial (NLMISC::IStream &f) |
| serial. More...
|
void | removeLinks (sint32 instanceId) |
void | removeLinks () |
Private Methods |
void | getGridBounds (sint32 &x0, sint32 &y0, sint32 &x1, sint32 &y1, const CVector &minP, const CVector &maxP) const |
Private Attributes |
std::vector< uint8 * > | _Quad |
| W*H pointers on array of CExteriorEdgeEntry indexes. More...
|
std::vector< CExteriorEdgeEntry > | _EdgeEntries |
| The real exterior edge entries. More...
|
uint32 | _Width |
| Width of the quadgrid. More...
|
uint32 | _Height |
| Height of the quadgrid. More...
|
sint32 | _X |
| Postion of the chainquad. More...
|
sint32 | _Y |
| Postion of the chainquad. More...
|
uint8 * | _QuadData |
| Single memory block of CExteriorEdgeEntry chains. More...
|
uint32 | _QuadDataLen |
| size (in byte) of _QuadData. More...
|
Static Private Attributes |
const float | _QuadElementSize = 4 |
Detailed Description
a quadgrid of list of edge chain.
-
Author:
-
Benjamin Legros , Nevrax France
-
Date:
-
2001
Definition at line 61 of file edge_quad.h.
Constructor & Destructor Documentation
NLPACS::CEdgeQuad::CEdgeQuad |
( |
|
) |
|
|
NLPACS::CEdgeQuad::CEdgeQuad |
( |
const CEdgeQuad & |
o |
) |
|
|
NLPACS::CEdgeQuad::~CEdgeQuad |
( |
|
) |
|
|
Member Function Documentation
|
build a chain quad, with a list of exterior Edges and the global retriever.
Definition at line 130 of file edge_quad.cpp.
References _EdgeEntries, _Height, _Quad, _QuadData, _QuadDataLen, _QuadElementSize, _Width, _X, _Y, NLMISC::contReset, getGridBounds, nlerror, nlinfo, nlwarning, NLPACS::TCollisionSurfaceDescVector, x, and y. |
void NLPACS::CEdgeQuad::clear |
( |
|
) |
|
|
const std::vector<CExteriorEdgeEntry>& NLPACS::CEdgeQuad::getEdgeEntries |
( |
|
) |
const [inline] |
|
void NLPACS::CEdgeQuad::getGridBounds |
( |
sint32 & |
x0, |
|
|
sint32 & |
y0, |
|
|
sint32 & |
x1, |
|
|
sint32 & |
y1, |
|
|
const CVector & |
minP, |
|
|
const CVector & |
maxP |
|
) |
const [private] |
|
CEdgeQuad & NLPACS::CEdgeQuad::operator= |
( |
const CEdgeQuad & |
o |
) |
|
|
void NLPACS::CEdgeQuad::removeLinks |
( |
|
) |
[inline] |
|
void NLPACS::CEdgeQuad::removeLinks |
( |
sint32 |
instanceId |
) |
[inline] |
|
|
look in the quad to select a list of chain from a line.
NB: The outpout do not contains any redundant edge. An edge appears only one time in the result. -
Parameters:
-
start |
the starting point of the selection segment. |
end |
the ending point of the selection segment. |
cst |
the array of CExteriorEdgeEntry to fill. contain also OChainLUT, an array for internal use. In: must be filled with 0xFFFF. Out: still filled with 0xFFFF. |
-
Returns:
-
number of exterioredge found. stored in cst.ExteriorEdgeEntries (array cleared first).
Definition at line 462 of file edge_quad.cpp.
References _Height, _Quad, _QuadElementSize, _Width, _X, _Y, index, x, and y. |
|
look in the quad to select a list of chain from a bbox.
NB: The outpout do not contains any redundant edge. An edge appears only one time in the result. -
Parameters:
-
bbox |
the area of interest. |
cst |
the array of CExteriorEdgeEntry to fill. contain also OChainLUT, an array for internal use. In: must be filled with 0xFFFF. Out: still filled with 0xFFFF. |
-
Returns:
-
number of exterioredge found. stored in cst.ExteriorEdgeEntries (array cleared first).
Definition at line 407 of file edge_quad.cpp.
References _Quad, _Width, getGridBounds, NLMISC::CAABBox::getMax, NLMISC::CAABBox::getMin, index, x, and y. |
|
serial.
Definition at line 568 of file edge_quad.cpp.
References _EdgeEntries, _Height, _Quad, _QuadData, _QuadDataLen, _Width, _X, _Y, NLMISC::contReset, NLMISC::IStream::isReading, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion. |
Member Data Documentation
uint32 NLPACS::CEdgeQuad::_Height [private]
|
|
std::vector<uint8*> NLPACS::CEdgeQuad::_Quad [private]
|
|
uint8* NLPACS::CEdgeQuad::_QuadData [private]
|
|
uint32 NLPACS::CEdgeQuad::_QuadDataLen [private]
|
|
const float NLPACS::CEdgeQuad::_QuadElementSize = 4 [static, private]
|
|
uint32 NLPACS::CEdgeQuad::_Width [private]
|
|
sint32 NLPACS::CEdgeQuad::_X [private]
|
|
sint32 NLPACS::CEdgeQuad::_Y [private]
|
|
The documentation for this class was generated from the following files:
|
|