#include <KisAnimatedOpacityProperty.h>
◆ KisAnimatedOpacityProperty()
◆ changed
| void KisAnimatedOpacityProperty::changed |
( |
quint8 | value | ) |
|
|
signal |
◆ channel()
◆ get()
| quint8 KisAnimatedOpacityProperty::get |
( |
| ) |
|
◆ hasChannel()
| bool KisAnimatedOpacityProperty::hasChannel |
( |
| ) |
|
|
inline |
◆ makeAnimated()
| void KisAnimatedOpacityProperty::makeAnimated |
( |
KisNode * | parentNode | ) |
|
Definition at line 68 of file KisAnimatedOpacityProperty.cpp.
68 {
72 ));
73
79
82}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void slotKeyChanged(const KisKeyframeChannel *, int time)
void slotKeyRemoval(const KisKeyframeChannel *, int)
KisKeyframeChannel stores and manages KisKeyframes. Maps units of time to virtual keyframe values....
static const KoID Opacity
The KisScalarKeyframeChannel is a concrete KisKeyframeChannel subclass that stores and manages KisSca...
References connect(), KisScalarKeyframe::Linear, m_channel, KisKeyframeChannel::Opacity, slotKeyChanged(), and slotKeyRemoval().
◆ set()
| void KisAnimatedOpacityProperty::set |
( |
const quint8 | value | ) |
|
Definition at line 33 of file KisAnimatedOpacityProperty.cpp.
33 {
34 quint8 valueToAssign;
37 const float currentValue =
m_channel->valueAt(currentTime);
39
40 if (!key) {
41 m_channel->addScalarKeyframe(currentTime, currentValue);
44 }
45
46 const int translatedOldValue = key->value() * 255 / 100;
47
48 if (translatedOldValue ==
value) {
49 return;
50 }
51
52 key->setValue(qreal(
value) * 100 / 255);
53
54 valueToAssign = qreal(
m_channel->currentValue()) * 255 / 100;
55 } else {
56 valueToAssign =
value;
57 }
58
60 return;
61 }
62
66}
void changed(quint8 value)
virtual int currentTime() const =0
The KisScalarKeyframe class is a concrete subclass of KisKeyframe that wraps a scalar value and inter...
int intProperty(const QString &name, int defaultValue=0) const
void setProperty(const QString &name, const QVariant &value)
References changed(), KisDefaultBoundsBase::currentTime(), KoProperties::intProperty(), KIS_ASSERT, m_bounds, m_channel, m_defaultValue, m_props, KoProperties::setProperty(), and value().
◆ slotKeyChanged
◆ slotKeyRemoval
◆ transferKeyframeData()
◆ updateDefaultBounds()
◆ m_bounds
◆ m_channel
◆ m_defaultValue
| quint8 KisAnimatedOpacityProperty::m_defaultValue |
|
private |
◆ m_props
The documentation for this class was generated from the following files: