Constraint graph viewer using native C++ API.
More...
#include <hpp/plot/hpp-native-graph.hh>
|
| void | nodeContextMenuAboutToShow (std::size_t nodeId, QString nodeName, QMenu *menu) |
| | Emitted before showing node context menu, allows external code to add actions.
|
| void | edgeContextMenuAboutToShow (std::size_t edgeId, QString edgeName, QMenu *menu) |
| | Emitted before showing edge context menu, allows external code to add actions.
|
|
| void | fillScene () override |
| | Fill scene from Graph object Reads nodes and edges directly from the C++ graph structure.
|
Constraint graph viewer using native C++ API.
This widget displays constraint graphs from hpp-manipulation without requiring CORBA. It reads graph structure directly from the C++ Graph object using the same visualization style as HppManipulationGraphWidget.
◆ HppNativeGraphWidget()
Constructor.
- Parameters
| graph | Shared pointer to manipulation graph (can be nullptr) |
| parent | Parent widget |
◆ ~HppNativeGraphWidget()
| hpp::plot::HppNativeGraphWidget::~HppNativeGraphWidget | ( | | ) | |
◆ displayEdgeConstraints
| void hpp::plot::HppNativeGraphWidget::displayEdgeConstraints | ( | std::size_t | id | ) | |
| slot |
Display detailed edge constraints in the constraint panel.
◆ displayEdgeTargetConstraints
| void hpp::plot::HppNativeGraphWidget::displayEdgeTargetConstraints | ( | std::size_t | id | ) | |
| slot |
Display edge target constraints in the constraint panel.
◆ displayStateConstraints
| void hpp::plot::HppNativeGraphWidget::displayStateConstraints | ( | std::size_t | id | ) | |
| slot |
Display detailed state constraints in the constraint panel.
◆ edgeContextMenu
| void hpp::plot::HppNativeGraphWidget::edgeContextMenu | ( | QGVEdge * | edge | ) | |
| overrideprotectedslot |
◆ edgeContextMenuAboutToShow
| void hpp::plot::HppNativeGraphWidget::edgeContextMenuAboutToShow | ( | std::size_t | edgeId, | | | QString | edgeName, | | | QMenu * | menu ) |
| signal |
Emitted before showing edge context menu, allows external code to add actions.
- Parameters
| edgeId | The ID of the edge |
| edgeName | The name of the edge (transition) |
| menu | Pointer to the context menu (can add actions before it's shown) |
◆ edgeDoubleClick
| void hpp::plot::HppNativeGraphWidget::edgeDoubleClick | ( | QGVEdge * | edge | ) | |
| overrideprotectedslot |
◆ fillScene()
| void hpp::plot::HppNativeGraphWidget::fillScene | ( | | ) | |
| overrideprotectedvirtual |
Fill scene from Graph object Reads nodes and edges directly from the C++ graph structure.
Reimplemented from hpp::plot::GraphWidget.
◆ graphName()
| const std::string & hpp::plot::HppNativeGraphWidget::graphName | ( | | ) | const |
| inline |
◆ highlightEdge()
| void hpp::plot::HppNativeGraphWidget::highlightEdge | ( | long | edgeId | ) | |
Highlight a specific edge.
- Parameters
| edgeId | The ID of the edge to highlight, or -1 to clear |
◆ highlightNode()
| void hpp::plot::HppNativeGraphWidget::highlightNode | ( | long | nodeId | ) | |
Highlight a specific node (e.g., for current configuration)
- Parameters
| nodeId | The ID of the node to highlight, or -1 to clear |
◆ nodeContextMenu
| void hpp::plot::HppNativeGraphWidget::nodeContextMenu | ( | QGVNode * | node | ) | |
| overrideprotectedslot |
◆ nodeContextMenuAboutToShow
| void hpp::plot::HppNativeGraphWidget::nodeContextMenuAboutToShow | ( | std::size_t | nodeId, | | | QString | nodeName, | | | QMenu * | menu ) |
| signal |
Emitted before showing node context menu, allows external code to add actions.
- Parameters
| nodeId | The ID of the node |
| nodeName | The name of the node (state) |
| menu | Pointer to the context menu (can add actions before it's shown) |
◆ nodeDoubleClick
| void hpp::plot::HppNativeGraphWidget::nodeDoubleClick | ( | QGVNode * | node | ) | |
| overrideprotectedslot |
◆ selectionChanged
| void hpp::plot::HppNativeGraphWidget::selectionChanged | ( | | ) | |
| protectedslot |
◆ selectionID()
| bool hpp::plot::HppNativeGraphWidget::selectionID | ( | std::size_t & | id | ) | |
Get currently selected element ID.
- Parameters
| [out] | id | The ID of the selected element |
- Returns
- true if an element is selected, false otherwise
◆ setGraph()
Set graph object and refresh display.
- Parameters
| graph | Shared pointer to manipulation graph |
The documentation for this class was generated from the following files: