Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAsyncAnimationFramesSavingRenderer::Private Struct Reference

Public Member Functions

 Private (KisImageSP image, const KisTimeSpan &_range, int _sequenceNumberingOffset, bool _onlyNeedsUniqueFrames, KisPropertiesConfigurationSP _exportConfiguration)
 

Public Attributes

KisPropertiesConfigurationSP exportConfiguration
 
QString filenamePrefix
 
QString filenameSuffix
 
bool onlyNeedsUniqueFrames
 
QByteArray outputMimeType
 
KisTimeSpan range
 
KisPaintDeviceSP savingDevice
 
QScopedPointer< KisDocumentsavingDoc
 
int sequenceNumberingOffset = 0
 

Detailed Description

Definition at line 18 of file KisAsyncAnimationFramesSavingRenderer.cpp.

Constructor & Destructor Documentation

◆ Private()

KisAsyncAnimationFramesSavingRenderer::Private::Private ( KisImageSP image,
const KisTimeSpan & _range,
int _sequenceNumberingOffset,
bool _onlyNeedsUniqueFrames,
KisPropertiesConfigurationSP _exportConfiguration )
inline

Definition at line 20 of file KisAsyncAnimationFramesSavingRenderer.cpp.

22 range(_range),
23 sequenceNumberingOffset(_sequenceNumberingOffset),
24 onlyNeedsUniqueFrames(_onlyNeedsUniqueFrames),
25 exportConfiguration(_exportConfiguration)
26 {
27
28 savingDoc->setInfiniteAutoSaveInterval();
29 savingDoc->setFileBatchMode(true);
30
31 KisImageSP savingImage = new KisImage(savingDoc->createUndoStore(),
32 image->bounds().width(),
33 image->bounds().height(),
34 image->colorSpace(),
35 QString());
36
37 savingImage->setResolution(image->xRes(), image->yRes());
38 savingDoc->setCurrentImage(savingImage);
39
40 KisPaintLayer* paintLayer = new KisPaintLayer(savingImage, "paint device", 255);
41 savingImage->addNode(paintLayer, savingImage->root(), KisLayerSP(0));
42
43 savingDevice = paintLayer->paintDevice();
44 }
const KoColorSpace * colorSpace() const
double xRes() const
double yRes() const
QRect bounds() const override
void setResolution(double xres, double yres)
static KisPart * instance()
Definition KisPart.cpp:131
KisDocument * createDocument(QList< KisNodeSP > nodes, KisImageSP srcImage, const QRect &copiedBounds)
bool addNode(KisNodeSP node, KisNodeSP parent=KisNodeSP(), KisNodeAdditionFlags flags=KisNodeAdditionFlag::None)
KisPaintDeviceSP paintDevice

References KisNodeFacade::addNode(), KisImage::bounds(), KisImage::colorSpace(), KisPaintLayer::paintDevice, KisNodeFacade::root, savingDevice, savingDoc, KisImage::setResolution(), KisImage::xRes(), and KisImage::yRes().

Member Data Documentation

◆ exportConfiguration

KisPropertiesConfigurationSP KisAsyncAnimationFramesSavingRenderer::Private::exportConfiguration

Definition at line 58 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ filenamePrefix

QString KisAsyncAnimationFramesSavingRenderer::Private::filenamePrefix

Definition at line 54 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ filenameSuffix

QString KisAsyncAnimationFramesSavingRenderer::Private::filenameSuffix

Definition at line 55 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ onlyNeedsUniqueFrames

bool KisAsyncAnimationFramesSavingRenderer::Private::onlyNeedsUniqueFrames

Definition at line 52 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ outputMimeType

QByteArray KisAsyncAnimationFramesSavingRenderer::Private::outputMimeType

Definition at line 57 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ range

KisTimeSpan KisAsyncAnimationFramesSavingRenderer::Private::range

Definition at line 49 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ savingDevice

KisPaintDeviceSP KisAsyncAnimationFramesSavingRenderer::Private::savingDevice

Definition at line 47 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ savingDoc

QScopedPointer<KisDocument> KisAsyncAnimationFramesSavingRenderer::Private::savingDoc

Definition at line 46 of file KisAsyncAnimationFramesSavingRenderer.cpp.

◆ sequenceNumberingOffset

int KisAsyncAnimationFramesSavingRenderer::Private::sequenceNumberingOffset = 0

Definition at line 50 of file KisAsyncAnimationFramesSavingRenderer.cpp.


The documentation for this struct was generated from the following file: