21 #ifndef _Tulip_NODELINKDIAGRAMCOMPONENT_H 22 #define _Tulip_NODELINKDIAGRAMCOMPONENT_H 24 #include <tulip/GlMainView.h> 25 #include <tulip/Camera.h> 28 class GridOptionsWidget;
36 class GlCompositeHierarchyManager;
37 class PropertyInterface;
44 QDialog *_gridOptions;
45 GlCompositeHierarchyManager *manager;
48 void registerTriggers();
51 Ui::GridOptionsWidget *grid_ui;
54 static const std::string viewName;
56 "The Node Link Diagram view is the standard representation of relational data, " 57 "where entities are represented as nodes, and their relation as edges.<br>" 58 "This view allows you to change the glyph used to represent nodes (e.g. " 59 "square, round, cross, ...), as well as the shape of the arrows indicating the " 60 "direction of the relationship.",
63 NodeLinkDiagramComponent(const
tlp::PluginContext *context =
nullptr);
64 ~NodeLinkDiagramComponent() override;
65 std::
string icon()
const override {
66 return ":/tulip/gui/icons/32/node_link_diagram_view.png";
73 void requestChangeGraph(Graph *graph);
74 const Camera &goInsideItem(node meta);
85 void setZOrdering(
bool);
86 void showGridControl();
87 void fillContextMenu(QMenu *menu,
const QPointF &point)
override;
89 void addRemoveItemToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
90 bool selectValue =
false,
bool resetSelection =
false);
91 void addRemoveInNodesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
92 bool selectValue =
false,
bool resetSelection =
false);
93 void addRemoveOutNodesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
94 bool selectValue =
false,
bool resetSelection =
false);
95 void addRemoveInEdgesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
96 bool selectValue =
false,
bool resetSelection =
false);
97 void addRemoveOutEdgesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
98 bool selectValue =
false,
bool resetSelection =
false);
99 void addRemoveNodeAndAllNeighbourNodesAndEdges(
bool toggleSelection =
true,
100 bool selectValue =
false,
101 bool resetSelection =
false);
102 void addRemoveExtremitiesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
103 bool selectValue =
false,
bool resetSelection =
false);
104 void addRemoveEdgeAndExtremitiesToSelection(
bool toggleSelection =
true,
bool selectValue =
false,
105 bool resetSelection =
false);
108 void selectInNodes(
bool pushGraph =
true);
109 void selectOutNodes(
bool pushGraph =
true);
110 void selectInEdges(
bool pushGraph =
true);
111 void selectOutEdges(
bool pushGraph =
true);
112 void selectNodeAndAllNeighbourNodesAndEdges();
113 void selectExtremities(
bool pushGraph =
true);
114 void selectEdgeAndExtremities();
116 void addItemToSelection();
117 void addInNodesToSelection(
bool pushGraph =
true);
118 void addOutNodesToSelection(
bool pushGraph =
true);
119 void addInEdgesToSelection(
bool pushGraph =
true);
120 void addOutEdgesToSelection(
bool pushGraph =
true);
121 void addNodeAndAllNeighbourNodesAndEdgesToSelection();
122 void addExtremitiesToSelection(
bool pushGraph =
true);
123 void addEdgeAndExtremitiesToSelection();
125 void removeItemFromSelection();
126 void removeInNodesFromSelection(
bool pushGraph =
true);
127 void removeOutNodesFromSelection(
bool pushGraph =
true);
128 void removeInEdgesFromSelection(
bool pushGraph =
true);
129 void removeOutEdgesFromSelection(
bool pushGraph =
true);
130 void removeNodeAndAllNeighbourNodesAndEdgesFromSelection();
131 void removeExtremitiesFromSelection(
bool pushGraph =
true);
132 void removeEdgeAndExtremitiesFromSelection();
140 void createScene(Graph *graph, DataSet dataSet);
141 DataSet sceneData()
const;
142 void loadGraphOnScene(Graph *graph);
143 void useHulls(
bool hasHulls);
144 bool hasHulls()
const;
145 void editValue(PropertyInterface *pi);
An abstract view that displays a GlMainWidget as its central widget.
A container that can store data from any type.
#define PLUGININFORMATION(NAME, AUTHOR, DATE, INFO, RELEASE, GROUP)
Declare meta-information for a plugin This is an helper macro that defines every function related to ...