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

Detailed Description

Unstructured grid encoder for a series of xml vtk files.

Inherits Rx::FileIO::IFileDataFramesEncode.

Public Member Functions

 CUVTKEncode ()
 Default constructor. More...
 
 ~CUVTKEncode ()
 Destructor. More...
 
virtual void AddData (size_t nDataId, double dData)
 Adds a double to the current frame. The double is the time step for the current frame. Supported data cases are: More...
 
virtual void AddData (size_t nDataId, const Rx::Interop::Runtime30::IMemoryAccess *pSrcMem)
 Not supported for this file type. Will throw an exception if called with any case. More...
 
virtual void AddData (size_t nDataId, const Rx::Interop::Runtime30::IMemory2DAccess *pSrcMem)
 Adds a Rx::CRxMatrix of type double as IMemory2D block to the current frame. The IMemory2D block contains either the point values or the vector values. Supported data cases are: More...
 
virtual void Close ()
 Closes this object. Writes the last frame file and afterwards the index file. More...
 
virtual void Destroy ()
 Destroys this object. More...
 
virtual void NextFrame ()
 When there is data to write, the last frame will be written and a new one will be opened. Otherwise just the new frame will be opened. More...
 
virtual void Open (const Rx::CRxString &sxFullPath)
 Opens this object and sets the output folder for all files to the given path. This function already opens the first frame. More...
 

Protected Attributes

IFileDataFramesEncodem_pxIFileDataFramesEncode
 The IFileDataFramesEncode interface. More...
 

Constructor & Destructor Documentation

Rx::FileIO::CUVTKEncode::CUVTKEncode ( )

Default constructor.

Rx::FileIO::CUVTKEncode::~CUVTKEncode ( )

Destructor.

Member Function Documentation

virtual void Rx::FileIO::CUVTKEncode::AddData ( size_t  nDataId,
double  dData 
)
virtual

Adds a double to the current frame. The double is the time step for the current frame. Supported data cases are:

Rx::FileIO::EDataTypeVtk::TimestepData - current time step data

All other cases will throw an exception.

Parameters
nDataId[in] Identifier for the data.
dData[in] The time step.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::AddData ( size_t  nDataId,
const Rx::Interop::Runtime30::IMemoryAccess pSrcMem 
)
virtual

Not supported for this file type. Will throw an exception if called with any case.

Parameters
nDataId[in] Identifier for the data.
pSrcMem[in] Source memory.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::AddData ( size_t  nDataId,
const Rx::Interop::Runtime30::IMemory2DAccess pSrcMem 
)
virtual

Adds a Rx::CRxMatrix of type double as IMemory2D block to the current frame. The IMemory2D block contains either the point values or the vector values. Supported data cases are:

Rx::FileIO::EDataTypeVtk::PointData - 3d point data

Rx::FileIO::EDataTypeVtk::VectorData - 3d vector data

All other cases will throw an exception.

Parameters
nDataId[in] Identifier for the data.
pSrcMem[in] Source memory.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::Close ( )
virtual

Closes this object. Writes the last frame file and afterwards the index file.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::Destroy ( )
virtual

Destroys this object.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::NextFrame ( )
virtual

When there is data to write, the last frame will be written and a new one will be opened. Otherwise just the new frame will be opened.

Implements Rx::FileIO::IFileDataFramesEncode.

virtual void Rx::FileIO::CUVTKEncode::Open ( const Rx::CRxString sxFullPath)
virtual

Opens this object and sets the output folder for all files to the given path. This function already opens the first frame.

Parameters
sxFullPath[in] Full pathname where all files should be stored.

Implements Rx::FileIO::IFileDataFramesEncode.

Member Data Documentation

IFileDataFramesEncode* Rx::FileIO::CUVTKEncode::m_pxIFileDataFramesEncode
protected

The IFileDataFramesEncode interface.