Logo Search packages:      
Sourcecode: palapeli version File versions  Download package

virtual void Palapeli::Pattern::doSlice ( const QImage &  image  )  [protected, pure virtual]

Provides the slicing algorithm. This function splits a given image into pieces and defines relations between them. These pieces and relations are used to build the puzzle.

Parameters:
image the image to be sliced
See also:
addPiece, addRelation, reportPieceCount

Implemented in Palapeli::HexagonalPattern, Palapeli::JigsawPattern, and Palapeli::RectangularPattern.

Referenced by slice().


Generated by  Doxygen 1.6.0   Back to index