CurveScene Class Reference

#include <SeExprEdCurve.h>

List of all members.

Public Slots

void interpChanged (const int interp)
void selPosChanged (double pos)
void selValChanged (double val)
void resize (const int width, const int height)

Signals

void cvSelected (double x, double y, T_INTERP interp)
void curveChanged ()

Public Member Functions

 CurveScene ()
 ~CurveScene ()
void addPoint (double x, double 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)
void drawRect ()
void drawPoly ()
void drawPoints ()
void emitCurveChanged ()
void rebuildCurve ()

Public Attributes

std::vector< T_CURVE::CV_cvs

Private Types

typedef SeExpr::SeCurve< double > T_CURVE
typedef T_CURVE::InterpType T_INTERP

Private Attributes

T_CURVE_curve
int _width
int _height
T_INTERP _interp
std::vector
< QGraphicsEllipseItem * > 
_circleObjects
int _selectedItem
QGraphicsPolygonItem * _curvePoly
QGraphicsRectItem * _baseRect
bool _lmb

Friends

class SeExprEdCurve

Detailed Description

Definition at line 52 of file SeExprEdCurve.h.


Member Typedef Documentation

typedef SeExpr::SeCurve<double> CurveScene::T_CURVE [private]

Definition at line 56 of file SeExprEdCurve.h.

Definition at line 57 of file SeExprEdCurve.h.


Constructor & Destructor Documentation

CurveScene::CurveScene (  ) 

Definition at line 46 of file SeExprEdCurve.cpp.

References _height, _width, rebuildCurve(), and resize().

CurveScene::~CurveScene (  ) 

Definition at line 52 of file SeExprEdCurve.cpp.

References _curve.


Member Function Documentation

void CurveScene::addPoint ( double  x,
double  y,
const T_INTERP  interp,
const bool  select = true 
)
void CurveScene::curveChanged (  )  [signal]

Referenced by emitCurveChanged().

void CurveScene::cvSelected ( double  x,
double  y,
T_INTERP  interp 
) [signal]

Referenced by mouseMoveEvent(), and mousePressEvent().

void CurveScene::drawPoints (  ) 
void CurveScene::drawPoly (  ) 
void CurveScene::drawRect (  ) 

Definition at line 220 of file SeExprEdCurve.cpp.

References _baseRect, _height, and _width.

Referenced by resize().

void CurveScene::emitCurveChanged (  ) 
void CurveScene::interpChanged ( const int  interp  )  [slot]

Definition at line 176 of file SeExprEdCurve.cpp.

References _cvs, _interp, _selectedItem, drawPoly(), emitCurveChanged(), and rebuildCurve().

void CurveScene::keyPressEvent ( QKeyEvent *  event  )  [virtual]

Definition at line 105 of file SeExprEdCurve.cpp.

References _selectedItem, and removePoint().

void CurveScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent  )  [virtual]
void CurveScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent  )  [virtual]
void CurveScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent  )  [virtual]

Definition at line 169 of file SeExprEdCurve.cpp.

References _lmb.

void CurveScene::rebuildCurve (  ) 
void CurveScene::removeAll (  ) 

Definition at line 34 of file SeExprEdCurve.cpp.

References _cvs.

Referenced by SeExprEdCurve::openDetail().

void CurveScene::removePoint ( const int  index  ) 

Definition at line 94 of file SeExprEdCurve.cpp.

References _cvs, _selectedItem, drawPoints(), drawPoly(), emitCurveChanged(), and rebuildCurve().

Referenced by keyPressEvent().

void CurveScene::resize ( const int  width,
const int  height 
) [slot]

Definition at line 57 of file SeExprEdCurve.cpp.

References _height, _width, drawPoints(), drawPoly(), and drawRect().

Referenced by CurveScene().

void CurveScene::selPosChanged ( double  pos  )  [slot]
void CurveScene::selValChanged ( double  val  )  [slot]

Friends And Related Function Documentation

friend class SeExprEdCurve [friend]

Definition at line 85 of file SeExprEdCurve.h.


Member Data Documentation

QGraphicsRectItem* CurveScene::_baseRect [private]

Definition at line 107 of file SeExprEdCurve.h.

Referenced by drawRect().

std::vector<QGraphicsEllipseItem *> CurveScene::_circleObjects [private]

Definition at line 104 of file SeExprEdCurve.h.

Referenced by drawPoints(), and mousePressEvent().

Definition at line 88 of file SeExprEdCurve.h.

Referenced by drawPoly(), mousePressEvent(), rebuildCurve(), and ~CurveScene().

QGraphicsPolygonItem* CurveScene::_curvePoly [private]

Definition at line 106 of file SeExprEdCurve.h.

Referenced by drawPoly().

int CurveScene::_height [private]

Definition at line 103 of file SeExprEdCurve.h.

Referenced by interpChanged(), mouseMoveEvent(), and mousePressEvent().

bool CurveScene::_lmb [private]

Definition at line 108 of file SeExprEdCurve.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

int CurveScene::_width [private]

The documentation for this class was generated from the following files:

Generated on 25 Jul 2013 for SeExpr by  doxygen 1.6.1