|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPrimitiveBlock Class ReferenceClass CPrimitiveBlock.
More...
#include <primitive_block.h>
List of all members.
Public Methods |
| CPrimitiveBlock (void) |
| ~CPrimitiveBlock (void) |
void | reserveLine (uint32 n) |
| reserve space for nLines Line. You are allowed to write your Line indices on this space. More...
|
uint32 | capacityLine () const |
| Return the number of Line reserved. More...
|
void | setNumLine (uint32 n) |
| Set the number of active Line. It enlarge Line capacity, if needed. More...
|
uint32 | getNumLine (void) const |
| Get the number of active Lineangles. More...
|
void | setLine (uint lineIdx, uint32 vidx0, uint32 vidx1) |
| Build a Lineangle. More...
|
void | addLine (uint32 vidx0, uint32 vidx1) |
| Apend a line at getNumLine() (then resize +1 the numline). More...
|
uint32 * | getLinePointer (void) |
const uint32 * | getLinePointer (void) const |
void | reserveTri (uint32 n) |
| reserve space for nTris triangles. You are allowed to write your triangles indices on this space. More...
|
uint32 | capacityTri () |
| Return the number of triangles reserved. More...
|
void | setNumTri (uint32 n) |
| Set the number of active triangles. It enlarge Tri capacity, if needed. More...
|
uint32 | getNumTri (void) const |
| Get the number of active triangles. More...
|
void | setTri (uint triIdx, uint32 vidx0, uint32 vidx1, uint32 vidx2) |
| Build a triangle. More...
|
void | addTri (uint32 vidx0, uint32 vidx1, uint32 vidx2) |
| Apend a triangle at getNumTri() (then resize +1 the numtri). More...
|
uint32 * | getTriPointer (void) |
const uint32 * | getTriPointer (void) const |
void | reserveQuad (uint32 n) |
| reserve space for quads. More...
|
uint32 | capacityQuad () |
| Return the number of triangles reserved. More...
|
void | setNumQuad (uint32 n) |
| Set the number of active quads. More...
|
uint32 | getNumQuad (void) const |
| Get the number of active quads. More...
|
void | setQuad (uint quadIdx, uint32 vidx0, uint32 vidx1, uint32 vidx2, uint32 vidx3) |
| Build a quad. More...
|
void | addQuad (uint32 vidx0, uint32 vidx1, uint32 vidx2, uint32 vidx3) |
| Apend a quad at getNumQuad() (then resize +1 the numquad). More...
|
uint32 * | getQuadPointer (void) |
| Return the Quad buffer. More...
|
const uint32 * | getQuadPointer (void) const |
| return the quad buffer, const version. More...
|
uint32 | getNumTriangles () |
| return total number of triangle in this primitive block. More...
|
void | serial (NLMISC::IStream &f) |
Private Attributes |
uint32 | _NbTris |
uint32 | _TriCapacity |
std::vector< uint32 > | _Tri |
uint32 | _NbQuads |
uint32 | _QuadCapacity |
std::vector< uint32 > | _Quad |
uint32 | _NbLines |
uint32 | _LineCapacity |
std::vector< uint32 > | _Line |
uint32 | _StripIdx |
uint32 * | _Strip |
uint32 | _FanIdx |
uint32 * | _Fan |
Detailed Description
Class CPrimitiveBlock.
Definition at line 48 of file 3d/primitive_block.h.
Constructor & Destructor Documentation
NL3D::CPrimitiveBlock::CPrimitiveBlock |
( |
void |
|
) |
[inline] |
|
NL3D::CPrimitiveBlock::~CPrimitiveBlock |
( |
void |
|
) |
[inline] |
|
Member Function Documentation
void NL3D::CPrimitiveBlock::addLine |
( |
uint32 |
vidx0, |
|
|
uint32 |
vidx1 |
|
) |
|
|
uint32 NL3D::CPrimitiveBlock::capacityLine |
( |
|
) |
const [inline] |
|
uint32 NL3D::CPrimitiveBlock::capacityQuad |
( |
|
) |
[inline] |
|
uint32 NL3D::CPrimitiveBlock::capacityTri |
( |
|
) |
[inline] |
|
const uint32 * NL3D::CPrimitiveBlock::getLinePointer |
( |
void |
|
) |
const |
|
uint32 * NL3D::CPrimitiveBlock::getLinePointer |
( |
void |
|
) |
|
|
uint32 NL3D::CPrimitiveBlock::getNumLine |
( |
void |
|
) |
const [inline] |
|
uint32 NL3D::CPrimitiveBlock::getNumQuad |
( |
void |
|
) |
const [inline] |
|
uint32 NL3D::CPrimitiveBlock::getNumTri |
( |
void |
|
) |
const [inline] |
|
uint32 NL3D::CPrimitiveBlock::getNumTriangles |
( |
|
) |
[inline] |
|
const uint32 * NL3D::CPrimitiveBlock::getQuadPointer |
( |
void |
|
) |
const |
|
uint32 * NL3D::CPrimitiveBlock::getQuadPointer |
( |
void |
|
) |
|
|
const uint32 * NL3D::CPrimitiveBlock::getTriPointer |
( |
void |
|
) |
const |
|
uint32 * NL3D::CPrimitiveBlock::getTriPointer |
( |
void |
|
) |
|
|
void NL3D::CPrimitiveBlock::reserveLine |
( |
uint32 |
n |
) |
|
|
void NL3D::CPrimitiveBlock::reserveQuad |
( |
uint32 |
n |
) |
|
|
void NL3D::CPrimitiveBlock::reserveTri |
( |
uint32 |
n |
) |
|
|
|
Definition at line 219 of file primitive_block.cpp.
References _Line, _LineCapacity, _NbLines, _NbQuads, _NbTris, _Quad, _QuadCapacity, _Tri, _TriCapacity, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion. |
void NL3D::CPrimitiveBlock::setLine |
( |
uint |
lineIdx, |
|
|
uint32 |
vidx0, |
|
|
uint32 |
vidx1 |
|
) |
|
|
void NL3D::CPrimitiveBlock::setNumLine |
( |
uint32 |
n |
) |
|
|
void NL3D::CPrimitiveBlock::setNumQuad |
( |
uint32 |
n |
) |
|
|
void NL3D::CPrimitiveBlock::setNumTri |
( |
uint32 |
n |
) |
|
|
Member Data Documentation
uint32* NL3D::CPrimitiveBlock::_Fan [private]
|
|
uint32 NL3D::CPrimitiveBlock::_FanIdx [private]
|
|
std::vector<uint32> NL3D::CPrimitiveBlock::_Line [private]
|
|
uint32 NL3D::CPrimitiveBlock::_LineCapacity [private]
|
|
uint32 NL3D::CPrimitiveBlock::_NbLines [private]
|
|
uint32 NL3D::CPrimitiveBlock::_NbQuads [private]
|
|
uint32 NL3D::CPrimitiveBlock::_NbTris [private]
|
|
std::vector<uint32> NL3D::CPrimitiveBlock::_Quad [private]
|
|
uint32 NL3D::CPrimitiveBlock::_QuadCapacity [private]
|
|
uint32* NL3D::CPrimitiveBlock::_Strip [private]
|
|
uint32 NL3D::CPrimitiveBlock::_StripIdx [private]
|
|
std::vector<uint32> NL3D::CPrimitiveBlock::_Tri [private]
|
|
uint32 NL3D::CPrimitiveBlock::_TriCapacity [private]
|
|
The documentation for this class was generated from the following files:
|
|