#include <widgets.h>

Signals |
|
| void | nurbsValueChanged () |
| void | CurveReadyToBeApplied () |
Public Member Functions |
|
| CurveEditor (QWidget *pParent=0, const char *sName=0, bool bNurbs=false) | |
| void | SelectCP (CPBox *pCP) |
| void | DeleteCP (void) |
| void | AddCP (float x, float y) |
| void | Init (void *pCurve=0) |
| void | SetFixedSize (int w, int h) |
| void | MakeReadOnly () |
| void | NurbsValueChanged () |
| void | ApplyCurve () |
Public Attributes |
|
| bool | m_bSnap |
| bool | m_bNurbs |
| int | m_iDeleteHandleSize |
| void * | m_pCurve |
Protected Member Functions |
|
| QSize | sizeHint (void) const |
| void | paintEvent (QPaintEvent *pe) |
| void | resizeEvent (QResizeEvent *pEvent) |
| void | mousePressEvent (QMouseEvent *pEvent) |
| void | mouseReleaseEvent (QMouseEvent *pEvent) |
| void | mouseMoveEvent (QMouseEvent *pEvent) |
| void | keyPressEvent (QKeyEvent *pEvent) |
| void | keyReleaseEvent (QKeyEvent *pEvent) |
| int | CanvasToScreenX (float f) |
| int | CanvasToScreenY (float f) |
| float | ScreenToCanvasX (int i) |
| float | ScreenToCanvasY (int i) |
Protected Attributes |
|
| int | m_iCanvasWidth |
| int | m_iCanvasHeight |
| CPBox * | m_aBoxes [MAX_CURVE_POINTS] |
| CPBox * | m_pSelectedBox |
| QPoint | m_aDeleteCoordinates [MAX_CURVE_POINTS] |
| CurveEditor | ( | QWidget * | pParent = 0, |
| const char * | sName = 0, |
||
| bool | bNurbs =
false |
||
| ) |
| void SelectCP | ( | CPBox * | pCP | ) |
| void DeleteCP | ( | void | ) |
| void AddCP | ( | float | x, |
| float | y | ||
| ) |
| void Init | ( | void * | pCurve = 0 |
) |
| void SetFixedSize | ( | int | w, |
| int | h | ||
| ) |
| void MakeReadOnly | ( | ) |
| void NurbsValueChanged | ( | ) |
| void ApplyCurve | ( | ) |
| void nurbsValueChanged | ( | ) | [signal] |
| void CurveReadyToBeApplied | ( | ) | [signal] |
| void paintEvent | ( | QPaintEvent * | pe | ) | [protected, virtual] |
Reimplemented from QFrame.
| void resizeEvent | ( | QResizeEvent * | pEvent | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mousePressEvent | ( | QMouseEvent * | pEvent | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mouseReleaseEvent | ( | QMouseEvent * | pEvent | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mouseMoveEvent | ( | QMouseEvent * | pEvent | ) | [protected, virtual] |
Reimplemented from QWidget.
| int CanvasToScreenX | ( | float | f | ) | [protected] |
| int CanvasToScreenY | ( | float | f | ) | [protected] |
| float ScreenToCanvasX | ( | int | i | ) | [protected] |
| float ScreenToCanvasY | ( | int | i | ) | [protected] |
| bool m_bSnap |
| bool m_bNurbs |
| void* m_pCurve |
int
m_iCanvasWidth [protected] |
int
m_iCanvasHeight [protected] |
CPBox*
m_pSelectedBox [protected] |
QPoint
m_aDeleteCoordinates[MAX_CURVE_POINTS]
[protected] |