Raytrix Light Field SDK  4.0
Logo
Public Member Functions | List of all members
Rx::FileIO::CTrixReader Class Reference

Detailed Description

TRIX file reader.

Public Member Functions

 CTrixReader ()
 Default constructor. More...
 
 ~CTrixReader ()
 Destructor. More...
 
void Close ()
 Closes this CTrixWriter and the file. More...
 
size_t GetFrameCount () const
 Gets the frame count. More...
 
void Open (const CRxString &sxFilename)
 Opens a new file for read. More...
 
void ReadD3DRange (float &fxMin, float &fxMax, float &fyMin, float &fyMax, float &fzMin, float &fZMax, size_t nFrameIdx)
 Reads 3 d range. More...
 
void ReadDepthRange (float &fMin, float &fMax, size_t nFrameIdx)
 Reads depth range of the depth map. More...
 
void ReadFrame (Interop::Runtime28::IImage *pxFocusImg, Interop::Runtime28::IImage *pxDepthImg, Interop::Runtime28::IImage *pxDepth3DImg, size_t nFrameIdx)
 Reads the given images from file. More...
 

Constructor & Destructor Documentation

Rx::FileIO::CTrixReader::CTrixReader ( )

Default constructor.

Rx::FileIO::CTrixReader::~CTrixReader ( )

Destructor.

Member Function Documentation

void Rx::FileIO::CTrixReader::Close ( )

Closes this CTrixWriter and the file.

size_t Rx::FileIO::CTrixReader::GetFrameCount ( ) const

Gets the frame count.

Returns
The frame count.
void Rx::FileIO::CTrixReader::Open ( const CRxString sxFilename)

Opens a new file for read.

Parameters
sxFilenameThe filename.
void Rx::FileIO::CTrixReader::ReadD3DRange ( float &  fxMin,
float &  fxMax,
float &  fyMin,
float &  fyMax,
float &  fzMin,
float &  fZMax,
size_t  nFrameIdx 
)

Reads 3 d range.

Parameters
fxMin[in,out] The X minimum.
fxMax[in,out] The X maximum.
fyMin[in,out] The Y minimum.
fyMax[in,out] The Y maximum.
fzMin[in,out] The Z minimum.
fZMax[in,out] The Z maximum.
nFrameIdxZero-based index of the frame.
void Rx::FileIO::CTrixReader::ReadDepthRange ( float &  fMin,
float &  fMax,
size_t  nFrameIdx 
)

Reads depth range of the depth map.

Parameters
fMin[in,out] The minimum.
fMax[in,out] The maximum.
nFrameIdxZero-based index of the frame.
void Rx::FileIO::CTrixReader::ReadFrame ( Interop::Runtime28::IImage pxFocusImg,
Interop::Runtime28::IImage pxDepthImg,
Interop::Runtime28::IImage pxDepth3DImg,
size_t  nFrameIdx 
)

Reads the given images from file.

Parameters
pxFocusImg[out] The focus image.
pxDepthImg[out] The depth image.
pxDepth3DImg[in,out] If non-null, the in pixels depth 3D image.
nFrameIdxThe frame index to read starting with frame 0.