SeExpr
Public Slots | Signals | Public Member Functions | Public Attributes | Private Types | Private Attributes | Friends | List of all members
CurveScene Class Reference

#include <ExprCurve.h>

Inheritance diagram for CurveScene:

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)
 
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 
void drawRect ()
 
void drawPoly ()
 
void drawPoints ()
 
void emitCurveChanged ()
 
void rebuildCurve ()
 

Public Attributes

std::vector< T_CURVE::CV_cvs
 

Private Types

typedef SeExpr2::Curve< 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 ExprCurve
 

Detailed Description

Definition at line 59 of file ExprCurve.h.

Member Typedef Documentation

typedef SeExpr2::Curve<double> CurveScene::T_CURVE
private

Definition at line 63 of file ExprCurve.h.

Definition at line 64 of file ExprCurve.h.

Constructor & Destructor Documentation

CurveScene::CurveScene ( )

Definition at line 53 of file ExprCurve.cpp.

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

CurveScene::~CurveScene ( )

Definition at line 59 of file ExprCurve.cpp.

References _curve.

Member Function Documentation

void CurveScene::addPoint ( double  x,
double  y,
const T_INTERP  interp,
const bool  select = true 
)
void CurveScene::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
virtual

Definition at line 160 of file ExprCurve.cpp.

References _selectedItem, and removePoint().

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 241 of file ExprCurve.cpp.

References _baseRect, _height, and _width.

Referenced by resize().

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

Definition at line 197 of file ExprCurve.cpp.

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

void CurveScene::keyPressEvent ( QKeyEvent *  event)
virtual

Definition at line 112 of file ExprCurve.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 190 of file ExprCurve.cpp.

References _lmb.

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

Definition at line 41 of file ExprCurve.cpp.

References _cvs.

Referenced by ExprCurve::openDetail().

void CurveScene::removePoint ( const int  index)
void CurveScene::resize ( const int  width,
const int  height 
)
slot

Definition at line 64 of file ExprCurve.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 ExprCurve
friend

Definition at line 92 of file ExprCurve.h.

Member Data Documentation

QGraphicsRectItem* CurveScene::_baseRect
private

Definition at line 114 of file ExprCurve.h.

Referenced by drawRect().

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

Definition at line 111 of file ExprCurve.h.

Referenced by drawPoints(), and mousePressEvent().

T_CURVE* CurveScene::_curve
private

Definition at line 95 of file ExprCurve.h.

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

QGraphicsPolygonItem* CurveScene::_curvePoly
private

Definition at line 113 of file ExprCurve.h.

Referenced by drawPoly().

std::vector<T_CURVE::CV> CurveScene::_cvs
int CurveScene::_height
private
T_INTERP CurveScene::_interp
private

Definition at line 110 of file ExprCurve.h.

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

bool CurveScene::_lmb
private

Definition at line 115 of file ExprCurve.h.

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

int CurveScene::_selectedItem
private
int CurveScene::_width
private

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