nux-0.9.48
|
A User Interface component hosting a 4x4 Matrix. More...
#include <Nux/Matrix4Editor.h>
Public Member Functions | |
Matrix4Editor (Matrix4 matrix=Matrix4::IDENTITY(), NUX_FILE_LINE_PROTO) | |
~Matrix4Editor () | |
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) |
void | SetParameterName (const char *parameter_name) |
void | EmitButtonPress () |
void | EmitIncrementComponent (int index) |
void | EmitDecrementComponent (int index) |
void | EmitComponentValue (float f, int index) |
void | SetMatrix (Matrix4 matrix) |
Set the UI matrix. | |
Matrix4 | GetMatrix () const |
Get the UI matrix. | |
Data Fields | |
sigc::signal< void, int, char * > | sigValidateKeyboarEntry |
sigc::signal< void, Matrix4Editor * > | sigMatrixChanged |
A User Interface component hosting a 4x4 Matrix.
Matrix4Editor is a UI component representing a 4x4 matrix. All elements of the matrix are writeable through the UI. The Matrix4Editor API provides access to the embeded matrix through the member functions getMatrix() and setMatrix().
nux::Matrix4Editor::Matrix4Editor | ( | Matrix4 | matrix = Matrix4::IDENTITY() , |
NUX_FILE_LINE_PROTO | |||
) |
nux::Matrix4Editor::~Matrix4Editor | ( | ) |
virtual void nux::Matrix4Editor::Draw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Implements nux::View.
virtual void nux::Matrix4Editor::DrawContent | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
void nux::Matrix4Editor::EmitButtonPress | ( | ) | [inline] |
void nux::Matrix4Editor::EmitComponentValue | ( | float | f, |
int | index | ||
) |
void nux::Matrix4Editor::EmitDecrementComponent | ( | int | index | ) |
void nux::Matrix4Editor::EmitIncrementComponent | ( | int | index | ) |
Matrix4 nux::Matrix4Editor::GetMatrix | ( | ) | const |
Get the UI matrix.
Get the matrix hosted by the UI.
NULL. |
virtual void nux::Matrix4Editor::PostDraw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
virtual long nux::Matrix4Editor::ProcessEvent | ( | IEvent & | ievent, |
long | TraverseInfo, | ||
long | ProcessEventInfo | ||
) | [virtual] |
Implements nux::View.
void nux::Matrix4Editor::SetMatrix | ( | Matrix4 | matrix | ) |
Set the UI matrix.
Set each component of the 4x4 matrix UI to the ones provided by the input matrix.
matrix | a 4x4 matrix of type Matrix4. |
void nux::Matrix4Editor::SetParameterName | ( | const char * | parameter_name | ) |
sigc::signal<void, Matrix4Editor * > nux::Matrix4Editor::sigMatrixChanged |
sigc::signal<void, int, char *> nux::Matrix4Editor::sigValidateKeyboarEntry |