|
Krita Source Code Documentation
|
#include <kis_paint_device_frames_interface.h>
Classes | |
| struct | TestingDataObjects |
Public Member Functions | |
| int | createFrame (bool copy, int copySrc, const QPoint &offset, KUndo2Command *parentCommand) |
| int | currentFrameId () const |
| void | deleteFrame (int frame, KUndo2Command *parentCommand) |
| QRect | frameBounds (int frameId) |
| KisDataManagerSP | frameDataManager (int frameId) const |
| KoColor | frameDefaultPixel (int frameId) const |
| QPoint | frameOffset (int frameId) const |
| QList< int > | frames () |
| void | invalidateFrameCache (int frameId) |
| KisPaintDeviceFramesInterface (KisPaintDevice *parentDevice) | |
| bool | readFrame (QIODevice *stream, int frameId) |
| void | setFrameDefaultPixel (const KoColor &defPixel, int frameId) |
| void | setFrameOffset (int frameId, const QPoint &offset) |
| TestingDataObjects | testingGetDataObjects () const |
| QList< KisPaintDeviceData * > | testingGetDataObjectsList () const |
| void | uploadFrame (int dstFrameId, KisPaintDeviceSP srcDevice) |
| void | uploadFrame (int srcFrameId, int dstFrameId, KisPaintDeviceSP srcDevice) |
| bool | writeFrame (KisPaintDeviceWriter &store, int frameId) |
| void | writeFrameToDevice (int frameId, KisPaintDeviceSP targetDevice) |
Private Attributes | |
| KisPaintDevice * | q |
Definition at line 22 of file kis_paint_device_frames_interface.h.
| KisPaintDeviceFramesInterface::KisPaintDeviceFramesInterface | ( | KisPaintDevice * | parentDevice | ) |
Definition at line 2221 of file kis_paint_device.cc.
| int KisPaintDeviceFramesInterface::createFrame | ( | bool | copy, |
| int | copySrc, | ||
| const QPoint & | offset, | ||
| KUndo2Command * | parentCommand ) |
Creates a new frame on the device and returns an identifier for it.
Definition at line 2231 of file kis_paint_device.cc.
References KisPaintDevice::Private::createFrame(), KisPaintDevice::m_d, and q.
| int KisPaintDeviceFramesInterface::currentFrameId | ( | ) | const |
Returns frameId of the currently active frame. Should be used by Undo framework only!
Definition at line 2296 of file kis_paint_device.cc.
References KisPaintDevice::Private::currentFrameId(), KisPaintDevice::m_d, and q.
| void KisPaintDeviceFramesInterface::deleteFrame | ( | int | frame, |
| KUndo2Command * | parentCommand ) |
Delete the frame with given id
| frame | frame ID |
| parentCommand | parent command |
Definition at line 2236 of file kis_paint_device.cc.
References KisPaintDevice::Private::deleteFrame(), KisPaintDevice::m_d, and q.
| QRect KisPaintDeviceFramesInterface::frameBounds | ( | int | frameId | ) |
frameId Definition at line 2256 of file kis_paint_device.cc.
References KisPaintDevice::Private::frameBounds(), KisPaintDevice::m_d, and q.
| KisDataManagerSP KisPaintDeviceFramesInterface::frameDataManager | ( | int | frameId | ) | const |
Returns the data manager of the specified frame. Should be used by Undo framework only!
Definition at line 2301 of file kis_paint_device.cc.
References KisPaintDevice::Private::dataManager(), KisPaintDevice::Private::frameDataManager(), KIS_ASSERT_RECOVER, KisPaintDevice::m_d, and q.
| KoColor KisPaintDeviceFramesInterface::frameDefaultPixel | ( | int | frameId | ) | const |
frameId Definition at line 2272 of file kis_paint_device.cc.
References KisPaintDevice::Private::colorSpace(), KisPaintDevice::Private::frameDefaultPixel(), KIS_ASSERT_RECOVER, KisPaintDevice::m_d, and q.
| QPoint KisPaintDeviceFramesInterface::frameOffset | ( | int | frameId | ) | const |
frameId Definition at line 2261 of file kis_paint_device.cc.
References KisPaintDevice::Private::frameOffset(), KisPaintDevice::m_d, and q.
| QList< int > KisPaintDeviceFramesInterface::frames | ( | ) |
Return a list of IDs for the frames contained in this paint device
Definition at line 2226 of file kis_paint_device.cc.
References KisPaintDevice::Private::frameIds(), KisPaintDevice::m_d, and q.
| void KisPaintDeviceFramesInterface::invalidateFrameCache | ( | int | frameId | ) |
Resets the cache object associated with the frame. Should be used by Undo framework only!
Definition at line 2309 of file kis_paint_device.cc.
References KisPaintDevice::Private::invalidateFrameCache(), KIS_ASSERT_RECOVER_RETURN, KisPaintDevice::m_d, and q.
| bool KisPaintDeviceFramesInterface::readFrame | ( | QIODevice * | stream, |
| int | frameId ) |
Loads content of a frameId from stream.
NOTE: the frame must be created manually with createFrame() beforehand!
Definition at line 2288 of file kis_paint_device.cc.
References KIS_ASSERT_RECOVER, KisPaintDevice::m_d, q, and KisPaintDevice::Private::readFrame().
Sets default pixel for frameId
Definition at line 2266 of file kis_paint_device.cc.
References KIS_ASSERT_RECOVER_RETURN, KisPaintDevice::m_d, q, and KisPaintDevice::Private::setFrameDefaultPixel().
| void KisPaintDeviceFramesInterface::setFrameOffset | ( | int | frameId, |
| const QPoint & | offset ) |
Sets the offset for frameId. Should be used by Undo framework only!
Definition at line 2316 of file kis_paint_device.cc.
References KIS_ASSERT_RECOVER_RETURN, KisPaintDevice::m_d, q, and KisPaintDevice::Private::setFrameOffset().
| KisPaintDeviceFramesInterface::TestingDataObjects KisPaintDeviceFramesInterface::testingGetDataObjects | ( | ) | const |
Definition at line 2323 of file kis_paint_device.cc.
References KisPaintDevice::Private::currentData(), KisPaintDeviceFramesInterface::TestingDataObjects::m_currentData, KisPaintDevice::m_d, KisPaintDevice::Private::m_data, KisPaintDeviceFramesInterface::TestingDataObjects::m_data, KisPaintDevice::Private::m_externalFrameData, KisPaintDeviceFramesInterface::TestingDataObjects::m_externalFrameData, KisPaintDevice::Private::m_frames, KisPaintDeviceFramesInterface::TestingDataObjects::m_frames, KisPaintDevice::Private::m_lodData, KisPaintDeviceFramesInterface::TestingDataObjects::m_lodData, and q.
| QList< KisPaintDeviceData * > KisPaintDeviceFramesInterface::testingGetDataObjectsList | ( | ) | const |
Definition at line 2345 of file kis_paint_device.cc.
References KisPaintDevice::Private::allDataObjects(), KisPaintDevice::m_d, and q.
| void KisPaintDeviceFramesInterface::uploadFrame | ( | int | dstFrameId, |
| KisPaintDeviceSP | srcDevice ) |
Copy the given paint device contents into the specified frame
| dstFrameId | ID of the frame to be overwritten (must exist) |
| srcDevice | paint device to copy from |
Definition at line 2251 of file kis_paint_device.cc.
References KisPaintDevice::m_d, q, and KisPaintDevice::Private::uploadFrame().
| void KisPaintDeviceFramesInterface::uploadFrame | ( | int | srcFrameId, |
| int | dstFrameId, | ||
| KisPaintDeviceSP | srcDevice ) |
Copy the given paint device contents into the specified frame
| srcFrameId | ID of the frame to copy from (must exist) |
| dstFrameId | ID of the frame to be overwritten (must exist) |
| srcDevice | paint device to copy from |
Definition at line 2246 of file kis_paint_device.cc.
References KisPaintDevice::m_d, q, and KisPaintDevice::Private::uploadFrame().
| bool KisPaintDeviceFramesInterface::writeFrame | ( | KisPaintDeviceWriter & | store, |
| int | frameId ) |
Write a frameId onto store
Definition at line 2280 of file kis_paint_device.cc.
References KIS_ASSERT_RECOVER, KisPaintDevice::m_d, q, and KisPaintDevice::Private::writeFrame().
| void KisPaintDeviceFramesInterface::writeFrameToDevice | ( | int | frameId, |
| KisPaintDeviceSP | targetDevice ) |
Copy the given frame into the target device
| frameId | ID of the frame to be copied |
| targetDevice | paint device to copy to |
Definition at line 2241 of file kis_paint_device.cc.
References KisPaintDevice::m_d, q, and KisPaintDevice::Private::writeFrameToDevice().
|
private |
Definition at line 143 of file kis_paint_device_frames_interface.h.