Raytrix Light Field SDK  5.0
Rx::FileIO::CRVTKEncode Class Reference

Detailed Description

Rectilinear grid encoder for xml vtk files.

Inherits Rx::FileIO::IFileDataEncode.

Public Member Functions

 CRVTKEncode ()
 Default constructor. More...
 
 ~CRVTKEncode ()
 Destructor. More...
 
virtual void AddData (size_t nDataId, const Interop::Runtime30::IMemory2DAccess *pSrcMem)
 Adds a CRxMatrix of type double as IMemory2D block to the file. The memory block contains the vector values. Supported data cases are: More...
 
virtual void AddData (size_t nDataId, const Interop::Runtime30::IMemoryAccess *pSrcMem)
 Adds a CRxArrayDouble as IMemory block to the file. The memory block contains either the values for the x,y or z axis. Supported data cases are: More...
 
virtual void Close ()
 Closes this object and writes the file. More...
 
virtual void Destroy ()
 Destroys this object. More...
 
virtual void Open (const CRxString &sxFullPath)
 Opens this object and sets the output folder for the data file to the given path. More...
 

Protected Attributes

IFileDataEncodem_pxIFileDataEncode
 The IFileDataEncode Interface. More...
 

Constructor & Destructor Documentation

◆ CRVTKEncode()

Rx::FileIO::CRVTKEncode::CRVTKEncode ( )

Default constructor.

◆ ~CRVTKEncode()

Rx::FileIO::CRVTKEncode::~CRVTKEncode ( )

Destructor.

Member Function Documentation

◆ AddData() [1/2]

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

Adds a CRxMatrix of type double as IMemory2D block to the file. The memory block contains the vector values. Supported data cases are:

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::IFileDataEncode.

◆ AddData() [2/2]

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

Adds a CRxArrayDouble as IMemory block to the file. The memory block contains either the values for the x,y or z axis. Supported data cases are:

FileIO::EDataTypeVtk::XAxisData - segment values for the x axis

FileIO::EDataTypeVtk::YAxisData - segment values for the y axis

FileIO::EDataTypeVtk::ZAxisData - segment values for the z axis

All other cases will throw an exception.

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

Implements Rx::FileIO::IFileDataEncode.

◆ Close()

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

Closes this object and writes the file.

Implements Rx::FileIO::IFileDataEncode.

◆ Destroy()

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

Destroys this object.

Implements Rx::FileIO::IFileDataEncode.

◆ Open()

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

Opens this object and sets the output folder for the data file to the given path.

Parameters
sxFullPath[in] Full pathname where the file should be stored.

Implements Rx::FileIO::IFileDataEncode.

Member Data Documentation

◆ m_pxIFileDataEncode

IFileDataEncode* Rx::FileIO::CRVTKEncode::m_pxIFileDataEncode
protected

The IFileDataEncode Interface.