Depth correction volume writer.
Inherits Rx::FileIO::CVol.
Public Member Functions | |
CVolWriter () | |
Default constructor. More... | |
~CVolWriter () | |
Destructor. More... | |
void | Close () |
Closes this CVolWriter and finalizes the file. More... | |
size_t | GetApproximatedFileSize () |
Gets approximated file size. More... | |
void | Open (const CRxString &sxFilename) |
Opens a new file to write. More... | |
void | WriteVolume (const CRxMapping3D &xDepthCorrectionVolume) |
Writes the depth correction volume. More... | |
Static Public Member Functions | |
static const CRxString & | GetGuid () |
Gets the unique identifier of this type. More... | |
static unsigned | GetVersion () |
Gets the version. More... | |
Rx::FileIO::CVolWriter::CVolWriter | ( | ) |
Default constructor.
Rx::FileIO::CVolWriter::~CVolWriter | ( | ) |
Destructor.
void Rx::FileIO::CVolWriter::Close | ( | ) |
Closes this CVolWriter and finalizes the file.
size_t Rx::FileIO::CVolWriter::GetApproximatedFileSize | ( | ) |
Gets approximated file size.
|
staticinherited |
Gets the unique identifier of this type.
|
staticinherited |
Gets the version.
void Rx::FileIO::CVolWriter::Open | ( | const CRxString & | sxFilename | ) |
Opens a new file to write.
After opening a volume file to write the volume content look like that: |<Content> |<Volume> |</Volume> |</Content>
sxFilename | The filename. |
void Rx::FileIO::CVolWriter::WriteVolume | ( | const CRxMapping3D & | xDepthCorrectionVolume | ) |
Writes the depth correction volume.
Dimension X Min Position *_________________ /| / / | /|
/__ | ______________/ | Dimension Y |
---|---|---|
______________ | _ |
| / | / Dimension Z | / |/ |/________________* MaxPosition
After writing the volume the XML looks like this:
|<Content> |<Volume> |<MinPosition x="[Double]" y="[Double]" z="[Double]"></MinPosition> |<MaxPosition x="[Double]" y="[Double]" z="[Double]">< / MaxPosition> |<Dimension x="[INT]" y="[INT]" z="[INT]">< / Dimension> |<DepthCorrectionData fileposition="[INT64]" bytes="[INT64]"> < / DepthCorrectionData> |</Volume> |</Content>
xDepthCorrectionVolume | The depth correction data volume. |