#include <widgets.h>
Signals |
|
void | nurbsValueChanged () |
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) |
Public Attributes |
|
int | m_iSnapDistance |
bool | m_bReadOnly |
bool | m_bNurbs |
float | m_fGridSizeX |
float | m_fGridSizeY |
void * | m_pCurve |
Static Public Attributes |
|
static bool | s_bSnap |
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 | contextMenuEvent (QContextMenuEvent *pEvent) |
void | NurbsValueChanged () |
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 [16] |
CPBox * | m_pSelectedBox |
class Vector | m_vDragDistance |
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 nurbsValueChanged | ( | ) | [signal] |
QSize sizeHint | ( | void | ) | const [protected] |
void paintEvent | ( | QPaintEvent * | pe | ) | [protected] |
void resizeEvent | ( | QResizeEvent * | pEvent | ) | [protected] |
void mousePressEvent | ( | QMouseEvent * | pEvent | ) | [protected] |
void mouseReleaseEvent | ( | QMouseEvent * | pEvent | ) | [protected] |
void mouseMoveEvent | ( | QMouseEvent * | pEvent | ) | [protected] |
void contextMenuEvent | ( | QContextMenuEvent * | pEvent | ) | [protected] |
void NurbsValueChanged | ( | ) | [protected] |
int CanvasToScreenX | ( | float | f | ) | [protected] |
int CanvasToScreenY | ( | float | f | ) | [protected] |
float ScreenToCanvasX | ( | int | i | ) | [protected] |
float ScreenToCanvasY | ( | int | i | ) | [protected] |
int m_iSnapDistance |
bool
s_bSnap [static] |
bool m_bReadOnly |
bool m_bNurbs |
float m_fGridSizeX |
float m_fGridSizeY |
void* m_pCurve |
int
m_iCanvasWidth [protected] |
int
m_iCanvasHeight [protected] |
CPBox*
m_pSelectedBox [protected] |
class Vector
m_vDragDistance [protected] |