Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 590 Bytes

ModelView_basic.md

File metadata and controls

21 lines (15 loc) · 590 Bytes

Model View

Basic

Example of how to create a simple table from a std::vector< std::vector<> >.

typedef float Tvalue;// Any type provided >> and << operators are defined
// Use alias for std::vector<std::vector<>> for simplicity
template <class T>
using Matrix = std::vector< std::vector<T> >;
GlvTableView< Matrix<Tvalue> >* table_view2D = new GlvTableView< Matrix<Tvalue> >(matrix2D);
table_view2D->show();

sample004_4

More details in sample004_4.cpp.