Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

sfl::Stream Class Reference

#include <api.h>

Inheritance diagram for sfl::Stream:

sfl::InStream sfl::OutStream List of all members.

Public Methods

void setMatrixApiRowMajor (void)
void setMatrixApiColumnMajor (void)

Protected Methods

uint32 fillRwBuffer (void)
 Reads at max rwBufferSize bytes from the gff stream. More...

uint32 flushRwBuffer0 (void)
 Writes rwBuffer[0] to the gff stream. More...

uint32 flushRwBuffer (void)
 Writes both buffers to the gff stream. More...

void apiSwapMat4x4 (float mat[16]) const
void apiSwapMat4x4 (double mat[16]) const
void apiSwapMat4x4ToTemp4x4 (float temp[16], const float mat[16]) const
void apiSwapMat4x4ToTemp4x4 (double temp[16], const double mat[16]) const
bool apiGetTransform4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetTransform4x4 (const double *src, double *mat, bool internal=false) const
bool apiGetInvTransform4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetInvTransform4x4 (const double *src, double *mat, bool internal=false) const
bool apiGetRotation4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetRotation4x4 (const double *src, double *mat, bool internal=false) const
bool apiGetScalationRotation4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetScalationRotation4x4 (const double *src, double *mat, bool internal=false) const
bool apiGetTranslation4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetTranslation4x4 (const double *src, double *mat, bool internal=false) const
bool apiGetScalationTranslation4x4 (const double *src, float *mat, bool internal=false) const
bool apiGetScalationTranslation4x4 (const double *src, double *mat, bool internal=false) const
 Stream ()
 ~Stream ()

Protected Attributes

gff_filegff
KillerSurfel surfelBuffer
size_t rwBufferSize
uint8 * rwBuffer [2]
 Two buffers of size rwBufferSize. rwBuffer[1] follows directly rwBuffer[0]. More...

uint8 * rwBufferHead
 Buffer write position. More...

uint8 * rwBufferTail
 Buffer read position. More...

bool apiRowMajorMatrices

Constructor & Destructor Documentation

Stream::Stream   [protected]
 

Definition at line 68 of file stream.cpp.

References BUFFER_HALF_SIZE, rwBuffer, rwBufferHead, rwBufferSize, and rwBufferTail.

Stream::~Stream   [protected]
 

Definition at line 79 of file stream.cpp.

References gff, and gff_close.


Member Function Documentation

bool Stream::apiGetInvTransform4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 174 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetInvTransform4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 166 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetRotation4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 193 of file stream.cpp.

References apiGetScalationRotation4x4, and apiSwapMat4x4.

bool Stream::apiGetRotation4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 181 of file stream.cpp.

References apiGetScalationRotation4x4, and apiSwapMat4x4.

Referenced by apiGetScalationTranslation4x4.

bool Stream::apiGetScalationRotation4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 224 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetScalationRotation4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 205 of file stream.cpp.

References apiSwapMat4x4.

Referenced by apiGetRotation4x4.

bool Stream::apiGetScalationTranslation4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 275 of file stream.cpp.

References apiGetRotation4x4, apiSwapMat4x4, sflMat::mulMat32Inv32, and sflMat::updateInverse.

bool Stream::apiGetScalationTranslation4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 263 of file stream.cpp.

References apiGetRotation4x4, apiSwapMat4x4, sflMat::mulMat32Inv32, and sflMat::updateInverse.

bool Stream::apiGetTransform4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 159 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetTransform4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 151 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetTranslation4x4 const double *    src,
double *    mat,
bool    internal = false
const [protected]
 

Definition at line 253 of file stream.cpp.

References apiSwapMat4x4.

bool Stream::apiGetTranslation4x4 const double *    src,
float *    mat,
bool    internal = false
const [protected]
 

Definition at line 243 of file stream.cpp.

References apiSwapMat4x4.

void Stream::apiSwapMat4x4 double    mat[16] const [protected]
 

Definition at line 92 of file stream.cpp.

References apiRowMajorMatrices.

void Stream::apiSwapMat4x4 float    mat[16] const [protected]
 

Definition at line 86 of file stream.cpp.

References apiRowMajorMatrices.

Referenced by apiGetInvTransform4x4, apiGetRotation4x4, apiGetScalationRotation4x4, apiGetScalationTranslation4x4, apiGetTransform4x4, and apiGetTranslation4x4.

void Stream::apiSwapMat4x4ToTemp4x4 double    temp[16],
const double    mat[16]
const [protected]
 

Definition at line 106 of file stream.cpp.

void Stream::apiSwapMat4x4ToTemp4x4 float    temp[16],
const float    mat[16]
const [protected]
 

Definition at line 98 of file stream.cpp.

Referenced by sfl::OutStream::setSceneCameraTransform4x4, sfl::OutStream::setSceneCameraTransformTwice4x4, sfl::OutStream::setSurfelSetTransform3x3, sfl::OutStream::setSurfelSetTransform4x4, and sfl::OutStream::setSurfelSetTransformTwice4x4.

uint32 Stream::fillRwBuffer void    [protected]
 

Reads at max rwBufferSize bytes from the gff stream.

Definition at line 289 of file stream.cpp.

References gff, gff_read, rwBuffer, rwBufferHead, rwBufferSize, and rwBufferTail.

uint32 Stream::flushRwBuffer void    [protected]
 

Writes both buffers to the gff stream.

Definition at line 319 of file stream.cpp.

References flushRwBuffer0, rwBuffer, and rwBufferHead.

Referenced by sfl::OutStream::endResolution.

uint32 Stream::flushRwBuffer0 void    [protected]
 

Writes rwBuffer[0] to the gff stream.

Definition at line 303 of file stream.cpp.

References gff, gff_write, rwBuffer, rwBufferHead, and rwBufferSize.

Referenced by flushRwBuffer.

void sfl::Stream::setMatrixApiColumnMajor void    [inline]
 

Definition at line 195 of file api.h.

void sfl::Stream::setMatrixApiRowMajor void    [inline]
 

Definition at line 194 of file api.h.


Member Data Documentation

bool sfl::Stream::apiRowMajorMatrices [protected]
 

Definition at line 170 of file api.h.

Referenced by apiSwapMat4x4.

gff_file* sfl::Stream::gff [protected]
 

Definition at line 157 of file api.h.

Referenced by sfl::OutStream::beginResolution, sfl::OutStream::beginSurfelSet, sfl::OutStream::beginSurfelSetList, sfl::OutStream::endHeader, sfl::OutStream::endSurfelSet, sfl::OutStream::endSurfelSetList, fillRwBuffer, flushRwBuffer0, sfl::InStream::seekResolution, sfl::InStream::seekSurfelSet, sfl::OutStream::setApplication, sfl::OutStream::setAuthor, sfl::OutStream::setBackVec3, sfl::OutStream::setDate, sfl::OutStream::setDefaultUnits, sfl::OutStream::setDescription, sfl::OutStream::setOverAllBoundingBox, sfl::OutStream::setRightVec3, sfl::OutStream::setSceneCameraTransform4x4, sfl::OutStream::setSceneCameraTransformTwice4x4, sfl::OutStream::setSurfelSetBoundingBox, sfl::OutStream::setSurfelSetExpFeatureRels, sfl::OutStream::setSurfelSetIdentifier, sfl::OutStream::setSurfelSetMarkerSurfelIndices, sfl::OutStream::setSurfelSetMarkerSurfelUs, sfl::OutStream::setSurfelSetMarkerSurfelVs, sfl::OutStream::setSurfelSetRes0Index, sfl::OutStream::setSurfelSetSRFCalibrations, sfl::OutStream::setSurfelSetTransform3x3, sfl::OutStream::setSurfelSetTransform4x4, sfl::OutStream::setSurfelSetTransformTwice4x4, sfl::OutStream::setSurfelSetUnits, sfl::OutStream::setTitle, sfl::OutStream::setUpVec3, sfl::OutStream::setVersion, and ~Stream.

uint8* sfl::Stream::rwBuffer[2] [protected]
 

Two buffers of size rwBufferSize. rwBuffer[1] follows directly rwBuffer[0].

Definition at line 162 of file api.h.

Referenced by fillRwBuffer, flushRwBuffer, flushRwBuffer0, sfl::InStream::seekResolution, and Stream.

uint8* sfl::Stream::rwBufferHead [protected]
 

Buffer write position.

Definition at line 163 of file api.h.

Referenced by fillRwBuffer, flushRwBuffer, flushRwBuffer0, sfl::InStream::seekResolution, and Stream.

size_t sfl::Stream::rwBufferSize [protected]
 

Definition at line 161 of file api.h.

Referenced by fillRwBuffer, flushRwBuffer0, and Stream.

uint8* sfl::Stream::rwBufferTail [protected]
 

Buffer read position.

Definition at line 164 of file api.h.

Referenced by fillRwBuffer, sfl::InStream::seekResolution, and Stream.

KillerSurfel sfl::Stream::surfelBuffer [protected]
 

Definition at line 159 of file api.h.

Referenced by sfl::OutStream::beginResolution, sfl::OutStream::beginSurfelSet, and sfl::InStream::seekSurfelSet.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 14:18:58 2004 for libsfl by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002