SeExpr
|
#include <ExprColorCurve.h>
Public Slots | |
void | interpChanged (const int interp) |
void | selPosChanged (double pos) |
void | selValChanged (const SeExpr2::Vec3d &val) |
void | resize (const int width, const int height) |
Signals | |
void | cvSelected (double x, const SeExpr2::Vec3d y, const T_INTERP interp) |
void | curveChanged () |
Public Member Functions | |
CCurveScene () | |
~CCurveScene () | |
void | addPoint (double x, const SeExpr2::Vec3d y, const T_INTERP interp, const bool select=true) |
void | removePoint (const int index) |
void | removeAll () |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) |
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
void | drawRect () |
void | drawPoints () |
QPixmap & | getPixmap () |
void | emitCurveChanged () |
void | rebuildCurve () |
Public Attributes | |
std::vector< T_CURVE::CV > | _cvs |
Private Types | |
typedef SeExpr2::Curve < SeExpr2::Vec3d > | T_CURVE |
typedef T_CURVE::InterpType | T_INTERP |
Private Member Functions | |
QByteArray | getCPixmap () |
Private Attributes | |
T_CURVE * | _curve |
int | _width |
int | _height |
SeExpr2::Vec3d | _color |
T_INTERP | _interp |
std::vector < QGraphicsEllipseItem * > | _circleObjects |
int | _selectedItem |
QPixmap | _pixmap |
bool | _pixmapDirty |
QWidget * | _baseRectW |
QGraphicsProxyWidget * | _baseRect |
bool | _lmb |
Friends | |
class | ExprColorCurve |
Definition at line 42 of file ExprColorCurve.h.
|
private |
Definition at line 46 of file ExprColorCurve.h.
|
private |
Definition at line 47 of file ExprColorCurve.h.
CCurveScene::CCurveScene | ( | ) |
Definition at line 43 of file ExprColorCurve.cpp.
References _height, _width, rebuildCurve(), and resize().
CCurveScene::~CCurveScene | ( | ) |
Definition at line 50 of file ExprColorCurve.cpp.
References _curve.
void CCurveScene::addPoint | ( | double | x, |
const SeExpr2::Vec3d | y, | ||
const T_INTERP | interp, | ||
const bool | select = true |
||
) |
Definition at line 77 of file ExprColorCurve.cpp.
References _baseRectW, _cvs, _pixmapDirty, _selectedItem, SeExpr2::clamp(), cvSelected(), drawPoints(), and rebuildCurve().
Referenced by ExprColorCurve::addPoint(), and mousePressEvent().
|
virtual |
Definition at line 179 of file ExprColorCurve.cpp.
References _selectedItem, and removePoint().
|
signal |
Referenced by emitCurveChanged().
|
signal |
Referenced by addPoint(), mouseMoveEvent(), and mousePressEvent().
void CCurveScene::drawPoints | ( | ) |
Definition at line 308 of file ExprColorCurve.cpp.
References _circleObjects, _cvs, _height, SeExpr2::Curve< T >::CV::_pos, _selectedItem, SeExpr2::Curve< T >::CV::_val, and _width.
Referenced by addPoint(), mouseMoveEvent(), mousePressEvent(), removePoint(), resize(), selPosChanged(), and selValChanged().
void CCurveScene::drawRect | ( | ) |
Definition at line 293 of file ExprColorCurve.cpp.
References _baseRect, _baseRectW, _height, and _width.
Referenced by resize().
void CCurveScene::emitCurveChanged | ( | ) |
Definition at line 237 of file ExprColorCurve.cpp.
References curveChanged().
Referenced by interpChanged(), mouseMoveEvent(), mousePressEvent(), ExprColorCurve::openDetail(), removePoint(), selPosChanged(), and selValChanged().
|
private |
Definition at line 255 of file ExprColorCurve.cpp.
References _curve, _height, _width, SeExpr2::Curve< T >::getValue(), SeExpr2::max(), and SeExpr2::min().
Referenced by getPixmap().
QPixmap & CCurveScene::getPixmap | ( | ) |
Definition at line 242 of file ExprColorCurve.cpp.
References _height, _pixmap, _pixmapDirty, _width, and getCPixmap().
Referenced by ExprCBoxWidget::paintEvent().
|
slot |
Definition at line 195 of file ExprColorCurve.cpp.
References _baseRectW, _cvs, _interp, _pixmapDirty, _selectedItem, emitCurveChanged(), and rebuildCurve().
|
virtual |
Definition at line 113 of file ExprColorCurve.cpp.
References _selectedItem, and removePoint().
|
virtual |
Definition at line 161 of file ExprColorCurve.cpp.
References _baseRectW, _cvs, _interp, _lmb, _pixmapDirty, _selectedItem, _width, SeExpr2::clamp(), cvSelected(), drawPoints(), emitCurveChanged(), point, and rebuildCurve().
|
virtual |
Definition at line 122 of file ExprColorCurve.cpp.
References _circleObjects, _color, _curve, _cvs, SeExpr2::Curve< T >::CV::_interp, _interp, _lmb, _selectedItem, _width, addPoint(), SeExpr2::clamp(), cvSelected(), drawPoints(), emitCurveChanged(), SeExpr2::Curve< T >::getLowerBoundCV(), SeExpr2::Curve< T >::getValue(), SeExpr2::Curve< T >::kMonotoneSpline, and SeExpr2::Curve< T >::kNone.
|
virtual |
Definition at line 188 of file ExprColorCurve.cpp.
References _lmb.
void CCurveScene::rebuildCurve | ( | ) |
Definition at line 68 of file ExprColorCurve.cpp.
References _curve, _cvs, SeExpr2::Curve< T >::addPoint(), and SeExpr2::Curve< T >::preparePoints().
Referenced by addPoint(), CCurveScene(), interpChanged(), mouseMoveEvent(), removePoint(), selPosChanged(), and selValChanged().
void CCurveScene::removeAll | ( | ) |
Definition at line 107 of file ExprColorCurve.cpp.
References _cvs.
Referenced by ExprColorCurve::openDetail().
void CCurveScene::removePoint | ( | const int | index | ) |
Definition at line 95 of file ExprColorCurve.cpp.
References _baseRectW, _cvs, _pixmapDirty, _selectedItem, drawPoints(), emitCurveChanged(), index(), and rebuildCurve().
Referenced by contextMenuEvent(), and keyPressEvent().
|
slot |
Definition at line 56 of file ExprColorCurve.cpp.
References _height, _pixmap, _pixmapDirty, _width, drawPoints(), and drawRect().
Referenced by CCurveScene().
|
slot |
Definition at line 208 of file ExprColorCurve.cpp.
References _baseRectW, _cvs, _pixmapDirty, _selectedItem, SeExpr2::clamp(), drawPoints(), emitCurveChanged(), and rebuildCurve().
|
slot |
Definition at line 222 of file ExprColorCurve.cpp.
References _baseRectW, _color, _cvs, _pixmapDirty, _selectedItem, drawPoints(), emitCurveChanged(), and rebuildCurve().
Referenced by ExprColorCurve::setSwatchColor().
|
friend |
Definition at line 75 of file ExprColorCurve.h.
|
private |
Definition at line 100 of file ExprColorCurve.h.
Referenced by drawRect().
|
private |
Definition at line 99 of file ExprColorCurve.h.
Referenced by addPoint(), drawRect(), interpChanged(), mouseMoveEvent(), removePoint(), selPosChanged(), and selValChanged().
|
private |
Definition at line 95 of file ExprColorCurve.h.
Referenced by drawPoints(), and mousePressEvent().
|
private |
Definition at line 93 of file ExprColorCurve.h.
Referenced by mousePressEvent(), and selValChanged().
|
private |
Definition at line 77 of file ExprColorCurve.h.
Referenced by getCPixmap(), mousePressEvent(), rebuildCurve(), and ~CCurveScene().
std::vector<T_CURVE::CV> CCurveScene::_cvs |
Definition at line 73 of file ExprColorCurve.h.
Referenced by addPoint(), CCurveControl::curveChanged(), drawPoints(), interpChanged(), mouseMoveEvent(), mousePressEvent(), ExprColorCurve::openDetail(), rebuildCurve(), removeAll(), removePoint(), selPosChanged(), and selValChanged().
|
private |
Definition at line 92 of file ExprColorCurve.h.
Referenced by CCurveScene(), drawPoints(), drawRect(), getCPixmap(), getPixmap(), and resize().
|
private |
Definition at line 94 of file ExprColorCurve.h.
Referenced by interpChanged(), mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 101 of file ExprColorCurve.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 97 of file ExprColorCurve.h.
Referenced by getPixmap(), and resize().
|
private |
Definition at line 98 of file ExprColorCurve.h.
Referenced by addPoint(), getPixmap(), interpChanged(), mouseMoveEvent(), removePoint(), resize(), selPosChanged(), and selValChanged().
|
private |
Definition at line 96 of file ExprColorCurve.h.
Referenced by addPoint(), contextMenuEvent(), drawPoints(), interpChanged(), keyPressEvent(), mouseMoveEvent(), mousePressEvent(), removePoint(), selPosChanged(), and selValChanged().
|
private |
Definition at line 91 of file ExprColorCurve.h.
Referenced by CCurveScene(), drawPoints(), drawRect(), getCPixmap(), getPixmap(), mouseMoveEvent(), mousePressEvent(), and resize().