COPASI API
4.16.103
|
#include <CQEffectDescription.h>
Public Types | |
enum | Mode { DropShadow, Colorize, Scale } |
Public Member Functions | |
void | applyToScene (CQLayoutScene &scene, qreal t) |
CQEffectDescription (const std::string &cn, qreal startScale, qreal endScale) | |
CQEffectDescription (const std::string &cn, Mode mode=Colorize, const QColor &startColor=Qt::white, const QColor &endColor=Qt::red) | |
const std::string & | getCN () const |
const QColor & | getEndColor () const |
Mode | getMode () const |
qreal | getScaleEnd () const |
qreal | getScaleStart () const |
const QColor & | getStartColor () const |
virtual void | removeFromScene (CQLayoutScene &scene) |
void | setCN (const std::string &cn) |
void | setEndColor (const QColor &color) |
void | setMode (Mode mode) |
void | setScaleEnd (qreal scale) |
void | setScaleStart (qreal scale) |
void | setStartColor (const QColor &color) |
virtual | ~CQEffectDescription () |
Protected Attributes | |
std::string | mCN |
QColor | mEndColor |
Mode | mMode |
qreal | mScaleEnd |
qreal | mScaleStart |
QColor | mStartColor |
Definition at line 14 of file CQEffectDescription.h.
CQEffectDescription::CQEffectDescription | ( | const std::string & | cn, |
qreal | startScale, | ||
qreal | endScale | ||
) |
Definition at line 49 of file CQEffectDescription.cpp.
CQEffectDescription::CQEffectDescription | ( | const std::string & | cn, |
Mode | mode = Colorize , |
||
const QColor & | startColor = Qt::white , |
||
const QColor & | endColor = Qt::red |
||
) |
Definition at line 39 of file CQEffectDescription.cpp.
|
virtual |
Definition at line 59 of file CQEffectDescription.cpp.
void CQEffectDescription::applyToScene | ( | CQLayoutScene & | scene, |
qreal | t | ||
) |
Definition at line 112 of file CQEffectDescription.cpp.
References Colorize, DropShadow, CQLayoutScene::getItemFor(), interpolate(), linear(), mCN, mEndColor, mMode, mScaleEnd, mScaleStart, mStartColor, Scale, and CQCopasiEffect::setScale().
const std::string & CQEffectDescription::getCN | ( | ) | const |
Definition at line 63 of file CQEffectDescription.cpp.
References mCN.
Referenced by CQEffectDescriptionEdit::initFrom(), and CQAnimationSettingsEditor::initFrom().
const QColor & CQEffectDescription::getEndColor | ( | ) | const |
Definition at line 73 of file CQEffectDescription.cpp.
References mEndColor.
Referenced by CQEffectDescriptionEdit::initFrom().
CQEffectDescription::Mode CQEffectDescription::getMode | ( | ) | const |
Definition at line 88 of file CQEffectDescription.cpp.
References mMode.
Referenced by CQEffectDescriptionEdit::initFrom().
qreal CQEffectDescription::getScaleEnd | ( | ) | const |
Definition at line 83 of file CQEffectDescription.cpp.
References mScaleEnd.
Referenced by CQEffectDescriptionEdit::initFrom().
qreal CQEffectDescription::getScaleStart | ( | ) | const |
Definition at line 78 of file CQEffectDescription.cpp.
References mScaleStart.
Referenced by CQEffectDescriptionEdit::initFrom().
const QColor & CQEffectDescription::getStartColor | ( | ) | const |
Definition at line 68 of file CQEffectDescription.cpp.
References mStartColor.
Referenced by CQEffectDescriptionEdit::initFrom().
|
virtual |
Definition at line 97 of file CQEffectDescription.cpp.
References CQLayoutScene::getItemFor(), and mCN.
void CQEffectDescription::setCN | ( | const std::string & | cn | ) |
void CQEffectDescription::setEndColor | ( | const QColor & | color | ) |
Definition at line 164 of file CQEffectDescription.cpp.
References mEndColor.
Referenced by CQEffectDescriptionEdit::saveTo(), and CQEffectDescriptionEdit::toDescription().
void CQEffectDescription::setMode | ( | CQEffectDescription::Mode | mode | ) |
Definition at line 92 of file CQEffectDescription.cpp.
References mMode.
Referenced by CQEffectDescriptionEdit::saveTo(), and CQEffectDescriptionEdit::toDescription().
void CQEffectDescription::setScaleEnd | ( | qreal | scale | ) |
Definition at line 174 of file CQEffectDescription.cpp.
References mScaleEnd.
Referenced by CQEffectDescriptionEdit::saveTo(), and CQEffectDescriptionEdit::toDescription().
void CQEffectDescription::setScaleStart | ( | qreal | scale | ) |
Definition at line 169 of file CQEffectDescription.cpp.
References mScaleStart.
Referenced by CQEffectDescriptionEdit::saveTo(), and CQEffectDescriptionEdit::toDescription().
void CQEffectDescription::setStartColor | ( | const QColor & | color | ) |
Definition at line 159 of file CQEffectDescription.cpp.
References mStartColor.
Referenced by CQEffectDescriptionEdit::saveTo(), and CQEffectDescriptionEdit::toDescription().
|
protected |
Definition at line 51 of file CQEffectDescription.h.
Referenced by applyToScene(), getCN(), removeFromScene(), and setCN().
|
protected |
Definition at line 53 of file CQEffectDescription.h.
Referenced by applyToScene(), getEndColor(), and setEndColor().
|
protected |
Definition at line 56 of file CQEffectDescription.h.
Referenced by applyToScene(), getMode(), and setMode().
|
protected |
Definition at line 55 of file CQEffectDescription.h.
Referenced by applyToScene(), getScaleEnd(), and setScaleEnd().
|
protected |
Definition at line 54 of file CQEffectDescription.h.
Referenced by applyToScene(), getScaleStart(), and setScaleStart().
|
protected |
Definition at line 52 of file CQEffectDescription.h.
Referenced by applyToScene(), getStartColor(), and setStartColor().