kis_datamanager.h
48 KisDataManager(TQ_UINT32 pixelSize, const TQ_UINT8 *defPixel) : ACTUAL_DATAMGR(pixelSize, defPixel) {}
56 inline void setDefaultPixel(const TQ_UINT8 *defPixel) { return ACTUAL_DATAMGR::setDefaultPixel(defPixel); }
120 inline void setExtent(const TQRect & rect) { setExtent(rect.x(), rect.y(), rect.width(), rect.height()); }
void clear(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h, const TQ_UINT8 *def)
Clear the specified rect to the specified pixel value.
Definition kis_datamanager.h:134
void readBytes(TQ_UINT8 *data, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
Copy the bytes in the specified rect to a chunk of memory.
Definition kis_datamanager.h:178
void setExtent(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
Crop or extend the data to x, y, w, h.
Definition kis_datamanager.h:117
void setPixel(TQ_INT32 x, TQ_INT32 y, const TQ_UINT8 *data)
Write the specified data to x, y.
Definition kis_datamanager.h:169
void rollforward(KisMementoSP memento)
Restores the image data to the state at the time of the rollback call of the memento.
Definition kis_datamanager.h:86
void extent(TQ_INT32 &x, TQ_INT32 &y, TQ_INT32 &w, TQ_INT32 &h) const
Return the extent of the data in x,y,w,h.
Definition kis_datamanager.h:106
void rollback(KisMementoSP memento)
Restores the image data to the state at the time of the getMemento() call.
Definition kis_datamanager.h:77
TDE_DEPRECATED const TQ_UINT8 * pixel(TQ_INT32 x, TQ_INT32 y)
Get a read-only pointer to the specified pixel.
Definition kis_datamanager.h:157
TDE_DEPRECATED TQ_UINT8 * writablePixel(TQ_INT32 x, TQ_INT32 y)
Get a read-write pointer to the specified pixel.
Definition kis_datamanager.h:163
void writeBytes(const TQ_UINT8 *data, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
Copy the bytes to the specified rect.
Definition kis_datamanager.h:187
void clear(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h, TQ_UINT8 def)
Clear the specified rect to the specified value.
Definition kis_datamanager.h:127
bool write(KoStore *store)
Reads and writes the tiles from/onto a KoStore (wich is simply a file within a zip file).
Definition kis_datamanager.h:93
void paste(KisDataManagerSP data, TQ_INT32 sx, TQ_INT32 sy, TQ_INT32 dx, TQ_INT32 dy, TQ_INT32 w, TQ_INT32 h)
Copy the specified rect from the specified data into this data.
Definition kis_datamanager.h:150
void setDefaultPixel(const TQ_UINT8 *defPixel)
Sets the default pixel.
Definition kis_datamanager.h:56
