Unstructured grid encoder for a series of xml vtk files. (implementation)
Inherits Rx::FileIO::IFileDataFramesEncode.
Public Member Functions | |
CUVTKEncode_Impl () | |
Default constructor. More... | |
~CUVTKEncode_Impl () | |
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<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 Member Functions | |
void | AddPointsAndCellsToXmlNode (const Rx::Interop::Runtime30::IMemory2DAccess *pSrcMem, xmlNode *pxParentPieceNode) |
Adds point and cell data to a vtk-xml piece node. The cell data will be generated from the point data. More... | |
void | AddVectorsToXmlNode (const Rx::Interop::Runtime30::IMemory2DAccess *pSrcMem, xmlNode *pxParentPieceNode) |
Adds vector data to a vtk-xml piece node. More... | |
void | WriteXmlDocToFile (const Rx::CRxString &sxFilePath, xmlDoc *pxXmlDoc) |
Writes a XML document to file. More... | |
Rx::FileIO::CUVTKEncode_Impl::CUVTKEncode_Impl | ( | ) |
Default constructor.
Rx::FileIO::CUVTKEncode_Impl::~CUVTKEncode_Impl | ( | ) |
Destructor.
|
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.
nDataId | [in] Identifier for the data. |
dData | [in] The time step. |
Implements Rx::FileIO::IFileDataFramesEncode.
|
virtual |
Not supported for this file type. Will throw an exception if called with any case.
nDataId | [in] Identifier for the data. |
pSrcMem | [in] Source memory. |
Implements Rx::FileIO::IFileDataFramesEncode.
|
virtual |
Adds a Rx::CRxMatrix<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.
nDataId | [in] Identifier for the data. |
pSrcMem | [in] Source memory. |
Implements Rx::FileIO::IFileDataFramesEncode.
|
protected |
Adds point and cell data to a vtk-xml piece node. The cell data will be generated from the point data.
pSrcMem | [in] Source memory containing the point data. |
pxParentPieceNode | [in,out] The parent XML node where the data should be attached to. |
|
protected |
Adds vector data to a vtk-xml piece node.
pSrcMem | [in] Source memory containing the vector data. |
pxParentPieceNode | [in,out] The parent XML node where the data should be attached to. |
|
virtual |
Closes this object. Writes the last frame file and afterwards the index file.
Implements Rx::FileIO::IFileDataFramesEncode.
|
virtual |
Destroys this object.
Implements Rx::FileIO::IFileDataFramesEncode.
|
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 |
Opens this object and sets the output folder for all files to the given path. This function already opens the first frame.
sxFullPath | [in] Full pathname where all files should be stored. |
Implements Rx::FileIO::IFileDataFramesEncode.
|
protected |
Writes a XML document to file.
sxFilePath | [in] Full pathname of the file. |
pxXmlDoc | [in] The XML document which should be written. |