nux-0.9.46

nux::Matrix3Editor Class Reference

A User Interface component hosting a 4x4 Matrix. More...

#include <Nux/Matrix3Editor.h>

Inheritance diagram for nux::Matrix3Editor:
nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable

Public Member Functions

 Matrix3Editor (Matrix3 matrix=Matrix3::IDENTITY(), NUX_FILE_LINE_PROTO)
 ~Matrix3Editor ()
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 (Matrix3 matrix)
 Set the UI matrix.
Matrix3 GetMatrix () const
 Get the UI matrix.

Data Fields

sigc::signal< void, int, char * > sigValidateKeyboarEntry
sigc::signal< void,
Matrix3Editor * > 
sigMatrixChanged

Detailed Description

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().


Constructor & Destructor Documentation

nux::Matrix3Editor::Matrix3Editor ( Matrix3  matrix = Matrix3::IDENTITY(),
NUX_FILE_LINE_PROTO   
)
nux::Matrix3Editor::~Matrix3Editor ( )

Member Function Documentation

virtual void nux::Matrix3Editor::Draw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Implements nux::View.

virtual void nux::Matrix3Editor::DrawContent ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

void nux::Matrix3Editor::EmitButtonPress ( ) [inline]
void nux::Matrix3Editor::EmitComponentValue ( float  f,
int  index 
)
void nux::Matrix3Editor::EmitDecrementComponent ( int  index)
void nux::Matrix3Editor::EmitIncrementComponent ( int  index)
Matrix3 nux::Matrix3Editor::GetMatrix ( ) const

Get the UI matrix.

Get the matrix hosted by the UI.

Parameters:
NULL.
Returns:
a Matrix3 object.
See also:
setMatrix().
virtual void nux::Matrix3Editor::PostDraw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

virtual long nux::Matrix3Editor::ProcessEvent ( IEvent ievent,
long  TraverseInfo,
long  ProcessEventInfo 
) [virtual]

Implements nux::View.

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.

Parameters:
matrixa 3x3 matrix of type Matrix3.
Returns:
NULL.
See also:
getMatrix().
void nux::Matrix3Editor::SetParameterName ( const char *  parameter_name)

Field Documentation

sigc::signal<void, int, char *> nux::Matrix3Editor::sigValidateKeyboarEntry

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