krita
kis_random_sub_accessor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIS_CURVE_ITERATOR_H
00021 #define KIS_CURVE_ITERATOR_H
00022
00023 #include "kis_point.h"
00024 #include "kis_random_accessor.h"
00025 #include "kis_types.h"
00026
00027 class KisRandomSubAccessorPixel{
00028 public:
00029 KisRandomSubAccessorPixel(KisPaintDeviceSP device);
00030 ~KisRandomSubAccessorPixel();
00034 void sampledOldRawData(Q_UINT8* dst);
00035 void sampledRawData(Q_UINT8* dst);
00036 inline void moveTo(double x, double y) { m_currentPoint.setX(x); m_currentPoint.setY(y); }
00037 inline void moveTo(const KisPoint& p ) { m_currentPoint = p; }
00038 private:
00039 KisPaintDeviceSP m_device;
00040 int m_position, m_end;
00041 KisPoint m_currentPoint;
00042 KisRandomAccessorPixel m_randomAccessor;
00043 };
00044
00045 #endif
|