29#include <QGraphicsPolygonItem>
30#include <QGraphicsView>
42 setTransformationAnchor(QGraphicsView::NoAnchor);
43 setResizeAnchor(QGraphicsView::NoAnchor);
88 std::vector<T_CURVE::CV>
_cvs;
99 void resize(
const int width,
const int height);
127 bool expandable =
true);
131 void addPoint(
const double x,
const double y,
const T_INTERP interp,
bool select =
false);
virtual void resizeEvent(QResizeEvent *event)
void resizeSignal(int width, int height)
void cvSelected(double x, double y, T_INTERP interp)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
void resize(const int width, const int height)
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
QGraphicsRectItem * _baseRect
void selValChanged(double val)
void removePoint(const int index)
T_CURVE::InterpType T_INTERP
std::vector< QGraphicsEllipseItem * > _circleObjects
virtual void keyPressEvent(QKeyEvent *event)
void addPoint(double x, double y, const T_INTERP interp, const bool select=true)
QGraphicsPolygonItem * _curvePoly
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
std::vector< T_CURVE::CV > _cvs
SeExpr2::Curve< double > T_CURVE
void selPosChanged(double pos)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
void interpChanged(const int interp)
void addPoint(const double x, const double y, const T_INTERP interp, bool select=false)
void cvSelectedSlot(double pos, double val, T_INTERP interp)
void selValChangedSignal(double val)
SeExpr2::Curve< double > T_CURVE
QComboBox * _interpComboBox
void selPosChangedSignal(double pos)
T_CURVE::InterpType T_INTERP
Interpolation curve class for double->double and double->Vec3D.
InterpType
Supported interpolation types.
</pre >< h3 > A simple variable reference</h3 > This is not a very interesting subclass of expression until we add some additional variables Variables on some applications may be very dynamic In this we only need x
This is the same as the prman cellnoise function< br ></div >< br > float< b > float y< br > float< b > float y
The result is computed int int< br >< div style="margin-left: 40px;"> Picks values randomly between loRange and hiRange based on supplied index(which is automatically hashed).