35 #include <VisionX/interface/components/SemanticRelationAnalyzer.h>
36 #include <VisionX/interface/libraries/SemanticObjectRelations/GraphStorage.h>
37 #include <VisionX/gui-plugins/SemanticRelationViewer/ui_SemanticRelationViewerWidget.h>
39 #include <SemanticObjectRelations/RelationGraph/json/AttributedGraph.h>
45 struct GraphvizLayoutedGraph;
85 void loadSettings(QSettings* settings)
override;
90 void saveSettings(QSettings* settings)
override;
92 QPointer<QDialog> getConfigDialog(QWidget* parent)
override;
100 return "VisionX.SemanticRelationViewer";
106 void onInitComponent()
override;
111 void onConnectComponent()
override;
112 void onDisconnectComponent()
override;
117 void onUpdateGraphs();
118 void onAutoUpdateChanged();
128 void drawGraph(QGraphicsScene* graphicsScene,
130 semrel::AttributedGraph
const& graph);
132 void setPropertyView(nlohmann::json
const& attrs);
134 void highlightSelected(QGraphicsItem* selected);
136 void onZoomChanged(
double newZoom);
139 Ui::SemanticRelationViewerWidget widget;
140 QTimer* timer =
nullptr;
141 QGraphicsScene graphicsScene;
142 double graphicsSceneScale = 1.0;
143 QPointer<SimpleConfigDialog> configDialog;
145 armarx::semantic::GraphStorageInterfacePrx storage;
147 std::map<std::string, semrel::AttributedGraph> graphMap;