CCurveScene Class Reference

#include <SeExprEdColorCurve.h>

List of all members.

Public Slots

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

Signals

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

Public Member Functions

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

Public Attributes

std::vector< T_CURVE::CV_cvs

Private Types

typedef SeExpr::SeCurve< SeVec3dT_CURVE
typedef T_CURVE::InterpType T_INTERP

Private Member Functions

QByteArray getCPixmap ()

Private Attributes

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

Friends

class SeExprEdColorCurve

Detailed Description

Definition at line 35 of file SeExprEdColorCurve.h.


Member Typedef Documentation

Definition at line 39 of file SeExprEdColorCurve.h.

Definition at line 40 of file SeExprEdColorCurve.h.


Constructor & Destructor Documentation

CCurveScene::CCurveScene (  ) 

Definition at line 35 of file SeExprEdColorCurve.cpp.

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

CCurveScene::~CCurveScene (  ) 

Definition at line 42 of file SeExprEdColorCurve.cpp.

References _curve.


Member Function Documentation

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

Referenced by emitCurveChanged().

void CCurveScene::cvSelected ( double  x,
const SeVec3d  y,
const T_INTERP  interp 
) [signal]
void CCurveScene::drawPoints (  ) 
void CCurveScene::drawRect (  ) 

Definition at line 270 of file SeExprEdColorCurve.cpp.

References _baseRect, _baseRectW, _height, and _width.

Referenced by resize().

void CCurveScene::emitCurveChanged (  ) 
QByteArray CCurveScene::getCPixmap (  )  [private]
QPixmap & CCurveScene::getPixmap (  ) 

Definition at line 219 of file SeExprEdColorCurve.cpp.

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

Referenced by SeExprEdCBoxWidget::paintEvent().

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

Definition at line 105 of file SeExprEdColorCurve.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 165 of file SeExprEdColorCurve.cpp.

References _lmb.

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

Definition at line 99 of file SeExprEdColorCurve.cpp.

References _cvs.

Referenced by SeExprEdColorCurve::openDetail().

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

Definition at line 48 of file SeExprEdColorCurve.cpp.

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

Referenced by CCurveScene().

void CCurveScene::selPosChanged ( double  pos  )  [slot]
void CCurveScene::selValChanged ( const SeVec3d val  )  [slot]

Friends And Related Function Documentation

friend class SeExprEdColorCurve [friend]

Definition at line 68 of file SeExprEdColorCurve.h.


Member Data Documentation

QGraphicsProxyWidget* CCurveScene::_baseRect [private]

Definition at line 93 of file SeExprEdColorCurve.h.

Referenced by drawRect().

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

Definition at line 88 of file SeExprEdColorCurve.h.

Referenced by drawPoints(), and mousePressEvent().

Definition at line 86 of file SeExprEdColorCurve.h.

Referenced by mousePressEvent(), and selValChanged().

Definition at line 70 of file SeExprEdColorCurve.h.

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

int CCurveScene::_height [private]

Definition at line 85 of file SeExprEdColorCurve.h.

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

Definition at line 87 of file SeExprEdColorCurve.h.

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

bool CCurveScene::_lmb [private]

Definition at line 94 of file SeExprEdColorCurve.h.

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

QPixmap CCurveScene::_pixmap [private]

Definition at line 90 of file SeExprEdColorCurve.h.

Referenced by getPixmap(), and resize().

bool CCurveScene::_pixmapDirty [private]
int CCurveScene::_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