19#include <QGraphicsPolygonItem>
20#include <QGraphicsView>
32 setTransformationAnchor(QGraphicsView::NoAnchor);
33 setResizeAnchor(QGraphicsView::NoAnchor);
64 void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
override;
78 std::vector<T_CURVE::CV>
_cvs;
89 void resize(
int width,
int height);
114 QString pLabel = QString(),
115 QString vLabel = QString(),
116 QString iLabel = QString(),
117 bool expandable =
true);
123 _scene->addPoint(x, y, interp, select);
~CurveGraphicsView() override=default
void resizeEvent(QResizeEvent *event) override
void resizeSignal(int width, int height)
void cvSelected(double x, double y, T_INTERP interp)
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent) override
T_CURVE::InterpType T_INTERP
void removePoint(int index)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent) override
QGraphicsRectItem * _baseRect
void resize(int width, int height)
void selValChanged(double val)
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent) override
std::vector< QGraphicsEllipseItem * > _circleObjects
void addPoint(double x, double y, T_INTERP interp, bool select=true)
QGraphicsPolygonItem * _curvePoly
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) override
void interpChanged(int interp)
KSeExpr::Curve< double > T_CURVE
std::vector< T_CURVE::CV > _cvs
void selPosChanged(double pos)
void keyPressEvent(QKeyEvent *event) override
void cvSelectedSlot(double pos, double val, T_INTERP interp)
void addPoint(double x, double y, T_INTERP interp, bool select=false)
T_CURVE::InterpType T_INTERP
ExprCurve(QWidget *parent=nullptr, QString pLabel=QString(), QString vLabel=QString(), QString iLabel=QString(), bool expandable=true)
void selValChangedSignal(double val)
QComboBox * _interpComboBox
void selPosChangedSignal(double pos)
~ExprCurve() override=default
KSeExpr::Curve< double > T_CURVE
Interpolation curve class for double->double and double->Vec3D.