Raytrix Light Field SDK  v3.1
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::FileIO::CTrixBaseReader Class Reference

Detailed Description

TRIX File Base Reader.

Inherits Rx::FileIO::CTrixBase.

Public Member Functions

 CTrixBaseReader ()
 Default constructor. More...
 
 ~CTrixBaseReader ()
 Destructor. More...
 
void Close ()
 Closes this CTrixBaseReader 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 xyz - range of the depth3D map at index nFrameIdx. More...
 
void ReadDepthRange (float &fMin, float &fMax, size_t nFrameIdx)
 Reads depth range of the depth map at index nFrameIdx. More...
 
void ReadFrame (Rx::Interop::Runtime28::IImage *pxFocusImg, Rx::Interop::Runtime28::IImage *pxDepthImg, Rx::Interop::Runtime28::IImage *pxDepth3DImg, size_t nFrameIdx)
 Reads a frame pair. More...
 

Static Public Member Functions

static const CRxStringGetGuid ()
 Gets the unique identifier of this type. More...
 
static unsigned GetVersion ()
 Gets the version. More...
 

Constructor & Destructor Documentation

Rx::FileIO::CTrixBaseReader::CTrixBaseReader ( )

Default constructor.

Rx::FileIO::CTrixBaseReader::~CTrixBaseReader ( )

Destructor.

Member Function Documentation

void Rx::FileIO::CTrixBaseReader::Close ( )

Closes this CTrixBaseReader and the file.

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

Gets the frame count.

Returns
The frame count.
static const CRxString& Rx::FileIO::CTrixBase::GetGuid ( )
staticinherited

Gets the unique identifier of this type.

Returns
The unique identifier.
static unsigned Rx::FileIO::CTrixBase::GetVersion ( )
staticinherited

Gets the version.

Returns
The version.
void Rx::FileIO::CTrixBaseReader::Open ( const CRxString sxFilename)

Opens a new file for read.

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

Reads xyz - range of the depth3D map at index nFrameIdx.

Parameters
[in,out]fxMinThe X minimum.
[in,out]fxMaxThe X maximum.
[in,out]fyMinThe Y minimum.
[in,out]fyMaxThe Y maximum.
[in,out]fzMinThe Z minimum.
[in,out]fZMaxThe Z maximum.
nFrameIdxZero-based index of the frame.
void Rx::FileIO::CTrixBaseReader::ReadDepthRange ( float &  fMin,
float &  fMax,
size_t  nFrameIdx 
)

Reads depth range of the depth map at index nFrameIdx.

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

Reads a frame pair.

Parameters
pxFocusImg[out] The focus image.
pxDepthImg[out] The depth image.
nFrameIdxThe frame index.