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

#include <ExprColorCurve.h>

Inheritance diagram for CCurveScene:

Public Slots

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

Signals

void cvSelected (double x, const SeExpr2::Vec3d y, const T_INTERP interp)
 
void curveChanged ()
 

Public Member Functions

 CCurveScene ()
 
 ~CCurveScene ()
 
void addPoint (double x, const SeExpr2::Vec3d 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 drawPoints ()
 
QPixmap & getPixmap ()
 
void emitCurveChanged ()
 
void rebuildCurve ()
 

Public Attributes

std::vector< T_CURVE::CV_cvs
 

Private Types

typedef SeExpr2::Curve
< SeExpr2::Vec3d
T_CURVE
 
typedef T_CURVE::InterpType T_INTERP
 

Private Member Functions

QByteArray getCPixmap ()
 

Private Attributes

T_CURVE_curve
 
int _width
 
int _height
 
SeExpr2::Vec3d _color
 
T_INTERP _interp
 
std::vector
< QGraphicsEllipseItem * > 
_circleObjects
 
int _selectedItem
 
QPixmap _pixmap
 
bool _pixmapDirty
 
QWidget * _baseRectW
 
QGraphicsProxyWidget * _baseRect
 
bool _lmb
 

Friends

class ExprColorCurve
 

Detailed Description

Definition at line 42 of file ExprColorCurve.h.

Member Typedef Documentation

Definition at line 46 of file ExprColorCurve.h.

Definition at line 47 of file ExprColorCurve.h.

Constructor & Destructor Documentation

CCurveScene::CCurveScene ( )

Definition at line 43 of file ExprColorCurve.cpp.

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

CCurveScene::~CCurveScene ( )

Definition at line 50 of file ExprColorCurve.cpp.

References _curve.

Member Function Documentation

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

Definition at line 179 of file ExprColorCurve.cpp.

References _selectedItem, and removePoint().

void CCurveScene::curveChanged ( )
signal

Referenced by emitCurveChanged().

void CCurveScene::cvSelected ( double  x,
const SeExpr2::Vec3d  y,
const T_INTERP  interp 
)
signal
void CCurveScene::drawPoints ( )
void CCurveScene::drawRect ( )

Definition at line 293 of file ExprColorCurve.cpp.

References _baseRect, _baseRectW, _height, and _width.

Referenced by resize().

void CCurveScene::emitCurveChanged ( )
QByteArray CCurveScene::getCPixmap ( )
private

Definition at line 255 of file ExprColorCurve.cpp.

References _curve, _height, _width, SeExpr2::Curve< T >::getValue(), SeExpr2::max(), and SeExpr2::min().

Referenced by getPixmap().

QPixmap & CCurveScene::getPixmap ( )

Definition at line 242 of file ExprColorCurve.cpp.

References _height, _pixmap, _pixmapDirty, _width, and getCPixmap().

Referenced by ExprCBoxWidget::paintEvent().

void CCurveScene::interpChanged ( const int  interp)
slot
void CCurveScene::keyPressEvent ( QKeyEvent *  event)
virtual

Definition at line 113 of file ExprColorCurve.cpp.

References _selectedItem, and removePoint().

void CCurveScene::mouseMoveEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
virtual
void CCurveScene::mousePressEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
virtual
void CCurveScene::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  mouseEvent)
virtual

Definition at line 188 of file ExprColorCurve.cpp.

References _lmb.

void CCurveScene::rebuildCurve ( )
void CCurveScene::removeAll ( )

Definition at line 107 of file ExprColorCurve.cpp.

References _cvs.

Referenced by ExprColorCurve::openDetail().

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

Definition at line 56 of file ExprColorCurve.cpp.

References _height, _pixmap, _pixmapDirty, _width, drawPoints(), and drawRect().

Referenced by CCurveScene().

void CCurveScene::selPosChanged ( double  pos)
slot
void CCurveScene::selValChanged ( const SeExpr2::Vec3d val)
slot

Friends And Related Function Documentation

friend class ExprColorCurve
friend

Definition at line 75 of file ExprColorCurve.h.

Member Data Documentation

QGraphicsProxyWidget* CCurveScene::_baseRect
private

Definition at line 100 of file ExprColorCurve.h.

Referenced by drawRect().

QWidget* CCurveScene::_baseRectW
private
std::vector<QGraphicsEllipseItem *> CCurveScene::_circleObjects
private

Definition at line 95 of file ExprColorCurve.h.

Referenced by drawPoints(), and mousePressEvent().

SeExpr2::Vec3d CCurveScene::_color
private

Definition at line 93 of file ExprColorCurve.h.

Referenced by mousePressEvent(), and selValChanged().

T_CURVE* CCurveScene::_curve
private

Definition at line 77 of file ExprColorCurve.h.

Referenced by getCPixmap(), mousePressEvent(), rebuildCurve(), and ~CCurveScene().

std::vector<T_CURVE::CV> CCurveScene::_cvs
int CCurveScene::_height
private

Definition at line 92 of file ExprColorCurve.h.

Referenced by CCurveScene(), drawPoints(), drawRect(), getCPixmap(), getPixmap(), and resize().

T_INTERP CCurveScene::_interp
private

Definition at line 94 of file ExprColorCurve.h.

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

bool CCurveScene::_lmb
private

Definition at line 101 of file ExprColorCurve.h.

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

QPixmap CCurveScene::_pixmap
private

Definition at line 97 of file ExprColorCurve.h.

Referenced by getPixmap(), and resize().

bool CCurveScene::_pixmapDirty
private
int CCurveScene::_selectedItem
private
int CCurveScene::_width
private

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