nux-1.16.0
|
A User Interface component hosting a 4x4 Matrix. More...
#include <Nux/Matrix3Editor.h>
Public Member Functions | |
Matrix3Editor (Matrix3 matrix=Matrix3::IDENTITY(), NUX_FILE_LINE_PROTO) | |
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 (Matrix3 matrix) |
Set the UI matrix. | |
Matrix3 | GetMatrix () const |
Get the UI matrix. | |
Public Attributes | |
sigc::signal< void, int, char * > | sigValidateKeyboarEntry |
sigc::signal< void, Matrix3Editor * > | sigMatrixChanged |
A User Interface component hosting a 4x4 Matrix.
Matrix3Editor is a UI component representing a 4x4 matrix. All elements of the matrix are writeable through the UI. The Matrix3Editor API provides access to the embeded matrix through the member functions getMatrix() and setMatrix().
Definition at line 86 of file Matrix3Editor.h.
Matrix3 nux::Matrix3Editor::GetMatrix | ( | ) | const |
Get the UI matrix.
Get the matrix hosted by the UI.
NULL. |
Definition at line 244 of file Matrix3Editor.cpp.
{
return m_Matrix;
}
void nux::Matrix3Editor::SetMatrix | ( | Matrix3 | matrix | ) |
Set the UI matrix.
Set each component of the 3x3 matrix UI to the ones provided by the input matrix.
matrix | a 3x3 matrix of type Matrix3. |
Definition at line 231 of file Matrix3Editor.cpp.
{ m_Matrix = matrix; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { m_MtxInput[i][j]->SetText (NString::Printf (TEXT ("%.3f"), m_Matrix.m[i][j]) ); } } }