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

Detailed Description

Raytrix General File Format Writer.

Public Member Functions

 CRxGFFWriter ()
 Default constructor. More...
 
 ~CRxGFFWriter ()
 Destructor. More...
 
void Close ()
 Closes the file write operation. More...
 
xmlNode * CreateContent (const char *pcName)
 
xmlNode * CreateContent (const char *pcName, const xmlNodePtr pxParentNode)
 
xmlAttr * CreateContentAttribute (const char *pcName, const CRxString &sxValue, const xmlNodePtr pxParentNode)
 
void Open (const CRxString &sxFilename, const CRxString &sxGUID, unsigned uVersion)
 Opens a file in write mode. More...
 
xmlNode * WriteContent (const CRxImage &xImg, const xmlNodePtr pxParentNode, const char *pcName, Codec::IImageCodec *pxCodec=NULL)
 
xmlNode * WriteContent (const CRxMapping3D &xMapping, const xmlNodePtr pxParentNode, const char *pcNodeName)
 Writes a data content node. More...
 

Protected Attributes

xmlDoc * m_pXML
 
xmlNode * m_pXmlContentNode
 
xmlNode * m_pXmlMetaNode
 
unsigned m_uHeaderLength
 
CFileStream m_xFile
 

Constructor & Destructor Documentation

◆ CRxGFFWriter()

Rx::FileIO::CRxGFFWriter::CRxGFFWriter ( )

Default constructor.

◆ ~CRxGFFWriter()

Rx::FileIO::CRxGFFWriter::~CRxGFFWriter ( )

Destructor.

Member Function Documentation

◆ Close()

void Rx::FileIO::CRxGFFWriter::Close ( )

Closes the file write operation.

◆ CreateContent() [1/2]

xmlNode* Rx::FileIO::CRxGFFWriter::CreateContent ( const char *  pcName)

◆ CreateContent() [2/2]

xmlNode* Rx::FileIO::CRxGFFWriter::CreateContent ( const char *  pcName,
const xmlNodePtr  pxParentNode 
)

◆ CreateContentAttribute()

xmlAttr* Rx::FileIO::CRxGFFWriter::CreateContentAttribute ( const char *  pcName,
const CRxString sxValue,
const xmlNodePtr  pxParentNode 
)

◆ Open()

void Rx::FileIO::CRxGFFWriter::Open ( const CRxString sxFilename,
const CRxString sxGUID,
unsigned  uVersion 
)

Opens a file in write mode.

Parameters
sxFilenameFilename.
sxGUIDGUID of the file type.
uVersionThe version.

◆ WriteContent() [1/2]

xmlNode* Rx::FileIO::CRxGFFWriter::WriteContent ( const CRxImage xImg,
const xmlNodePtr  pxParentNode,
const char *  pcName,
Codec::IImageCodec *  pxCodec = NULL 
)

◆ WriteContent() [2/2]

xmlNode* Rx::FileIO::CRxGFFWriter::WriteContent ( const CRxMapping3D xMapping,
const xmlNodePtr  pxParentNode,
const char *  pcNodeName 
)

Writes a data content node.

Parameters
xMappingThe 3D mapping.
pxParentNodeThe parent node.
pcNodeNameName of the node.
Returns
The node.

Member Data Documentation

◆ m_pXML

xmlDoc* Rx::FileIO::CRxGFFWriter::m_pXML
protected

◆ m_pXmlContentNode

xmlNode* Rx::FileIO::CRxGFFWriter::m_pXmlContentNode
protected

◆ m_pXmlMetaNode

xmlNode* Rx::FileIO::CRxGFFWriter::m_pXmlMetaNode
protected

◆ m_uHeaderLength

unsigned Rx::FileIO::CRxGFFWriter::m_uHeaderLength
protected

◆ m_xFile

CFileStream Rx::FileIO::CRxGFFWriter::m_xFile
protected