maliput_viz
|
Model for describing a tree view for the phase rings and their phases.
Treeview example:
PhaseRing#1 |_____ PhaseA#1 |_____ PhaseA#2 PhaseRing#2 |_____ PhaseB#1 |_____ PhaseB#2
#include <src/maliput_viz/plugins/maliput_viewer_plugin.hh>
Public Member Functions | |
PhaseTreeModel (QObject *parent) | |
void | AddPhaseRing (const std::string &_phaseRingName) |
Adds a new row to the treeview to group all the phases of a new phase ring. More... | |
void | AddPhaseToPhaseRing (const std::string &_phaseName, const std::string &_phaseRingName) |
Adds a new row under the _phaseRingName row to indicate a new phase. More... | |
bool | IsPhaseRingItem (const QStandardItem *_phaseRingItem) const |
bool | IsPhaseItem (const QStandardItem *_phaseItem, const QStandardItem *_phaseRingItem) const |
void | Clear () |
Clear the model. More... | |
PhaseTreeModel | ( | QObject * | parent | ) |
void AddPhaseRing | ( | const std::string & | _phaseRingName | ) |
Adds a new row to the treeview to group all the phases of a new phase ring.
[in] | _phaseRingName | Unique name of the new phase ring. |
void AddPhaseToPhaseRing | ( | const std::string & | _phaseName, |
const std::string & | _phaseRingName | ||
) |
Adds a new row under the _phaseRingName
row to indicate a new phase.
[in] | _phaseName | Unique name in the phase ring for the new phase. |
[in] | _phaseRingName | Name of the existing phase ring where the new phase should be added. |
void Clear | ( | ) |
Clear the model.
bool IsPhaseItem | ( | const QStandardItem * | _phaseItem, |
const QStandardItem * | _phaseRingItem | ||
) | const |
[in] | _phaseItem | Phase item. |
[in] | _phaseRingItem | Phase ring item. |
bool IsPhaseRingItem | ( | const QStandardItem * | _phaseRingItem | ) | const |
[in] | _phaseRingItem | QStandardItem pointer. |