All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PXL_DeepCompressor::Factory Class Referenceabstract

#include <PXL_DeepCompressor.h>

Public Member Functions

virtual ~Factory ()
virtual PXL_DeepCompressorPtr create (const PXL_DeepChannelListPtr &c, const UT_Options &options) const =0

Static Public Member Functions

static void initCompressors ()
 Load all compressor factories. More...
static void registerCompressor (const char *name, const UT_SharedPtr< Factory > &factory)
static PXL_DeepCompressorPtr create (const char *name, const PXL_DeepChannelListPtr &c, const UT_Options &options)
static void getCompressors (UT_StringArray &types)
 Return the list of possible compressors. More...

Detailed Description

Definition at line 49 of file PXL_DeepCompressor.h.

Constructor & Destructor Documentation

virtual PXL_DeepCompressor::Factory::~Factory ( )

Member Function Documentation

virtual PXL_DeepCompressorPtr PXL_DeepCompressor::Factory::create ( const PXL_DeepChannelListPtr c,
const UT_Options options 
) const
pure virtual

Method to construct a deep compressor given options. The caller to the compressor will be passing pixel sample lists

static PXL_DeepCompressorPtr PXL_DeepCompressor::Factory::create ( const char *  name,
const PXL_DeepChannelListPtr c,
const UT_Options options 

Create a pixel compressor. This will return NULL for an invalid compressor. Factory compressors include:

  • "null"
    No compression. Records are just merged with no combining.
  • "simple"
    Option: "float zbias" Controls zbias for compression
    This compressor will peform simple compression, merging similar records within a z-tolerance.
static void PXL_DeepCompressor::Factory::getCompressors ( UT_StringArray types)

Return the list of possible compressors.

static void PXL_DeepCompressor::Factory::initCompressors ( )

Load all compressor factories.

static void PXL_DeepCompressor::Factory::registerCompressor ( const char *  name,
const UT_SharedPtr< Factory > &  factory 

Register a new compressor. This should be called during initCompressors() only.

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