Krita Source Code Documentation
Loading...
Searching...
No Matches
KisKeyframe Class Referenceabstract

Krita's base keyframe class. Mainly contained by KisKeyframeChannels. A core part of Krita's animation bankend. More...

#include <kis_keyframe.h>

+ Inheritance diagram for KisKeyframe:

Classes

struct  Private
 

Public Member Functions

int colorLabel () const
 
virtual KisKeyframeSP duplicate (class KisKeyframeChannel *newChannel=nullptr)=0
 
 KisKeyframe ()
 
void setColorLabel (int colorIndex)
 
virtual ~KisKeyframe ()
 

Private Attributes

QScopedPointer< Privatem_d
 

Detailed Description

Krita's base keyframe class. Mainly contained by KisKeyframeChannels. A core part of Krita's animation bankend.

Definition at line 25 of file kis_keyframe.h.

Constructor & Destructor Documentation

◆ KisKeyframe()

KisKeyframe::KisKeyframe ( )

Definition at line 20 of file kis_keyframe.cpp.

21 : m_d(new Private())
22{
23}
QScopedPointer< Private > m_d

◆ ~KisKeyframe()

KisKeyframe::~KisKeyframe ( )
virtual

Definition at line 25 of file kis_keyframe.cpp.

26{
27}

Member Function Documentation

◆ colorLabel()

int KisKeyframe::colorLabel ( ) const

Definition at line 29 of file kis_keyframe.cpp.

30{
31 return m_d->colorLabel;
32}

References m_d.

◆ duplicate()

virtual KisKeyframeSP KisKeyframe::duplicate ( class KisKeyframeChannel * newChannel = nullptr)
pure virtual

Creates a copy of this keyframe.

Parameters
newChannel(Optional) The channel that will hold this duplicate. This is used when some action must be taken to insert a frame into a new channel, for example, the registration of a KisRasterKeyframe with the new channel's paint device.

Implemented in KisRasterKeyframe, and KisScalarKeyframe.

◆ setColorLabel()

void KisKeyframe::setColorLabel ( int colorIndex)

Definition at line 34 of file kis_keyframe.cpp.

35{
36 m_d->colorLabel = colorIndex;
37}

References m_d.

Member Data Documentation

◆ m_d

QScopedPointer<Private> KisKeyframe::m_d
private

Definition at line 42 of file kis_keyframe.h.


The documentation for this class was generated from the following files: