Class ExplorerWidget

Inheritance Relationships

Base Types

Class Documentation

class SmartPeak::ExplorerWidget : public SmartPeak::GenericTableWidget, public SmartPeak::ISequenceObserver, public SmartPeak::IFeaturesObserver

ExplorerWidget is a table widgets that also exposes a set of checkboxes (possibly one column for each functionality) associated with each lines.

Public Functions

inline ExplorerWidget(const std::string &table_id, const std::string title = "", SequenceObservable *sequence_observable = nullptr)
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

virtual void onSequenceUpdated() override

ISequenceObserver

virtual void onFeaturesUpdated() override

IFeaturesObserver

virtual std::map<std::string, CastValue::Type> getPropertiesSchema() const override

IPropertiesHandler

virtual std::optional<CastValue> getProperty(const std::string &property, const size_t row) const override

Returns the property value based on the name.

Returns

the property value, as CastValue, std::nullopt if the property does not exists.

virtual void setProperty(const std::string &property, const CastValue &value, const size_t row) override

Sets the property value based on the name.

Public Members

Eigen::Tensor<std::string, 1> checkbox_headers_
Eigen::Tensor<bool, 2> *checkbox_columns_ = nullptr
std::map<int, std::vector<bool>> serialized_checkboxes_
ImGuiTextFilter filter_