28 #include <QtCore/QObject>
29 #include <QtGui/QComboBox>
30 #include <QtGui/QGraphicsPolygonItem>
31 #include <QtGui/QGraphicsView>
32 #include <QtGui/QLineEdit>
34 #include <SeExpr2/Curve.h>
44 setTransformationAnchor(QGraphicsView::NoAnchor);
45 setResizeAnchor(QGraphicsView::NoAnchor);
90 std::vector<T_CURVE::CV>
_cvs;
100 void resize(
const int width,
const int height);
126 ExprCurve(QWidget* parent = 0, QString pLabel =
"", QString vLabel =
"", QString iLabel =
"",
127 bool expandable=
true);
131 void addPoint(
const double x,
const double y,
const T_INTERP interp,
bool select=
false);
void selValChangedSignal(double val)
SeExpr2::Curve< double > T_CURVE
std::vector< QGraphicsEllipseItem * > _circleObjects
Interpolation curve class for double->double and double->Vec3D.
void cvSelectedSlot(double pos, double val, T_INTERP interp)
void resize(const int width, const int height)
void resizeSignal(int width, int height)
QComboBox * _interpComboBox
virtual void resizeEvent(QResizeEvent *event)
virtual void keyPressEvent(QKeyEvent *event)
void selValChanged(double val)
SeExpr2::Curve< double > T_CURVE
The result is computed int int< br >< divstyle="margin-left:40px;"> Picks values randomly between loRange and hiRange based on supplied index(which is automatically hashed). 
void addPoint(const double x, const double y, const T_INTERP interp, bool select=false)
T_CURVE::InterpType T_INTERP
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
void selPosChangedSignal(double pos)
void addPoint(double x, double y, const T_INTERP interp, const bool select=true)
</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
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
void interpChanged(const int interp)
void selPosChanged(double pos)
void cvSelected(double x, double y, T_INTERP interp)
void removePoint(const int index)
QGraphicsRectItem * _baseRect
QGraphicsPolygonItem * _curvePoly
ExprCurve(QWidget *parent=0, QString pLabel="", QString vLabel="", QString iLabel="", bool expandable=true)
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
T_CURVE::InterpType T_INTERP
InterpType
Supported interpolation types.
std::vector< T_CURVE::CV > _cvs
This is the same as the prman cellnoise function< br ></div >< br > float< b > float y< br > float< b > float y