CurveEditor Class Reference


Detailed Description

Definition at line 421 of file widgets.h.

#include <widgets.h>

List of all members.

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

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 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]

Member Data Documentation

Definition at line 430 of file widgets.h.

bool s_bSnap [static]

Definition at line 431 of file widgets.h.

Definition at line 432 of file widgets.h.

bool m_bNurbs

Definition at line 432 of file widgets.h.

Definition at line 433 of file widgets.h.

Definition at line 433 of file widgets.h.

void* m_pCurve

Definition at line 434 of file widgets.h.

int m_iCanvasWidth [protected]

Definition at line 452 of file widgets.h.

int m_iCanvasHeight [protected]

Definition at line 452 of file widgets.h.

CPBox* m_aBoxes[16] [protected]

Definition at line 453 of file widgets.h.

CPBox* m_pSelectedBox [protected]

Definition at line 454 of file widgets.h.

class Vector m_vDragDistance [protected]

Definition at line 455 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