krita

KisRectIterator Class Reference

#include <kis_iterator.h>

Inheritance diagram for KisRectIterator:

KisRectIteratorPixel List of all members.

Detailed Description

The KisRectIterator iterators over a rectangular area in the most efficient order.

That is, there is no guarantee that the iterator will work scanline by scanline.

Definition at line 40 of file kis_iterator.h.


Public Member Functions

 KisRectIterator (KisDataManager *dm, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h, bool writable)
virtual ~KisRectIterator ()
 KisRectIterator (const KisRectIterator &rhs)
KisRectIteratoroperator= (const KisRectIterator &rhs)
Q_UINT8 * rawData () const
const Q_UINT8 * oldRawData () const
Q_INT32 nConseqPixels () const
KisRectIteratoroperator+= (int n)
KisRectIteratoroperator++ ()
bool isDone () const
Q_INT32 x () const
Q_INT32 y () const

Member Function Documentation

Q_UINT8 * KisRectIterator::rawData (  )  const

returns a pointer to the pixel data. Do NOT interpret the data - leave that to a colorstrategy

Definition at line 47 of file kis_iterator.cc.

const Q_UINT8 * KisRectIterator::oldRawData (  )  const

Returns a pointer to the pixel data as it was at the moment of the last memento creation.

Definition at line 49 of file kis_iterator.cc.

Q_INT32 KisRectIterator::nConseqPixels (  )  const

Returns the number of consequtive pixels that we point at This is useful for optimizing.

Reimplemented in KisRectIteratorPixel.

Definition at line 51 of file kis_iterator.cc.

KisRectIterator & KisRectIterator::operator+= ( int  n  ) 

Advances a number of pixels until it reaches the end of the rect.

Definition at line 53 of file kis_iterator.cc.

KisRectIterator & KisRectIterator::operator++ (  ) 

Advances one pixel going to the beginning of the next line when it reaches the end of a line.

Reimplemented in KisRectIteratorPixel.

Definition at line 55 of file kis_iterator.cc.

bool KisRectIterator::isDone (  )  const

returns true when iterators has reached the end

Definition at line 57 of file kis_iterator.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys