COPASI API  4.16.103
CQEffectDescription.h
Go to the documentation of this file.
1 // Copyright (C) 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef QEFFECT_DESCRIPTION_H
7 #define QEFFECT_DESCRIPTION_H
8 
9 #include <QtGui/QColor>
10 #include <string>
11 
12 #include <qlayout/CQLayoutScene.h>
13 
15 {
16 public:
17  enum Mode
18  {
22  };
23 
24  CQEffectDescription(const std::string& cn, qreal startScale, qreal endScale);
25  CQEffectDescription(const std::string& cn, Mode mode = Colorize, const QColor &startColor = Qt::white, const QColor& endColor = Qt::red);
26  virtual ~CQEffectDescription();
27 
28  const std::string& getCN()const;
29  void setCN(const std::string& cn);
30 
31  const QColor& getStartColor() const;
32  void setStartColor(const QColor& color);
33 
34  const QColor& getEndColor() const;
35  void setEndColor(const QColor& color);
36 
37  qreal getScaleStart() const;
38  void setScaleStart(qreal scale);
39 
40  qreal getScaleEnd() const;
41  void setScaleEnd(qreal scale);
42 
43  Mode getMode() const;
44  void setMode(Mode mode);
45 
46  virtual void removeFromScene(CQLayoutScene& scene);
47 
48  void applyToScene(CQLayoutScene& scene, qreal t);
49 
50 protected:
51  std::string mCN;
52  QColor mStartColor;
53  QColor mEndColor;
54  qreal mScaleStart;
55  qreal mScaleEnd;
57 };
58 
59 #endif // QEFFECT_DESCRIPTION_H
const QColor & getEndColor() const
void setScaleStart(qreal scale)
virtual void removeFromScene(CQLayoutScene &scene)
const std::string & getCN() const
void applyToScene(CQLayoutScene &scene, qreal t)
CQEffectDescription(const std::string &cn, qreal startScale, qreal endScale)
void setStartColor(const QColor &color)
void setCN(const std::string &cn)
const QColor & getStartColor() const
qreal getScaleStart() const
void setScaleEnd(qreal scale)
void setEndColor(const QColor &color)