CurveEditor Class Reference


Detailed Description

Definition at line 430 of file widgets.h.

#include <widgets.h>

Inheritance diagram for CurveEditor:
Inheritance graph
[legend]

List of all members.

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]

Constructor & Destructor Documentation

CurveEditor ( QWidget pParent = 0,
const char *  sName = 0,
bool  bNurbs = false 
)

Member Function Documentation

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]
QSize sizeHint ( void  ) const [protected, virtual]

Reimplemented from QFrame.

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.

void keyPressEvent ( QKeyEvent pEvent ) [protected, virtual]

Reimplemented from QWidget.

void keyReleaseEvent ( QKeyEvent 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]

Member Data Documentation

bool m_bSnap

Definition at line 444 of file widgets.h.

bool m_bNurbs

Definition at line 444 of file widgets.h.

void* m_pCurve

Definition at line 446 of file widgets.h.

int m_iCanvasWidth [protected]

Definition at line 465 of file widgets.h.

int m_iCanvasHeight [protected]

Definition at line 465 of file widgets.h.

CPBox* m_aBoxes[MAX_CURVE_POINTS] [protected]

Definition at line 466 of file widgets.h.

CPBox* m_pSelectedBox [protected]

Definition at line 467 of file widgets.h.

QPoint m_aDeleteCoordinates[MAX_CURVE_POINTS] [protected]

Definition at line 468 of file widgets.h.


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

CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor
CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor CurveEditor