|
|
|
|
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 () |
| 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) |
| 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) |
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) |
| 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) |
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) |
| 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...
|
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 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 (
|
) [inline]
|
|
uint32 NL3D::CPrimitiveBlock::capacityQuad (
|
) [inline]
|
|
uint32 NL3D::CPrimitiveBlock::capacityTri (
|
) [inline]
|
|
uint32 * NL3D::CPrimitiveBlock::getLinePointer (
|
void )
|
|
uint32 NL3D::CPrimitiveBlock::getNumLine (
|
void ) [inline]
|
|
uint32 NL3D::CPrimitiveBlock::getNumQuad (
|
void ) [inline]
|
|
uint32 NL3D::CPrimitiveBlock::getNumTri (
|
void ) [inline]
|
|
uint32 * NL3D::CPrimitiveBlock::getQuadPointer (
|
void )
|
|
uint32 * NL3D::CPrimitiveBlock::getTriPointer (
|
void )
|
|
void NL3D::CPrimitiveBlock::reserveLine (
|
uint32 n )
|
|
|
reserve space for nLines Line. You are allowed to write your Line indices on this space.
Definition at line 45 of file primitive_block.cpp. |
void NL3D::CPrimitiveBlock::reserveQuad (
|
uint32 n )
|
|
void NL3D::CPrimitiveBlock::reserveTri (
|
uint32 n )
|
|
|
reserve space for nTris triangles. You are allowed to write your triangles indices on this space.
Definition at line 89 of file primitive_block.cpp. |
void NL3D::CPrimitiveBlock::setLine (
|
uint lineIdx,
|
|
uint32 vidx0,
|
|
uint32 vidx1 )
|
|
void NL3D::CPrimitiveBlock::setNumLine (
|
uint32 n )
|
|
|
Set the number of active Line. It enlarge Line capacity, if needed.
Definition at line 50 of file primitive_block.cpp. |
void NL3D::CPrimitiveBlock::setNumQuad (
|
uint32 n )
|
|
|
Set the number of active quads.
It enlarges Quad capacity, if needed.
Definition at line 148 of file primitive_block.cpp. |
void NL3D::CPrimitiveBlock::setNumTri (
|
uint32 n )
|
|
|
Set the number of active triangles. It enlarge Tri capacity, if needed.
Definition at line 94 of file primitive_block.cpp. |
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:
|
|