|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLPACS::CRetrievableSurface Class ReferenceA retrievable surface (inside a local surface retriever).
More...
#include <retrievable_surface.h>
List of all members.
Public Types |
enum | {
IsFloorBit = 24,
IsSlantBit = 25,
IsCeilingBit = 26,
IsUnderWaterBit = 27,
NormalQuantasStartBit = 0,
NormalQuantasStopBit = 3,
NormalQuantasBitMask = 0x0000000f,
CharacterQuantasStartBit = 8,
CharacterQuantasStopBit = 11,
CharacterQuantasBitMask = 0x00000f00,
MaterialQuantasStartBit = 16,
MaterialQuantasStopBit = 23,
MaterialQuantasBitMask = 0x00ff0000
} |
Public Methods |
| CRetrievableSurface () |
uint8 | getNormalQuanta () const |
uint8 | getOrientationQuanta () const |
uint8 | getMaterial () const |
uint8 | getCharacter () const |
uint8 | getLevel () const |
bool | isFloor () const |
bool | isCeiling () const |
const CSurfaceQuadTree & | getQuadTree () const |
sint32 | getTopology (uint model) const |
uint32 | getFlags () const |
float | getWaterHeight () const |
const std::vector< CSurfaceLink > & | getChains () const |
| Gets links from this surface to its neighbors through chains... More...
|
CSurfaceLink | getChain (uint n) const |
| Gets nth link form this surface to its neighbor. More...
|
const NLMISC::CVector & | getCenter () const |
void | translate (const NLMISC::CVector &translation) |
| Translates the surface by the translation vector. More...
|
void | serial (NLMISC::IStream &f) |
| Serialises the CRetrievableSurface. More...
|
Protected Attributes |
uint32 | _Flags |
| Various flags. More...
|
float | _WaterHeight |
std::vector< CSurfaceLink > | _Chains |
| The links to the neighbor surfaces. More...
|
std::vector< TLoop > | _Loops |
| The loops of chains. More...
|
CSurfaceQuadTree | _Quad |
| A Height QuadTree that allows to easily find the height out for a given 2D point. More...
|
sint32 | _Topologies [NumCreatureModels] |
| The topologies associated with the surface, for each type of model. More...
|
NLMISC::CVector | _Center |
| The center of the surface. More...
|
|
uint8 | _NormalQuanta |
uint8 | _OrientationQuanta |
uint8 | _Material |
uint8 | _Character |
uint8 | _Level |
bool | _IsFloor |
bool | _IsCeiling |
Friends |
class | CLocalRetriever |
Detailed Description
A retrievable surface (inside a local surface retriever).
It is composed of the Ids of the chains composing the border of the surface. -
Author:
-
Benjamin Legros , Nevrax France
-
Date:
-
2001
Definition at line 67 of file retrievable_surface.h.
Member Enumeration Documentation
|
-
Enumeration values:
-
IsFloorBit |
|
IsSlantBit |
|
IsCeilingBit |
|
IsUnderWaterBit |
|
NormalQuantasStartBit |
|
NormalQuantasStopBit |
|
NormalQuantasBitMask |
|
CharacterQuantasStartBit |
|
CharacterQuantasStopBit |
|
CharacterQuantasBitMask |
|
MaterialQuantasStartBit |
|
MaterialQuantasStopBit |
|
MaterialQuantasBitMask |
|
Definition at line 92 of file retrievable_surface.h. |
Constructor & Destructor Documentation
NLPACS::CRetrievableSurface::CRetrievableSurface |
( |
|
) |
[inline] |
|
Member Function Documentation
const NLMISC::CVector& NLPACS::CRetrievableSurface::getCenter |
( |
|
) |
const [inline] |
|
const std::vector<CSurfaceLink>& NLPACS::CRetrievableSurface::getChains |
( |
|
) |
const [inline] |
|
uint8 NLPACS::CRetrievableSurface::getCharacter |
( |
|
) |
const [inline] |
|
uint32 NLPACS::CRetrievableSurface::getFlags |
( |
|
) |
const [inline] |
|
uint8 NLPACS::CRetrievableSurface::getLevel |
( |
|
) |
const [inline] |
|
uint8 NLPACS::CRetrievableSurface::getMaterial |
( |
|
) |
const [inline] |
|
uint8 NLPACS::CRetrievableSurface::getNormalQuanta |
( |
|
) |
const [inline] |
|
uint8 NLPACS::CRetrievableSurface::getOrientationQuanta |
( |
|
) |
const [inline] |
|
const CSurfaceQuadTree& NLPACS::CRetrievableSurface::getQuadTree |
( |
|
) |
const [inline] |
|
sint32 NLPACS::CRetrievableSurface::getTopology |
( |
uint |
model |
) |
const [inline] |
|
float NLPACS::CRetrievableSurface::getWaterHeight |
( |
|
) |
const [inline] |
|
bool NLPACS::CRetrievableSurface::isCeiling |
( |
|
) |
const [inline] |
|
bool NLPACS::CRetrievableSurface::isFloor |
( |
|
) |
const [inline] |
|
|
Serialises the CRetrievableSurface.
Definition at line 42 of file retrievable_surface.cpp.
References _Center, _Chains, _Character, _Flags, _IsCeiling, _IsFloor, _Level, _Loops, _Material, _NormalQuanta, _OrientationQuanta, _Quad, _Topologies, _WaterHeight, and NLPACS::NumCreatureModels. |
void NLPACS::CRetrievableSurface::translate |
( |
const NLMISC::CVector & |
translation |
) |
[inline] |
|
Friends And Related Function Documentation
friend class CLocalRetriever [friend]
|
|
Member Data Documentation
std::vector<CSurfaceLink> NLPACS::CRetrievableSurface::_Chains [protected]
|
|
uint8 NLPACS::CRetrievableSurface::_Character [protected]
|
|
uint32 NLPACS::CRetrievableSurface::_Flags [protected]
|
|
bool NLPACS::CRetrievableSurface::_IsCeiling [protected]
|
|
bool NLPACS::CRetrievableSurface::_IsFloor [protected]
|
|
uint8 NLPACS::CRetrievableSurface::_Level [protected]
|
|
std::vector<TLoop> NLPACS::CRetrievableSurface::_Loops [protected]
|
|
uint8 NLPACS::CRetrievableSurface::_Material [protected]
|
|
uint8 NLPACS::CRetrievableSurface::_NormalQuanta [protected]
|
|
uint8 NLPACS::CRetrievableSurface::_OrientationQuanta [protected]
|
|
sint32 NLPACS::CRetrievableSurface::_Topologies[NumCreatureModels] [protected]
|
|
float NLPACS::CRetrievableSurface::_WaterHeight [protected]
|
|
The documentation for this class was generated from the following files:
|
|