ISquareRanges Struct Reference
[Interfaces for coding modules]

Interface for modules that control how the image will be split into rectangular (mostly square) range blocks. More...

#include <interfaces.h>

Inheritance diagram for ISquareRanges:

Inheritance graph
[legend]
Collaboration diagram for ISquareRanges:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< RangeNode * > RangeList
 List of range nodes (pointers).

Public Member Functions

virtual void encode (const PlaneBlock &toEncode)=0
 Starts encoding, calls modules in the passed structure.
virtual const RangeListgetRangeList () const =0
 Returns a reference to the current range-block list.
virtual void writeSettings (std::ostream &file)=0
 Write all settings needed for reconstruction.
virtual void readSettings (std::istream &file)=0
 Read all settings needed for reconstruction.
virtual void writeData (std::ostream &file)=0
 Writes data needed for reconstruction (except for settings).
virtual void readData_buildRanges (std::istream &file, const PlaneBlock &block)=0
 Reads data from a stream and reconstructs the positions of range blocks.


Detailed Description

Interface for modules that control how the image will be split into rectangular (mostly square) range blocks.

Definition at line 226 of file interfaces.h.


Member Function Documentation

virtual void ISquareRanges::encode ( const PlaneBlock &  toEncode  )  [pure virtual]

Starts encoding, calls modules in the passed structure.

It should update UpdateInfo continually by the count of encoded pixels.

Exceptions:
std::exception when cancelled via UpdateInfo or on other errors

Implemented in MQuadTree.

Referenced by MSquarePixels::jobEncode().

Here is the caller graph for this function:

virtual void ISquareRanges::readData_buildRanges ( std::istream &  file,
const PlaneBlock &  block 
) [pure virtual]

Reads data from a stream and reconstructs the positions of range blocks.

Parameters:
file the stream to read from
block contains the properties of the block to be reconstructed

Implemented in MQuadTree.


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

Generated on Thu Aug 6 22:33:14 2009 for Fractal Image Compressor by  doxygen 1.5.8