Go to the documentation of this file.
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);
QGraphicsPolygonItem * _curvePoly
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).  
void selPosChangedSignal(double pos)
T_CURVE::InterpType T_INTERP
void cvSelectedSlot(double pos, double val, T_INTERP interp)
void selValChangedSignal(double val)
std::vector< QGraphicsEllipseItem * > _circleObjects
void selValChanged(double val)
void addPoint(const double x, const double y, const T_INTERP interp, bool select=false)
SeExpr2::Curve< double > T_CURVE
QComboBox * _interpComboBox
void resize(const int width, const int height)
virtual void resizeEvent(QResizeEvent *event)
This is the same as the prman cellnoise function< br ></div >< br > float< b > float y< br > float< b > float y
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
void resizeSignal(int width, int height)
Interpolation curve class for double->double and double->Vec3D.
void addPoint(double x, double y, const T_INTERP interp, const bool select=true)
QGraphicsRectItem * _baseRect
std::vector< T_CURVE::CV > _cvs
T_CURVE::InterpType T_INTERP
void interpChanged(const int interp)
void removePoint(const int index)
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
InterpType
Supported interpolation types.
virtual void keyPressEvent(QKeyEvent *event)
SeExpr2::Curve< double > T_CURVE
</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
ExprCurve(QWidget *parent=0, QString pLabel="", QString vLabel="", QString iLabel="", bool expandable=true)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
void selPosChanged(double pos)
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
void cvSelected(double x, double y, T_INTERP interp)