MeshBuffer
#include <MeshBuffer.h>
Public Member Functions | |
MeshBuffer (HTMesh *mesh) | |
int | append (Trixel trixel) |
const Trixel * | buffer () const |
int | error () const |
void | fill () |
void | reset () |
int | size () const |
Detailed Description
The sole purpose of a MeshBuffer is to hold storage space for the results of an HTM inetersection and then allow multiple MeshIterator's to walk through the result set.
The buffer space is allocated when the MeshBuffer is created. Mesh buffers will usually hang around for the life of an HTMesh. Each mesh buffer is re-usable. Simply reset() it and then fill it by append()'ing trixels. A MeshIterator grabs the size() and the buffer() so it can iterate over the results.
Definition at line 23 of file MeshBuffer.h.
Constructor & Destructor Documentation
◆ MeshBuffer()
MeshBuffer::MeshBuffer | ( | HTMesh * | mesh | ) |
Definition at line 7 of file MeshBuffer.cpp.
◆ ~MeshBuffer()
MeshBuffer::~MeshBuffer | ( | ) |
Definition at line 21 of file MeshBuffer.cpp.
Member Function Documentation
◆ append()
int MeshBuffer::append | ( | Trixel | trixel | ) |
add trixels to the buffer
Definition at line 26 of file MeshBuffer.cpp.
◆ buffer()
|
inline |
the location of the buffer for reading
Definition at line 40 of file MeshBuffer.h.
◆ error()
|
inline |
returns the number of trixels that would have overflowed the buffer.
Definition at line 49 of file MeshBuffer.h.
◆ fill()
void MeshBuffer::fill | ( | ) |
fills the buffer with consecutive integers
Definition at line 37 of file MeshBuffer.cpp.
◆ reset()
|
inline |
prepare the buffer for a new result set
Definition at line 32 of file MeshBuffer.h.
◆ size()
|
inline |
the number of trixels in the result set
Definition at line 44 of file MeshBuffer.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.