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

Widgets related to KeyedMatrices. More...

Go to the source code of this file.

Functions

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
bool NAV::gui::widgets::InputKeyedMatrix (const char *label, KeyedMatrix< Scalar, RowKeyType, ColKeyType, Rows, Cols > *matrix, float tableHeight=-1.0F, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollX|ImGuiTableFlags_ScrollY, double step=0.0, double step_fast=0.0, const char *format="%.4g", ImGuiInputTextFlags inputTextFlags=ImGuiInputTextFlags_None)
 Shows GUI elements to modify the coefficients of a matrix with.
 
template<typename Scalar , typename ColKeyType , int Cols>
bool NAV::gui::widgets::InputKeyedRowVector (const char *label, KeyedRowVector< Scalar, ColKeyType, Cols > *matrix, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollX, double step=0.0, double step_fast=0.0, const char *format="%.4g", ImGuiInputTextFlags inputTextFlags=ImGuiInputTextFlags_None)
 Shows GUI elements to modify the coefficients of a matrix with.
 
template<typename Scalar , typename RowKeyType , int Rows>
bool NAV::gui::widgets::InputKeyedVector (const char *label, KeyedVector< Scalar, RowKeyType, Rows > *matrix, float tableHeight=-1.0F, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollY, double step=0.0, double step_fast=0.0, const char *format="%.4g", ImGuiInputTextFlags inputTextFlags=ImGuiInputTextFlags_None)
 Shows GUI elements to modify the coefficients of a matrix with.
 
template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
void NAV::gui::widgets::KeyedMatrixView (const char *label, const KeyedMatrix< Scalar, RowKeyType, ColKeyType, Rows, Cols > *matrix, float tableHeight=-1.0F, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollX|ImGuiTableFlags_ScrollY)
 Shows GUI elements to display the coefficients of a matrix.
 
template<typename Scalar , typename ColKeyType , int Cols>
void NAV::gui::widgets::KeyedRowVectorView (const char *label, const KeyedRowVector< Scalar, ColKeyType, Cols > *matrix, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollX)
 Shows GUI elements to display the coefficients of a matrix.
 
template<typename Scalar , typename RowKeyType , int Rows>
void NAV::gui::widgets::KeyedVectorView (const char *label, const KeyedVector< Scalar, RowKeyType, Rows > *matrix, float tableHeight=-1.0F, ImGuiTableFlags tableFlags=ImGuiTableFlags_Borders|ImGuiTableFlags_NoHostExtendX|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_ScrollY)
 Shows GUI elements to display the coefficients of a matrix.
 

Detailed Description

Widgets related to KeyedMatrices.

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

Function Documentation

◆ InputKeyedMatrix()

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
bool NAV::gui::widgets::InputKeyedMatrix ( const char * label,
KeyedMatrix< Scalar, RowKeyType, ColKeyType, Rows, Cols > * matrix,
float tableHeight = -1.0F,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY,
double step = 0.0,
double step_fast = 0.0,
const char * format = "%.4g",
ImGuiInputTextFlags inputTextFlags = ImGuiInputTextFlags_None )

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

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
RowKeyTypeType of the key used for row lookup
ColKeyTypeType of the key used for col lookup
RowsNumber of rows, or Dynamic
ColsNumber of columns, or Dynamic
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]tableHeightHeight of the Table to show scrollbar afterwards (-1 means no scrollbar)
[in]tableFlagsFlags to modify the Table behaviour
[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

◆ InputKeyedRowVector()

template<typename Scalar , typename ColKeyType , int Cols>
bool NAV::gui::widgets::InputKeyedRowVector ( const char * label,
KeyedRowVector< Scalar, ColKeyType, Cols > * matrix,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX,
double step = 0.0,
double step_fast = 0.0,
const char * format = "%.4g",
ImGuiInputTextFlags inputTextFlags = ImGuiInputTextFlags_None )

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

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
ColKeyTypeType of the key used for col lookup
ColsNumber of columns, or Dynamic
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]tableFlagsFlags to modify the Table behaviour
[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

◆ InputKeyedVector()

template<typename Scalar , typename RowKeyType , int Rows>
bool NAV::gui::widgets::InputKeyedVector ( const char * label,
KeyedVector< Scalar, RowKeyType, Rows > * matrix,
float tableHeight = -1.0F,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollY,
double step = 0.0,
double step_fast = 0.0,
const char * format = "%.4g",
ImGuiInputTextFlags inputTextFlags = ImGuiInputTextFlags_None )

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

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
RowKeyTypeType of the key used for row lookup
RowsNumber of rows, or Dynamic
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]tableHeightHeight of the Table to show scrollbar afterwards (-1 means no scrollbar)
[in]tableFlagsFlags to modify the Table behaviour
[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

◆ KeyedMatrixView()

template<typename Scalar , typename RowKeyType , typename ColKeyType , int Rows, int Cols>
void NAV::gui::widgets::KeyedMatrixView ( const char * label,
const KeyedMatrix< Scalar, RowKeyType, ColKeyType, Rows, Cols > * matrix,
float tableHeight = -1.0F,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY )

Shows GUI elements to display the coefficients of a matrix.

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
RowKeyTypeType of the key used for row lookup
ColKeyTypeType of the key used for col lookup
RowsNumber of rows, or Dynamic
ColsNumber of columns, or Dynamic
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]tableHeightHeight of the Table to show scrollbar afterwards (-1 means no scrollbar)
[in]tableFlagsFlags to modify the Table behaviour

◆ KeyedRowVectorView()

template<typename Scalar , typename ColKeyType , int Cols>
void NAV::gui::widgets::KeyedRowVectorView ( const char * label,
const KeyedRowVector< Scalar, ColKeyType, Cols > * matrix,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX )

Shows GUI elements to display the coefficients of a matrix.

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
ColKeyTypeType of the key used for col lookup
ColsNumber of columns, or Dynamic
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]tableFlagsFlags to modify the Table behaviour

◆ KeyedVectorView()

template<typename Scalar , typename RowKeyType , int Rows>
void NAV::gui::widgets::KeyedVectorView ( const char * label,
const KeyedVector< Scalar, RowKeyType, Rows > * matrix,
float tableHeight = -1.0F,
ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollY )

Shows GUI elements to display the coefficients of a matrix.

Template Parameters
ScalarNumeric type, e.g. float, double, int or std::complex<float>.
RowKeyTypeType of the key used for row lookup
RowsNumber of rows, or Dynamic
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]tableHeightHeight of the Table to show scrollbar afterwards (-1 means no scrollbar)
[in]tableFlagsFlags to modify the Table behaviour