Class GenericTableWidget

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SmartPeak::GenericTableWidget : public SmartPeak::Widget

Base class for default tables.

TODO: features

  • row highlighting on focus

  • sorting

  • filtering

Subclassed by SmartPeak::ExplorerWidget

Public Functions

inline GenericTableWidget(const Eigen::Tensor<std::string, 1> &headers, const Eigen::Tensor<std::string, 2> &columns, const Eigen::Tensor<bool, 1> &checked_rows, const std::string &table_id)
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

Public Members

const Eigen::Tensor<std::string, 1> &headers_
const Eigen::Tensor<std::string, 2> &columns_
const Eigen::Tensor<bool, 1> &checked_rows_
const std::string table_id_