SelectedIndicesAction

Qualified name: SelectedIndicesAction

class SelectedIndicesAction : public mv::gui::WidgetAction

Selected indices action class.

Action class for selected point indices

Author

Thomas Kroes

Public Functions

SelectedIndicesAction(QObject *parent, const Dataset<Points> &points)

Constructor.

Parameters:
  • parent – Pointer to parent object

  • points – Smart pointer to points dataset

Dataset<Points> &getPoints()

Get points.

Returns:

Smart pointer to points dataset

std::vector<std::uint32_t> getSelectedIndices() const

Get selected indices.

Returns:

Selected indices

Protected Functions

inline virtual QWidget *getWidget(QWidget *parent, const std::int32_t &widgetFlags) override

Get widget representation of the selected indices action.

Parameters:
  • parent – Pointer to parent widget

  • widgetFlagsWidget flags for the configuration of the widget (type)

Protected Attributes

TriggerAction _updateAction

Points dataset reference.

ToggleAction _manualUpdateAction

Update action.

Protected Static Attributes

static const std::int32_t MANUAL_UPDATE_THRESHOLD = 1000

Manual update action.

Above this threshold, selected indices need to be updated manually

class Widget : public mv::gui::WidgetActionWidget

Widget class for points info action.

Public Functions

Widget(QWidget *parent, SelectedIndicesAction *selectedIndicesAction)

Constructor.

Parameters:
  • parent – Pointer to parent widget

  • selectedIndicesAction – Pointer to selected indices action

class ListView : public QListView

Inherit list view to override size hint method.

Public Functions

inline QSize sizeHint() const override

Return smallest possible size hint to avoid layout problems.