maliput_viz
|
Loads a road geometry out of a xodr file or a yaml file.
Meshes are created and displayed in the scene provided by Scene3D plugin.
#include <src/maliput_viz/plugins/maliput_viewer_plugin.hh>
Signals | |
void | ListLanesChanged () |
Signal emitted to update the id of the lanes in the table. More... | |
void | RulesListChanged () |
Signal emitted to update the rules of the selected lane. More... | |
void | LaneInfoChanged () |
Signal emitted to update the info about the clicked lane. More... | |
void | LayerCheckboxesChanged () |
Signal emitted to reset the checkboxes' state for the layers visualization when a new RoadNetwork is loaded. More... | |
void | LabelCheckboxesChanged () |
Signal emitted to reset the checkboxes' state for the label visualization when a new RoadNetwork is loaded. More... | |
void | tableLaneIdSelection (int _index) |
Signal emitted to indicate which lane id in the table should be highlighted. More... | |
Public Member Functions | |
MaliputViewerPlugin () | |
Default constructor. More... | |
void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) override |
Called by Ignition GUI when plugin is instantiated. More... | |
Q_INVOKABLE QStringList | ListLanes () const |
Called when a new RoadNetwork is loaded to load the ids of the lanes into the table. More... | |
Q_INVOKABLE QString | RulesList () const |
Called when a new lane is selected to load the lane's rules into the UI. More... | |
Q_INVOKABLE QString | LaneInfo () const |
Called when a lane is clicked. Update info related to the clicked surface. More... | |
Q_INVOKABLE QList< bool > | LayerCheckboxes () const |
Called when a new RoadNetwork is loaded to default the checkboxes' state in the layers selection panel for the meshes. More... | |
Q_INVOKABLE QList< bool > | LabelCheckboxes () const |
Called when a new RoadNetwork is loaded to default the checkboxes' state in the label selection panel. More... | |
Protected Slots | |
void | OnNewRoadNetwork () |
Clears the visualizer and updates the GUI with meshes and labels using the new RoadNetwork. More... | |
void | OnNewMeshLayerSelection (const QString &_layer, bool _state) |
Change the visibility of the layers. More... | |
void | OnNewTextLabelSelection (const QString &_label, bool _state) |
Change the visibility of the labels. More... | |
void | OnTableLaneIdSelection (int _index) |
Manages the selection of lanes id from the table. More... | |
void | OnPhaseSelection (const QModelIndex &_index) |
Manages the selection of phase from the phase ring tree view. More... | |
Protected Member Functions | |
bool | eventFilter (QObject *_obj, QEvent *_event) override |
Filters ignition::gui::events::LeftClickToScene to get the clicks events. More... | |
void | timerEvent (QTimerEvent *_event) override |
Timer event callback which handles the logic to get the scene. More... | |
Properties | |
QList< bool > | layerCheckboxes |
Property used to load the default state of layers visualization in its correspondant UI's checkboxes. More... | |
QList< bool > | labelCheckboxes |
Property used to load the default state of labels visualization in its correspondant UI's checkboxes. More... | |
QStringList | listLanes {} |
Property used to load the lanes id in the correspondant UI's table. More... | |
QString | rulesList {} |
Property used to load the rules in the correspondant UI's area. More... | |
QString | laneInfo {} |
Property used to load the info about the surface clicked in the correspondant UI's area. More... | |
Default constructor.
|
overrideprotected |
Filters ignition::gui::events::LeftClickToScene to get the clicks events.
Filters ignition::gui::events::Render events to update the meshes and labels of the roads and the animation of the arrow mesh.
To make this method be called by Qt Event System, install the event filter in target object.
QList< bool > LabelCheckboxes | ( | ) | const |
Called when a new RoadNetwork is loaded to default the checkboxes' state in the label selection panel.
|
signal |
Signal emitted to reset the checkboxes' state for the label visualization when a new RoadNetwork is loaded.
QString LaneInfo | ( | ) | const |
Called when a lane is clicked. Update info related to the clicked surface.
|
signal |
Signal emitted to update the info about the clicked lane.
QList< bool > LayerCheckboxes | ( | ) | const |
Called when a new RoadNetwork is loaded to default the checkboxes' state in the layers selection panel for the meshes.
|
signal |
Signal emitted to reset the checkboxes' state for the layers visualization when a new RoadNetwork is loaded.
QStringList ListLanes | ( | ) | const |
Called when a new RoadNetwork is loaded to load the ids of the lanes into the table.
|
signal |
Signal emitted to update the id of the lanes in the table.
|
override |
Called by Ignition GUI when plugin is instantiated.
[in] | _pluginElem | XML configuration for this plugin. |
|
protectedslot |
Change the visibility of the layers.
[in] | _layer | The layer to change its visibility. |
[in] | _state | The state of the visibility checkbox. |
|
protectedslot |
Clears the visualizer and updates the GUI with meshes and labels using the new RoadNetwork.
|
protectedslot |
Change the visibility of the labels.
[in] | _label | Name of the label. |
[in] | _state | The state of the visibility checkbox. |
|
protectedslot |
Manages the selection of phase from the phase ring tree view.
[in] | _index | Correspondant to the position of the row in the tree view. |
|
protectedslot |
Manages the selection of lanes id from the table.
[in] | _index | Correspondant to the position of the row in the table. |
QString RulesList | ( | ) | const |
Called when a new lane is selected to load the lane's rules into the UI.
|
signal |
Signal emitted to update the rules of the selected lane.
|
signal |
Signal emitted to indicate which lane id in the table should be highlighted.
|
overrideprotected |
Timer event callback which handles the logic to get the scene.
|
read |
Property used to load the default state of labels visualization in its correspondant UI's checkboxes.
|
read |
Property used to load the info about the surface clicked in the correspondant UI's area.
Holds the info about the clicked surface that is displayed in the UI.
|
read |
Property used to load the default state of layers visualization in its correspondant UI's checkboxes.
|
read |
Property used to load the lanes id in the correspondant UI's table.
Holds the lanes id that are shown in the table.
The order in this collection will affect the order that the lanes id are displayed in the table.
|
read |
Property used to load the rules in the correspondant UI's area.
Holds the rules of the last selected lane that are displayed in the UI.