Open CASCADE Technology  6.9.0
Public Member Functions

Voxel_Writer Class Reference

Writes a cube of voxels on disk. More...

#include <Voxel_Writer.hxx>

Public Member Functions

 Voxel_Writer ()
 An empty constructor. More...
 
void SetFormat (const Voxel_VoxelFileFormat format)
 Defines the file format for voxels. ASCII - slow and occupies more space on disk. BINARY - fast and occupies less space on disk. More...
 
void SetVoxels (const Voxel_BoolDS &voxels)
 Defines the voxels (1bit). More...
 
void SetVoxels (const Voxel_ColorDS &voxels)
 Defines the voxels (4bit). More...
 
void SetVoxels (const Voxel_FloatDS &voxels)
 Defines the voxels (4bytes). More...
 
Standard_Boolean Write (const TCollection_ExtendedString &file) const
 Writes the voxels on disk using the defined format and file name. More...
 

Detailed Description

Writes a cube of voxels on disk.

Constructor & Destructor Documentation

Voxel_Writer::Voxel_Writer ( )

An empty constructor.

Member Function Documentation

void Voxel_Writer::SetFormat ( const Voxel_VoxelFileFormat  format)

Defines the file format for voxels. ASCII - slow and occupies more space on disk. BINARY - fast and occupies less space on disk.

void Voxel_Writer::SetVoxels ( const Voxel_BoolDS voxels)

Defines the voxels (1bit).

void Voxel_Writer::SetVoxels ( const Voxel_ColorDS voxels)

Defines the voxels (4bit).

void Voxel_Writer::SetVoxels ( const Voxel_FloatDS voxels)

Defines the voxels (4bytes).

Standard_Boolean Voxel_Writer::Write ( const TCollection_ExtendedString file) const

Writes the voxels on disk using the defined format and file name.


The documentation for this class was generated from the following file: