#include <chain.h>
Nevrax France
Definition at line 48 of file chain.h.
Public Member Functions | |
| uint16 | getIndexInParent () const |
| Returns the index of the ochain within the parent chain. | |
| uint16 | getParentId () const |
| Returns the parent chain Id of this ordered chain. | |
| const std::vector< NLMISC::CVector > & | getVertices () const |
| Returns the vertices of the chain. | |
| bool | isForward () const |
| Returns true if the chain should be accessed forward within the parent CChain (see _Forward.). | |
| const NLMISC::CVector & | operator[] (uint n) const |
| void | serial (NLMISC::IStream &f) |
| void | translate (const NLMISC::CVector &translation) |
| void | unpack (const COrderedChain &ochain) |
Protected Attributes | |
| bool | _Forward |
| Set if the chain should be read forward within the parent CChain (for sequential access to vertices.). | |
| uint16 | _IndexInParent |
| The index of the ochain within the parent chain. | |
| uint16 | _ParentId |
| The parent chain Id. | |
| std::vector< NLMISC::CVector > | _Vertices |
| The vertices of the chain, ordered following x growth. | |
Friends | |
| class | CChain |
| class | CRetrievableSurface |
|
|
Returns the index of the ochain within the parent chain.
Definition at line 77 of file chain.h. References _IndexInParent, and uint16. Referenced by NLPACS::CLocalRetriever::dumpSurface(), and NLPACS::COrderedChain::pack().
00077 { return _IndexInParent; }
|
|
|
Returns the parent chain Id of this ordered chain.
Definition at line 74 of file chain.h. References _ParentId, and uint16. Referenced by NLPACS::CLocalRetriever::dumpSurface(), and NLPACS::COrderedChain::pack().
00074 { return _ParentId; }
|
|
|
Returns the vertices of the chain.
Definition at line 68 of file chain.h. Referenced by NLPACS::CLocalRetriever::build3dSurfacePolygons(), NLPACS::CLocalRetriever::dumpSurface(), NLPACS::CLocalRetriever::getStartVector(), NLPACS::CLocalRetriever::getStopVector(), NLPACS::linkExteriorToInterior(), and NLPACS::COrderedChain::pack().
00068 { return _Vertices; }
|
|
|
Returns true if the chain should be accessed forward within the parent CChain (see _Forward.).
Definition at line 71 of file chain.h. References _Forward. Referenced by NLPACS::CLocalRetriever::build3dSurfacePolygons(), NLPACS::CLocalRetriever::dumpSurface(), NLPACS::CLocalRetriever::getStartVector(), NLPACS::CLocalRetriever::getStopVector(), and NLPACS::COrderedChain::pack().
00071 { return _Forward; }
|
|
|
Definition at line 80 of file chain.h. References uint.
00080 { return _Vertices[n]; }
|
|
|
Definition at line 64 of file chain.cpp. References _Forward, _IndexInParent, _ParentId, NLMISC::IStream::serial(), NLMISC::IStream::serialCont(), and NLMISC::IStream::serialVersion().
00065 {
00066 /*
00067 Version 0:
00068 - base version.
00069 */
00070 (void)f.serialVersion(0);
00071
00072 f.serialCont(_Vertices);
00073 f.serial(_Forward);
00074 f.serial(_ParentId);
00075 f.serial(_IndexInParent);
00076 }
|
|
|
Definition at line 86 of file chain.h. References uint.
|
|
|
Definition at line 330 of file chain.h. References _Forward, _IndexInParent, _ParentId, NLPACS::COrderedChain::getIndexInParent(), NLPACS::COrderedChain::getParentId(), NLPACS::COrderedChain::getVertices(), NLPACS::COrderedChain::isForward(), uint, and z.
00331 {
00332 uint i, mx;
00333 const std::vector<CVector2s> &vertices = chain.getVertices();
00334 mx = _Vertices.size();
00335 _Vertices.resize(vertices.size());
00336 _Forward = chain.isForward();
00337 _ParentId = chain.getParentId();
00338 _IndexInParent = chain.getIndexInParent();
00339 for (i=0; i<vertices.size(); ++i)
00340 {
00341 _Vertices[i] = vertices[i].unpack3f(i >= mx ? 0.0f : _Vertices[i].z);
00342 }
00343 }
|
|
|
|
|
|
|
|
|
Set if the chain should be read forward within the parent CChain (for sequential access to vertices.).
Definition at line 58 of file chain.h. Referenced by isForward(), NLPACS::CChain::make(), serial(), and unpack(). |
|
|
The index of the ochain within the parent chain.
Definition at line 64 of file chain.h. Referenced by getIndexInParent(), NLPACS::CChain::make(), serial(), and unpack(). |
|
|
The parent chain Id.
Definition at line 61 of file chain.h. Referenced by getParentId(), NLPACS::CChain::make(), serial(), and unpack(). |
|
|
The vertices of the chain, ordered following x growth.
Definition at line 55 of file chain.h. Referenced by NLPACS::CChain::make(). |
1.3.6