From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNLPACS_1_1CLocalRetriever.html | 3068 ++++++++++++++++++++ 1 file changed, 3068 insertions(+) create mode 100644 docs/doxygen/nel/classNLPACS_1_1CLocalRetriever.html (limited to 'docs/doxygen/nel/classNLPACS_1_1CLocalRetriever.html') diff --git a/docs/doxygen/nel/classNLPACS_1_1CLocalRetriever.html b/docs/doxygen/nel/classNLPACS_1_1CLocalRetriever.html new file mode 100644 index 00000000..be2c588b --- /dev/null +++ b/docs/doxygen/nel/classNLPACS_1_1CLocalRetriever.html @@ -0,0 +1,3068 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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  
+

NLPACS::CLocalRetriever Class Reference

A surface retriever, located by its bounding box. +More... +

+#include <local_retriever.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Types

enum  EType { Landscape = 0, +Interior + }
 The different types of retriever (landscape or interior.). More...


Public Methods

bool insurePosition (ULocalPosition &local) const
 Assures a position is really inside a surface (and independent from any accuracy issue) and returns true if the position was moved. More...

void retrievePosition (NLMISC::CVector estimated, CCollisionSurfaceTemp &cst) const
 Retrieves a position inside the retriever (from the local position), returns true if the position is close to a border. More...

void snapToInteriorGround (ULocalPosition &position, bool &snapped) const
 Snaps on the ground. More...

float getHeight (const ULocalPosition &position) const
void findPath (const CLocalPosition &A, const CLocalPosition &B, std::vector< CVector2s > &path, NLPACS::CCollisionSurfaceTemp &cst) const
 Finds a path in a given surface, from the point A to the point B. More...

void unify ()
const NLMISC::CVectorgetStartVector (uint32 chain) const
const NLMISC::CVectorgetStopVector (uint32 chain) const
const NLMISC::CVectorgetStartVector (uint32 chain, sint32 surface) const
const NLMISC::CVectorgetStopVector (uint32 chain, sint32 surface) const
uint16 getStartTip (uint32 chain, sint32 surface) const
uint16 getStopTip (uint32 chain, sint32 surface) const
void setStartTip (uint32 chain, sint32 surface, uint16 startTip)
void setStopTip (uint32 chain, sint32 surface, uint16 stopTip)
uint32 getPreviousChain (uint32 chain, sint32 surface) const
uint32 getNextChain (uint32 chain, sint32 surface) const
void dumpSurface (uint surf, const NLMISC::CVector &vect=NLMISC::CVector::Null) const
float distanceToBorder (const ULocalPosition &pos) const
Constructors
 CLocalRetriever ()
Selectors
const std::vector< CTip > & getTips () const
 Returns the chain tips inside the local retrievers. More...

const CTipgetTip (uint n) const
 Returns the nth tip in the retriever. More...

const std::vector< COrderedChain > & getOrderedChains () const
 Returns the ordered chains. More...

const COrderedChaingetOrderedChain (uint n) const
 Returns the nth ordered chain. More...

const std::vector< COrderedChain3f > & getFullOrderedChains () const
 Returns the full ordered chains. More...

const COrderedChain3fgetFullOrderedChain (uint n) const
 Returns the nth full ordered chain. More...

const std::vector< CChain > & getChains () const
 Returns the chains. More...

const CChaingetChain (uint n) const
 retruns the nth chain. More...

const std::vector< uint16 > & getBorderChains () const
 Returns the ids of the chains on the edges of the retriever. More...

uint16 getBorderChain (uint n) const
 Returns the id of the nth chain on the edges of the retriever. More...

const std::vector< CRetrievableSurface > & getSurfaces () const
 Returns the surfaces. More...

const CRetrievableSurfacegetSurface (uint n) const
 Returns the nth surface. More...

EType getType () const
 Returns the type of the retriever. More...

const NLMISC::CAABBoxgetBBox () const
 Returns the bbox. More...

const CExteriorMeshgetExteriorMesh () const
 Returns the exterior mesh of the retriever. More...

const std::vector< NLMISC::CVector > & getInteriorVertices () const
 Returns the interior vertices. More...

const std::vector< CInteriorFace > & getInteriorFaces () const
 Returns the interior faces. More...

const std::string & getIdentifier () const
 Returns the identifier of the retriever. More...

void buildInteriorSurfaceBBoxes (std::vector< NLMISC::CAABBox > &surfaceBBoxes) const
 build BBoxes of interior surfaces in surfaceBBoxes (cleared first). More...

void buildSurfacePolygons (uint32 surface, std::list< NLMISC::CPolygon > &polygons) const
 Builds the polygons (loops) of a given surface. More...

void buildSurfacePolygons (std::list< std::list< NLMISC::CPolygon > > &polygons) const
 Builds the polygons (loops) of all surfaces in the retriever. More...

Mutators
sint32 addSurface (uint8 normalq, uint8 orientationq, uint8 mat, uint8 charact, uint8 level, bool isUnderWater, float waterHeight, const NLMISC::CVector &center, const CSurfaceQuadTree &quad)
 Adds a surface to the local retriever, using its features. Returns the id of the newly created surface. More...

sint32 addChain (const std::vector< NLMISC::CVector > &vertices, sint32 left, sint32 right)
 Adds a chain to the local retriever, using the vertices of the chain, the left and right surfaces id and the edge on which the chain is stuck. More...

void setType (EType type)
 Set the type of the retriever (see EType). More...

void setExteriorMesh (const CExteriorMesh &em)
 Sets the exterior mesh. More...

void setBBox (const NLMISC::CAABBox &bbox)
 Sets the bbox of the retriever. More...

std::vector< NLMISC::CVector > & getInteriorVertices ()
 Returns the interior vertices. More...

std::vector< CInteriorFace > & getInteriorFaces ()
 Returns the interior faces. More...

void setIdentifier (const std::string &id)
 Returns the identifier of the retriever. More...

CChainQuadgetChainQuad ()
 Returns the chain quad. More...

void initFaceGrid ()
 Inits the face grid. More...

void computeTopologies ()
 Builds topologies tables. More...

void computeLoopsAndTips ()
 Builds tips. More...

void findBorderChains ()
 Found chains on the edges of the retriever and fills _BorderChains tables. More...

void updateChainIds ()
 Updates surfaces links from the links contained in the chains... More...

void sortTips ()
 Sorts chains references inside the tips. NOT IMPLEMENTED YET. More...

void translate (const NLMISC::CVector &translation)
 Translates the local retriever by the translation vector. More...

void flushFullOrderedChains ()
void serial (NLMISC::IStream &f)
 Serialises the CLocalRetriever. More...

Collisions part.
void computeCollisionChainQuad ()
 compute the chain quad, used for collisions. the ChainQuad is serialised in serial(). _OrderedChains must be OK. More...

void testCollision (CCollisionSurfaceTemp &cst, const NLMISC::CAABBox &bboxMove, const NLMISC::CVector2f &transBase) const
 add possible collisions chains to the temp result. More...


Protected Attributes

std::vector< COrderedChain_OrderedChains
 The chains insinde the zone. More...

std::vector< COrderedChain3f_FullOrderedChains
std::vector< CChain_Chains
 The chains insinde the zone. More...

std::vector< CRetrievableSurface_Surfaces
 The surfaces inside the zone. More...

NLMISC::CAABBox _BBox
 The bbox of the local retriever. More...

std::vector< CTip_Tips
 The tips making links between different chains. More...

std::vector< uint16_BorderChains
 The chains on the edges of the zone. More...

std::vector< CTopology_Topologies [NumCreatureModels]
 The topologies within the zone. More...

CChainQuad _ChainQuad
 For collisions, the chainquad. More...

EType _Type
 The type of the retriever. More...

Internior retriever specific
CExteriorMesh _ExteriorMesh
 The exterior mesh, for collisions. More...

std::vector< NLMISC::CVector_InteriorVertices
 The vertices of the collision mesh. More...

std::vector< CInteriorFace_InteriorFaces
 The faces of the collision mesh. More...

CFaceGrid _FaceGrid
 The face selection grid. More...

std::string _Id
 An human readable identifier of the retriever. More...


Static Protected Attributes

const float _TipThreshold = 0.1f
 The tip recognition threshold. More...

const float _EdgeTipThreshold = 0.1f
 The tip recognition threshold. More...


Friends

class CRetrieverInstance
+


Detailed Description

+A surface retriever, located by its bounding box. +

+

+Author:
+Benjamin Legros , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 63 of file local_retriever.h.


Member Enumeration Documentation

+

+ + + + +
+ + +
enum NLPACS::CLocalRetriever::EType +
+
+ + + + + +
+   + + +

+The different types of retriever (landscape or interior.). +

+

+Author:
+Benjamin Legros , Nevrax France
+Date:
+2001
+Enumeration values:
+ + + +
Landscape  +
Interior  +
+
+ +

+Definition at line 160 of file local_retriever.h. +

+Referenced by getType, and setType.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLPACS::CLocalRetriever::CLocalRetriever  
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file local_retriever.cpp. +

+References _FaceGrid, _Type, and Landscape.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
sint32 NLPACS::CLocalRetriever::addChain const std::vector< NLMISC::CVector > &   vertices,
sint32   left,
sint32   right
+
+ + + + + +
+   + + +

+Adds a chain to the local retriever, using the vertices of the chain, the left and right surfaces id and the edge on which the chain is stuck. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
sint32 NLPACS::CLocalRetriever::addSurface uint8   normalq,
uint8   orientationq,
uint8   mat,
uint8   charact,
uint8   level,
bool   isUnderWater,
float   waterHeight,
const NLMISC::CVector  center,
const CSurfaceQuadTree  quad
+
+ + + + + +
+   + + +

+Adds a surface to the local retriever, using its features. Returns the id of the newly created surface. +

+ +

+Definition at line 292 of file local_retriever.cpp. +

+References _Surfaces, and level.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::buildInteriorSurfaceBBoxes std::vector< NLMISC::CAABBox > &   surfaceBBoxes const
+
+ + + + + +
+   + + +

+build BBoxes of interior surfaces in surfaceBBoxes (cleared first). +

+ +

+Definition at line 1605 of file local_retriever.cpp. +

+References _InteriorFaces, _InteriorVertices, _Surfaces, and nlassert.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::buildSurfacePolygons std::list< std::list< NLMISC::CPolygon > > &   polygons const [inline]
+
+ + + + + +
+   + + +

+Builds the polygons (loops) of all surfaces in the retriever. +

+ +

+Definition at line 322 of file local_retriever.h. +

+References _Surfaces, and buildSurfacePolygons.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::buildSurfacePolygons uint32   surface,
std::list< NLMISC::CPolygon > &   polygons
const
+
+ + + + + +
+   + + +

+Builds the polygons (loops) of a given surface. +

+ +

+Definition at line 619 of file local_retriever.cpp. +

+References _Chains, _OrderedChains, _Surfaces, and NLAISCRIPT::l. +

+Referenced by buildSurfacePolygons.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::computeCollisionChainQuad  
+
+ + + + + +
+   + + +

+compute the chain quad, used for collisions. the ChainQuad is serialised in serial(). _OrderedChains must be OK. +

+ +

+Definition at line 1487 of file local_retriever.cpp. +

+References _ChainQuad, and _OrderedChains.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::computeLoopsAndTips  
+
+ + + + + +
+   + + +

+Builds tips. +

+ +

+Definition at line 423 of file local_retriever.cpp. +

+References _Chains, _Surfaces, _Tips, dumpSurface, getNextChain, getPreviousChain, getStartVector, getStopVector, nlerror, nlinfo, and nlwarning.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::computeTopologies  
+
+ + + + + +
+   + + +

+Builds topologies tables. +

+ +

+Definition at line 726 of file local_retriever.cpp. +

+References _Chains, _Surfaces, _Topologies, nlinfo, and NLPACS::NumCreatureModels.

+

+ + + + +
+ + + + + + + + + + +
float NLPACS::CLocalRetriever::distanceToBorder const ULocalPosition  pos const
+
+ + + + + +
+   + + +

+ +

+Definition at line 266 of file local_retriever.cpp. +

+References _Chains, _OrderedChains, and _Surfaces.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::dumpSurface uint   surf,
const NLMISC::CVector  vect = NLMISC::CVector::Null
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 223 of file local_retriever.cpp. +

+References _Chains, _FullOrderedChains, _OrderedChains, _Surfaces, and nlinfo. +

+Referenced by computeLoopsAndTips.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::findBorderChains  
+
+ + + + + +
+   + + +

+Found chains on the edges of the retriever and fills _BorderChains tables. +

+ +

+Definition at line 686 of file local_retriever.cpp. +

+References _BorderChains, _Chains, and index.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::findPath const CLocalPosition  A,
const CLocalPosition  B,
std::vector< CVector2s > &   path,
NLPACS::CCollisionSurfaceTemp  cst
const
+
+ + + + + +
+   + + +

+Finds a path in a given surface, from the point A to the point B. +

+

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::flushFullOrderedChains   [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 402 of file local_retriever.h. +

+References _FullOrderedChains.

+

+ + + + +
+ + + + + + + + + +
const NLMISC::CAABBox& NLPACS::CLocalRetriever::getBBox   const [inline]
+
+ + + + + +
+   + + +

+Returns the bbox. +

+ +

+Definition at line 301 of file local_retriever.h.

+

+ + + + +
+ + + + + + + + + + +
uint16 NLPACS::CLocalRetriever::getBorderChain uint   n const [inline]
+
+ + + + + +
+   + + +

+Returns the id of the nth chain on the edges of the retriever. +

+ +

+Definition at line 290 of file local_retriever.h. +

+References _BorderChains.

+

+ + + + +
+ + + + + + + + + +
const std::vector<uint16>& NLPACS::CLocalRetriever::getBorderChains   const [inline]
+
+ + + + + +
+   + + +

+Returns the ids of the chains on the edges of the retriever. +

+ +

+Definition at line 288 of file local_retriever.h. +

+References _BorderChains.

+

+ + + + +
+ + + + + + + + + + +
const CChain& NLPACS::CLocalRetriever::getChain uint   n const [inline]
+
+ + + + + +
+   + + +

+retruns the nth chain. +

+ +

+Definition at line 285 of file local_retriever.h. +

+References _Chains.

+

+ + + + +
+ + + + + + + + + +
CChainQuad& NLPACS::CLocalRetriever::getChainQuad   [inline]
+
+ + + + + +
+   + + +

+Returns the chain quad. +

+ +

+Definition at line 373 of file local_retriever.h. +

+References _ChainQuad.

+

+ + + + +
+ + + + + + + + + +
const std::vector<CChain>& NLPACS::CLocalRetriever::getChains   const [inline]
+
+ + + + + +
+   + + +

+Returns the chains. +

+ +

+Definition at line 283 of file local_retriever.h. +

+References _Chains. +

+Referenced by testCollision.

+

+ + + + +
+ + + + + + + + + +
const CExteriorMesh& NLPACS::CLocalRetriever::getExteriorMesh   const [inline]
+
+ + + + + +
+   + + +

+Returns the exterior mesh of the retriever. +

+ +

+Definition at line 304 of file local_retriever.h. +

+References _ExteriorMesh.

+

+ + + + +
+ + + + + + + + + + +
const COrderedChain3f& NLPACS::CLocalRetriever::getFullOrderedChain uint   n const [inline]
+
+ + + + + +
+   + + +

+Returns the nth full ordered chain. +

+ +

+Definition at line 280 of file local_retriever.h. +

+References _FullOrderedChains.

+

+ + + + +
+ + + + + + + + + +
const std::vector<COrderedChain3f>& NLPACS::CLocalRetriever::getFullOrderedChains   const [inline]
+
+ + + + + +
+   + + +

+Returns the full ordered chains. +

+ +

+Definition at line 278 of file local_retriever.h. +

+References _FullOrderedChains.

+

+ + + + +
+ + + + + + + + + + +
float NLPACS::CLocalRetriever::getHeight const ULocalPosition  position const
+
+ + + + + +
+   + + +

+ +

+Definition at line 1174 of file local_retriever.cpp. +

+References _FaceGrid, _InteriorFaces, _InteriorVertices, _Surfaces, _Type, NLPACS::ULocalPosition::Estimation, Interior, NLPACS::ULocalPosition::Surface, v, and NLMISC::CVector::z.

+

+ + + + +
+ + + + + + + + + +
const std::string& NLPACS::CLocalRetriever::getIdentifier   const [inline]
+
+ + + + + +
+   + + +

+Returns the identifier of the retriever. +

+ +

+Definition at line 313 of file local_retriever.h. +

+References _Id.

+

+ + + + +
+ + + + + + + + + +
std::vector<CInteriorFace>& NLPACS::CLocalRetriever::getInteriorFaces   [inline]
+
+ + + + + +
+   + + +

+Returns the interior faces. +

+ +

+Definition at line 366 of file local_retriever.h. +

+References _InteriorFaces.

+

+ + + + +
+ + + + + + + + + +
const std::vector<CInteriorFace>& NLPACS::CLocalRetriever::getInteriorFaces   const [inline]
+
+ + + + + +
+   + + +

+Returns the interior faces. +

+ +

+Definition at line 310 of file local_retriever.h. +

+References _InteriorFaces.

+

+ + + + +
+ + + + + + + + + +
std::vector<NLMISC::CVector>& NLPACS::CLocalRetriever::getInteriorVertices   [inline]
+
+ + + + + +
+   + + +

+Returns the interior vertices. +

+ +

+Definition at line 363 of file local_retriever.h. +

+References _InteriorVertices.

+

+ + + + +
+ + + + + + + + + +
const std::vector<NLMISC::CVector>& NLPACS::CLocalRetriever::getInteriorVertices   const [inline]
+
+ + + + + +
+   + + +

+Returns the interior vertices. +

+ +

+Definition at line 307 of file local_retriever.h. +

+References _InteriorVertices.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
uint32 NLPACS::CLocalRetriever::getNextChain uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 159 of file local_retriever.cpp. +

+References _Chains, and _Surfaces. +

+Referenced by computeLoopsAndTips.

+

+ + + + +
+ + + + + + + + + + +
const COrderedChain& NLPACS::CLocalRetriever::getOrderedChain uint   n const [inline]
+
+ + + + + +
+   + + +

+Returns the nth ordered chain. +

+ +

+Definition at line 275 of file local_retriever.h. +

+References _OrderedChains.

+

+ + + + +
+ + + + + + + + + +
const std::vector<COrderedChain>& NLPACS::CLocalRetriever::getOrderedChains   const [inline]
+
+ + + + + +
+   + + +

+Returns the ordered chains. +

+ +

+Definition at line 273 of file local_retriever.h. +

+References _OrderedChains. +

+Referenced by testCollision.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
uint32 NLPACS::CLocalRetriever::getPreviousChain uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 138 of file local_retriever.cpp. +

+References _Chains, and _Surfaces. +

+Referenced by computeLoopsAndTips.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
uint16 NLPACS::CLocalRetriever::getStartTip uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 105 of file local_retriever.cpp. +

+References _Chains.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
const CVector & NLPACS::CLocalRetriever::getStartVector uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file local_retriever.cpp. +

+References _Chains, and _FullOrderedChains.

+

+ + + + +
+ + + + + + + + + + +
const CVector & NLPACS::CLocalRetriever::getStartVector uint32   chain const
+
+ + + + + +
+   + + +

+ +

+Definition at line 63 of file local_retriever.cpp. +

+References _Chains, and _FullOrderedChains. +

+Referenced by computeLoopsAndTips.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
uint16 NLPACS::CLocalRetriever::getStopTip uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 110 of file local_retriever.cpp. +

+References _Chains.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
const CVector & NLPACS::CLocalRetriever::getStopVector uint32   chain,
sint32   surface
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 90 of file local_retriever.cpp. +

+References _Chains, and _FullOrderedChains.

+

+ + + + +
+ + + + + + + + + + +
const CVector & NLPACS::CLocalRetriever::getStopVector uint32   chain const
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file local_retriever.cpp. +

+References _Chains, and _FullOrderedChains. +

+Referenced by computeLoopsAndTips.

+

+ + + + +
+ + + + + + + + + + +
const CRetrievableSurface& NLPACS::CLocalRetriever::getSurface uint   n const [inline]
+
+ + + + + +
+   + + +

+Returns the nth surface. +

+ +

+Definition at line 295 of file local_retriever.h. +

+References _Surfaces.

+

+ + + + +
+ + + + + + + + + +
const std::vector<CRetrievableSurface>& NLPACS::CLocalRetriever::getSurfaces   const [inline]
+
+ + + + + +
+   + + +

+Returns the surfaces. +

+ +

+Definition at line 293 of file local_retriever.h. +

+References _Surfaces. +

+Referenced by NLPACS::CRetrieverInstance::snap.

+

+ + + + +
+ + + + + + + + + + +
const CTip& NLPACS::CLocalRetriever::getTip uint   n const [inline]
+
+ + + + + +
+   + + +

+Returns the nth tip in the retriever. +

+ +

+Definition at line 270 of file local_retriever.h. +

+References _Tips.

+

+ + + + +
+ + + + + + + + + +
const std::vector<CTip>& NLPACS::CLocalRetriever::getTips   const [inline]
+
+ + + + + +
+   + + +

+Returns the chain tips inside the local retrievers. +

+ +

+Definition at line 268 of file local_retriever.h. +

+References _Tips.

+

+ + + + +
+ + + + + + + + + + +
EType NLPACS::CLocalRetriever::getType void   const [inline]
+
+ + + + + +
+   + + +

+Returns the type of the retriever. +

+ +

+Definition at line 298 of file local_retriever.h. +

+References _Type, and EType.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::initFaceGrid  
+
+ + + + + +
+   + + +

+Inits the face grid. +

+ +

+Definition at line 1091 of file local_retriever.cpp. +

+References _FaceGrid, _InteriorFaces, and _InteriorVertices.

+

+ + + + +
+ + + + + + + + + + +
bool NLPACS::CLocalRetriever::insurePosition ULocalPosition  local const
+
+ + + + + +
+   + + +

+Assures a position is really inside a surface (and independent from any accuracy issue) and returns true if the position was moved. +

+ +

+Definition at line 851 of file local_retriever.cpp. +

+References _Chains, _OrderedChains, _Surfaces, NLPACS::ULocalPosition::Estimation, NLPACS::CRetrievableSurface::getChain, NLPACS::CRetrievableSurface::getChains, NLPACS::COrderedChain::getVertices, InsurePositionThreshold, NLPACS::COrderedChain::isForward, nlassert, nlwarning, NLPACS::CRetrieverInstance::snapVector, NLPACS::ULocalPosition::Surface, NLMISC::CVector::x, and NLMISC::CVector::y.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::retrievePosition NLMISC::CVector   estimated,
CCollisionSurfaceTemp  cst
const
+
+ + + + + +
+   + + +

+Retrieves a position inside the retriever (from the local position), returns true if the position is close to a border. +

+ +

+Definition at line 926 of file local_retriever.cpp. +

+References _BBox, _ChainQuad, _Chains, _OrderedChains, NLMISC::CAABBox::getMax, NLMISC::CAABBox::getMin, min, and NLPACS::Vector2sAccuracy.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::serial NLMISC::IStream  f
+
+ + + + + +
+   + + +

+Serialises the CLocalRetriever. +

+ +

+Definition at line 797 of file local_retriever.cpp. +

+References _BBox, _BorderChains, _ChainQuad, _Chains, _ExteriorMesh, _FaceGrid, _FullOrderedChains, _Id, _InteriorFaces, _InteriorVertices, _OrderedChains, _Surfaces, _Tips, _Topologies, _Type, NLPACS::NumCreatureModels, NLMISC::IStream::serial, NLMISC::IStream::serialCont, NLMISC::IStream::serialEnum, and NLMISC::IStream::serialVersion.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::setBBox const NLMISC::CAABBox  bbox [inline]
+
+ + + + + +
+   + + +

+Sets the bbox of the retriever. +

+ +

+Definition at line 359 of file local_retriever.h.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::setExteriorMesh const CExteriorMesh  em [inline]
+
+ + + + + +
+   + + +

+Sets the exterior mesh. +

+ +

+Definition at line 356 of file local_retriever.h. +

+References _ExteriorMesh.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::setIdentifier const std::string &   id [inline]
+
+ + + + + +
+   + + +

+Returns the identifier of the retriever. +

+ +

+Definition at line 369 of file local_retriever.h. +

+References _Id, and id.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::setStartTip uint32   chain,
sint32   surface,
uint16   startTip
+
+ + + + + +
+   + + +

+ +

+Definition at line 119 of file local_retriever.cpp. +

+References _Chains.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::setStopTip uint32   chain,
sint32   surface,
uint16   stopTip
+
+ + + + + +
+   + + +

+ +

+Definition at line 127 of file local_retriever.cpp. +

+References _Chains.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::setType EType   type [inline]
+
+ + + + + +
+   + + +

+Set the type of the retriever (see EType). +

+ +

+Definition at line 353 of file local_retriever.h. +

+References _Type, EType, and type.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::snapToInteriorGround ULocalPosition  position,
bool &   snapped
const
+
+ + + + + +
+   + + +

+Snaps on the ground. +

+ +

+Definition at line 1111 of file local_retriever.cpp. +

+References _FaceGrid, _InteriorFaces, _InteriorVertices, NLPACS::ULocalPosition::Estimation, NLPACS::ULocalPosition::Surface, v, NLPACS::Vector2sAccuracy, x, and y. +

+Referenced by NLPACS::CRetrieverInstance::snap, and NLPACS::CRetrieverInstance::snapToInteriorGround.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::sortTips  
+
+ + + + + +
+   + + +

+Sorts chains references inside the tips. NOT IMPLEMENTED YET. +

+ +

+Definition at line 679 of file local_retriever.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CLocalRetriever::testCollision CCollisionSurfaceTemp  cst,
const NLMISC::CAABBox  bboxMove,
const NLMISC::CVector2f  transBase
const
+
+ + + + + +
+   + + +

+add possible collisions chains to the temp result. +

+

+Parameters:
+ + + + +
cst  +the temp result to store collision chains. they are appened to cst.CollisionChains.
bboxMove  +the bbox which bounds the movement of the entity.
transBase  +the vector we use to translate local position of edge.
+
+

+Definition at line 1494 of file local_retriever.cpp. +

+References _ChainQuad, NLPACS::CCollisionSurfaceTemp::allocEdgeCollideNode, NLPACS::CCollisionSurfaceTemp::CollisionChains, NLPACS::CCollisionSurfaceTemp::EdgeChainEntries, getChains, NLPACS::CCollisionSurfaceTemp::getEdgeCollideNode, getOrderedChains, and NLPACS::CCollisionSurfaceTemp::OChainLUT.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CLocalRetriever::translate const NLMISC::CVector  translation
+
+ + + + + +
+   + + +

+Translates the local retriever by the translation vector. +

+ +

+Definition at line 786 of file local_retriever.cpp. +

+References _OrderedChains, _Surfaces, and _Tips.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::unify  
+
+ + + + + +
+   + + +

+ +

+Definition at line 183 of file local_retriever.cpp. +

+References _Chains, _FullOrderedChains, _OrderedChains, _Tips, NLPACS::CLocalRetriever::CTip::Chains, nlwarning, and NLPACS::CLocalRetriever::CTip::Point.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CLocalRetriever::updateChainIds  
+
+ + + + + +
+   + + +

+Updates surfaces links from the links contained in the chains... +

+ +

+Definition at line 701 of file local_retriever.cpp. +

+References _Chains, _Surfaces, nlerror, and nlwarning.

+


Friends And Related Function Documentation

+

+ + + + +
+ + +
friend class CRetrieverInstance [friend] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 184 of file local_retriever.h.

+


Member Data Documentation

+

+ + + + +
+ + +
NLMISC::CAABBox NLPACS::CLocalRetriever::_BBox [protected] +
+
+ + + + + +
+   + + +

+The bbox of the local retriever. +

+ +

+Definition at line 197 of file local_retriever.h. +

+Referenced by retrievePosition, and serial.

+

+ + + + +
+ + +
std::vector<uint16> NLPACS::CLocalRetriever::_BorderChains [protected] +
+
+ + + + + +
+   + + +

+The chains on the edges of the zone. +

+ +

+Definition at line 203 of file local_retriever.h. +

+Referenced by findBorderChains, getBorderChain, getBorderChains, and serial.

+

+ + + + +
+ + +
CChainQuad NLPACS::CLocalRetriever::_ChainQuad [protected] +
+
+ + + + + +
+   + + +

+For collisions, the chainquad. +

+ +

+Definition at line 215 of file local_retriever.h. +

+Referenced by computeCollisionChainQuad, getChainQuad, retrievePosition, serial, and testCollision.

+

+ + + + +
+ + +
std::vector<CChain> NLPACS::CLocalRetriever::_Chains [protected] +
+
+ + + + + +
+   + + +

+The chains insinde the zone. +

+ +

+Definition at line 191 of file local_retriever.h. +

+Referenced by buildSurfacePolygons, computeLoopsAndTips, computeTopologies, distanceToBorder, dumpSurface, findBorderChains, getChain, getChains, getNextChain, getPreviousChain, getStartTip, getStartVector, getStopTip, getStopVector, insurePosition, retrievePosition, serial, setStartTip, setStopTip, unify, and updateChainIds.

+

+ + + + +
+ + +
const float NLPACS::CLocalRetriever::_EdgeTipThreshold = 0.1f [static, protected] +
+
+ + + + + +
+   + + +

+The tip recognition threshold. +

+ +

+Definition at line 41 of file local_retriever.cpp.

+

+ + + + +
+ + +
CExteriorMesh NLPACS::CLocalRetriever::_ExteriorMesh [protected] +
+
+ + + + + +
+   + + +

+The exterior mesh, for collisions. +

+ +

+Definition at line 223 of file local_retriever.h. +

+Referenced by getExteriorMesh, serial, setExteriorMesh, and NLPACS::CRetrieverInstance::testExteriorCollision.

+

+ + + + +
+ + +
CFaceGrid NLPACS::CLocalRetriever::_FaceGrid [protected] +
+
+ + + + + +
+   + + +

+The face selection grid. +

+ +

+Definition at line 232 of file local_retriever.h. +

+Referenced by CLocalRetriever, getHeight, initFaceGrid, serial, and snapToInteriorGround.

+

+ + + + +
+ + +
std::vector<COrderedChain3f> NLPACS::CLocalRetriever::_FullOrderedChains [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 188 of file local_retriever.h. +

+Referenced by dumpSurface, flushFullOrderedChains, getFullOrderedChain, getFullOrderedChains, getStartVector, getStopVector, serial, and unify.

+

+ + + + +
+ + +
std::string NLPACS::CLocalRetriever::_Id [protected] +
+
+ + + + + +
+   + + +

+An human readable identifier of the retriever. +

+ +

+Definition at line 235 of file local_retriever.h. +

+Referenced by getIdentifier, serial, and setIdentifier.

+

+ + + + +
+ + +
std::vector<CInteriorFace> NLPACS::CLocalRetriever::_InteriorFaces [protected] +
+
+ + + + + +
+   + + +

+The faces of the collision mesh. +

+ +

+Definition at line 229 of file local_retriever.h. +

+Referenced by buildInteriorSurfaceBBoxes, getHeight, getInteriorFaces, initFaceGrid, serial, and snapToInteriorGround.

+

+ + + + +
+ + +
std::vector<NLMISC::CVector> NLPACS::CLocalRetriever::_InteriorVertices [protected] +
+
+ + + + + +
+   + + +

+The vertices of the collision mesh. +

+ +

+Definition at line 226 of file local_retriever.h. +

+Referenced by buildInteriorSurfaceBBoxes, getHeight, getInteriorVertices, initFaceGrid, serial, and snapToInteriorGround.

+

+ + + + +
+ + +
std::vector<COrderedChain> NLPACS::CLocalRetriever::_OrderedChains [protected] +
+
+ + + + + +
+   + + +

+The chains insinde the zone. +

+ +

+Definition at line 187 of file local_retriever.h. +

+Referenced by buildSurfacePolygons, computeCollisionChainQuad, distanceToBorder, dumpSurface, getOrderedChain, getOrderedChains, insurePosition, retrievePosition, serial, translate, and unify.

+

+ + + + +
+ + +
std::vector<CRetrievableSurface> NLPACS::CLocalRetriever::_Surfaces [protected] +
+
+ + + + + +
+   + + +

+The surfaces inside the zone. +

+ +

+Definition at line 194 of file local_retriever.h. +

+Referenced by addSurface, buildInteriorSurfaceBBoxes, buildSurfacePolygons, computeLoopsAndTips, computeTopologies, distanceToBorder, dumpSurface, getHeight, getNextChain, getPreviousChain, getSurface, getSurfaces, insurePosition, serial, translate, and updateChainIds.

+

+ + + + +
+ + +
std::vector<CTip> NLPACS::CLocalRetriever::_Tips [protected] +
+
+ + + + + +
+   + + +

+The tips making links between different chains. +

+ +

+Definition at line 200 of file local_retriever.h. +

+Referenced by computeLoopsAndTips, getTip, getTips, serial, translate, and unify.

+

+ + + + +
+ + +
const float NLPACS::CLocalRetriever::_TipThreshold = 0.1f [static, protected] +
+
+ + + + + +
+   + + +

+The tip recognition threshold. +

+ +

+Definition at line 40 of file local_retriever.cpp.

+

+ + + + +
+ + +
std::vector<CTopology> NLPACS::CLocalRetriever::_Topologies[NumCreatureModels] [protected] +
+
+ + + + + +
+   + + +

+The topologies within the zone. +

+ +

+Definition at line 206 of file local_retriever.h. +

+Referenced by computeTopologies, and serial.

+

+ + + + +
+ + +
EType NLPACS::CLocalRetriever::_Type [protected] +
+
+ + + + + +
+   + + +

+The type of the retriever. +

+ +

+Definition at line 218 of file local_retriever.h. +

+Referenced by CLocalRetriever, getHeight, getType, serial, and setType.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1