#include <Nux/SplineCurveEditor.h>
Public Member Functions |
| SplineCurveEditor (NUX_FILE_LINE_PROTO) |
| ~SplineCurveEditor () |
void | SetControlPoints (const SplineKnot &splineKnot) |
const SplineKnot & | GetControlPoints () const |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
double | Eval (double t) |
void | RecvMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | RecvKeyEvent (GraphicsEngine &GfxContext, unsigned long eventType, unsigned long keysym, unsigned long state, const TCHAR *character, unsigned short keyCount) |
void | Reset () |
int | GetNumKnot () const |
SplineKnot::Knot | GetKnot (int i) const |
void | AddKnot (double x, double y, bool selected=false) |
Data Fields |
sigc::signal< void,
SplineCurveEditor * > | sigCurveChange |
Protected Member Functions |
void | InitializeWidgets () |
void | InitializeLayout () |
void | DestroyLayout () |
Constructor & Destructor Documentation
nux::SplineCurveEditor::SplineCurveEditor |
( |
NUX_FILE_LINE_PROTO |
| ) |
|
nux::SplineCurveEditor::~SplineCurveEditor |
( |
| ) |
|
Member Function Documentation
void nux::SplineCurveEditor::AddKnot |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
selected = false |
|
) |
| |
void nux::SplineCurveEditor::DestroyLayout |
( |
| ) |
[protected] |
virtual void nux::SplineCurveEditor::Draw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
virtual void nux::SplineCurveEditor::DrawContent |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
double nux::SplineCurveEditor::Eval |
( |
double |
t | ) |
|
const SplineKnot& nux::SplineCurveEditor::GetControlPoints |
( |
| ) |
const |
int nux::SplineCurveEditor::GetNumKnot |
( |
| ) |
const [inline] |
void nux::SplineCurveEditor::InitializeLayout |
( |
| ) |
[protected] |
void nux::SplineCurveEditor::InitializeWidgets |
( |
| ) |
[protected] |
virtual void nux::SplineCurveEditor::PostDraw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
virtual long nux::SplineCurveEditor::ProcessEvent |
( |
IEvent & |
ievent, |
|
|
long |
TraverseInfo, |
|
|
long |
ProcessEventInfo |
|
) |
| [virtual] |
void nux::SplineCurveEditor::RecvKeyEvent |
( |
GraphicsEngine & |
GfxContext, |
|
|
unsigned long |
eventType, |
|
|
unsigned long |
keysym, |
|
|
unsigned long |
state, |
|
|
const TCHAR * |
character, |
|
|
unsigned short |
keyCount |
|
) |
| |
void nux::SplineCurveEditor::RecvMouseDown |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| |
void nux::SplineCurveEditor::RecvMouseDrag |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
dx, |
|
|
int |
dy, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| |
void nux::SplineCurveEditor::RecvMouseUp |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned long |
button_flags, |
|
|
unsigned long |
key_flags |
|
) |
| |
void nux::SplineCurveEditor::Reset |
( |
| ) |
|
void nux::SplineCurveEditor::SetControlPoints |
( |
const SplineKnot & |
splineKnot | ) |
|
Field Documentation
The documentation for this class was generated from the following file: