# 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  

NL3D::CPrimitiveBlock Class Reference

Class 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...

uint32getLinePointer (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...

uint32getTriPointer (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...

uint32getQuadPointer (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]
 

Definition at line 72 of file primitive_block.h.

NL3D::CPrimitiveBlock::~CPrimitiveBlock ( void ) [inline]
 

Definition at line 74 of file primitive_block.h.


Member Function Documentation

void NL3D::CPrimitiveBlock::addLine ( uint32 vidx0,
uint32 vidx1 )
 

Apend a line at getNumLine() (then resize +1 the numline).

Definition at line 69 of file primitive_block.cpp.

void NL3D::CPrimitiveBlock::addQuad ( uint32 vidx0,
uint32 vidx1,
uint32 vidx2,
uint32 vidx3 )
 

Apend a quad at getNumQuad() (then resize +1 the numquad).

Definition at line 179 of file primitive_block.cpp.

void NL3D::CPrimitiveBlock::addTri ( uint32 vidx0,
uint32 vidx1,
uint32 vidx2 )
 

Apend a triangle at getNumTri() (then resize +1 the numtri).

Definition at line 115 of file primitive_block.cpp.

uint32 NL3D::CPrimitiveBlock::capacityLine ( ) [inline]
 

Return the number of Line reserved.

Definition at line 82 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::capacityQuad ( ) [inline]
 

Return the number of triangles reserved.

Definition at line 127 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::capacityTri ( ) [inline]
 

Return the number of triangles reserved.

Definition at line 102 of file primitive_block.h.

uint32 * NL3D::CPrimitiveBlock::getLinePointer ( void )
 

Definition at line 36 of file primitive_block.cpp.

uint32 NL3D::CPrimitiveBlock::getNumLine ( void ) [inline]
 

Get the number of active Lineangles.

Definition at line 86 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::getNumQuad ( void ) [inline]
 

Get the number of active quads.

Definition at line 137 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::getNumTri ( void ) [inline]
 

Get the number of active triangles.

Definition at line 106 of file primitive_block.h.

uint32 * NL3D::CPrimitiveBlock::getQuadPointer ( void )
 

Return the Quad buffer.

Definition at line 126 of file primitive_block.cpp.

uint32 * NL3D::CPrimitiveBlock::getTriPointer ( void )
 

Definition at line 80 of file primitive_block.cpp.

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 )
 

reserve space for quads.

Definition at line 138 of file primitive_block.cpp.

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::serial ( NLMISC::IStream & f )
 

Definition at line 190 of file primitive_block.cpp.

void NL3D::CPrimitiveBlock::setLine ( uint lineIdx,
uint32 vidx0,
uint32 vidx1 )
 

Build a Lineangle.

Definition at line 58 of file primitive_block.cpp.

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.

void NL3D::CPrimitiveBlock::setQuad ( uint quadIdx,
uint32 vidx0,
uint32 vidx1,
uint32 vidx2,
uint32 vidx3 )
 

Build a quad.

Definition at line 161 of file primitive_block.cpp.

void NL3D::CPrimitiveBlock::setTri ( uint triIdx,
uint32 vidx0,
uint32 vidx1,
uint32 vidx2 )
 

Build a triangle.

Definition at line 102 of file primitive_block.cpp.


Member Data Documentation

uint32 * NL3D::CPrimitiveBlock::_Fan [private]
 

Definition at line 70 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_FanIdx [private]
 

Definition at line 69 of file primitive_block.h.

std::vector< uint32 > NL3D::CPrimitiveBlock::_Line [private]
 

Definition at line 64 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_LineCapacity [private]
 

Definition at line 63 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_NbLines [private]
 

Definition at line 62 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_NbQuads [private]
 

Definition at line 57 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_NbTris [private]
 

Definition at line 52 of file primitive_block.h.

std::vector< uint32 > NL3D::CPrimitiveBlock::_Quad [private]
 

Definition at line 59 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_QuadCapacity [private]
 

Definition at line 58 of file primitive_block.h.

uint32 * NL3D::CPrimitiveBlock::_Strip [private]
 

Definition at line 68 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_StripIdx [private]
 

Definition at line 67 of file primitive_block.h.

std::vector< uint32 > NL3D::CPrimitiveBlock::_Tri [private]
 

Definition at line 54 of file primitive_block.h.

uint32 NL3D::CPrimitiveBlock::_TriCapacity [private]
 

Definition at line 53 of file primitive_block.h.


The documentation for this class was generated from the following files: