0.2.0
Loading...
Searching...
No Matches
Matrix.hpp File Reference

Widgets related to Matrices. More...

Go to the source code of this file.

Typedefs

using GuiMatrixViewFlags
 Flags for MatrixView GUI elements GuiMatrixViewFlags_.
 

Enumerations

enum  GuiMatrixViewFlags_ {
  GuiMatrixViewFlags_None ,
  GuiMatrixViewFlags_RowHeader ,
  GuiMatrixViewFlags_ColumnHeader ,
  GuiMatrixViewFlags_Header
}
 Flags to select the MatrixView behaviour. More...
 

Functions

template<typename _Scalar , int _Rows, int _Cols>
bool NAV::gui::widgets::InputMatrix (const char *label, Eigen::Matrix< _Scalar, _Rows, _Cols > *matrix, GuiMatrixViewFlags flags=GuiMatrixViewFlags_None, ImGuiTableFlags tableFlags=ImGuiTableFlags_None, float inputTextWidth=50.0F, double step=0.0, double step_fast=0.0, const char *format="%.6f", ImGuiInputTextFlags inputTextFlags=ImGuiInputTextFlags_None)
 Shows GUI elements to modify the coefficients of a matrix with.
 
template<typename _Scalar , int _Rows, int _Cols>
void NAV::gui::widgets::MatrixView (const char *label, const Eigen::Matrix< _Scalar, _Rows, _Cols > *matrix, GuiMatrixViewFlags flags=GuiMatrixViewFlags_None, ImGuiTableFlags tableFlags=ImGuiTableFlags_None, const char *format="%.6f")
 Shows GUI elements to display the coefficients of a matrix.
 

Detailed Description

Widgets related to Matrices.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2021-10-04

Enumeration Type Documentation

◆ GuiMatrixViewFlags_

Flags to select the MatrixView behaviour.

Enumerator
GuiMatrixViewFlags_None 

None.

GuiMatrixViewFlags_RowHeader 

Print the Row Header.

GuiMatrixViewFlags_ColumnHeader 

Print the Col Header.

GuiMatrixViewFlags_Header 

Print all Header.

Function Documentation

◆ InputMatrix()

template<typename _Scalar , int _Rows, int _Cols>
bool NAV::gui::widgets::InputMatrix ( const char * label,
Eigen::Matrix< _Scalar, _Rows, _Cols > * matrix,
GuiMatrixViewFlags flags = GuiMatrixViewFlags_None,
ImGuiTableFlags tableFlags = ImGuiTableFlags_None,
float inputTextWidth = 50.0F,
double step = 0.0,
double step_fast = 0.0,
const char * format = "%.6f",
ImGuiInputTextFlags inputTextFlags = ImGuiInputTextFlags_None )

Shows GUI elements to modify the coefficients of a matrix with.

Template Parameters
_ScalarData Type of the matrix
_RowsAmount of rows of the matrix
_ColsAmount of cols of the matrix
Parameters
[in]labelLabel to display beside. Has to be unique (use # to hide text afterwards to append an uid)
[in,out]matrixPointer to the matrix to modify
[in]flagsFlags to modify the behavior of the whole element
[in]tableFlagsFlags to modify the Table behaviour
[in]inputTextWidthWith in px of each InputText
[in]stepStep size of the InputText
[in]step_fastFast step size of the InputText
[in]formatPrintf format to display the value with
[in]inputTextFlagsInputText flags to modify the behavior of the input fields
Returns
True if the value was changed

◆ MatrixView()

template<typename _Scalar , int _Rows, int _Cols>
void NAV::gui::widgets::MatrixView ( const char * label,
const Eigen::Matrix< _Scalar, _Rows, _Cols > * matrix,
GuiMatrixViewFlags flags = GuiMatrixViewFlags_None,
ImGuiTableFlags tableFlags = ImGuiTableFlags_None,
const char * format = "%.6f" )

Shows GUI elements to display the coefficients of a matrix.

Template Parameters
_ScalarData Type of the matrix
_RowsAmount of rows of the matrix
_ColsAmount of cols of the matrix
Parameters
[in]labelLabel to display beside. Has to be unique (use # to hide text afterwards to append an uid)
[in]matrixPointer to the matrix to display
[in]flagsFlags to modify the behavior of the whole element
[in]tableFlagsFlags to modify the Table behaviour
[in]formatPrintf format to display the value with