21 #ifndef _Tulip_NODELINKDIAGRAMCOMPONENT_H 22 #define _Tulip_NODELINKDIAGRAMCOMPONENT_H 24 #include <tulip/GlMainView.h> 25 #include <tulip/Camera.h> 28 class GridOptionsWidget;
35 class GlCompositeHierarchyManager;
41 QDialog* _gridOptions;
42 GlCompositeHierarchyManager* manager;
45 void registerTriggers();
50 Ui::GridOptionsWidget* grid_ui;
53 static const std::string viewName;
55 "The Node Link Diagram view is the standard representation of relational data, where entities are represented as nodes, and their relation as edges.<br>" 56 "This view allows you to change the glyph used to represent nodes (e.g. square, round, cross, ...), as well as the shape of the arrows indicating the direction of the relationship.",
59 NodeLinkDiagramComponent(const
tlp::PluginContext* context = NULL);
60 virtual ~NodeLinkDiagramComponent();
61 std::
string icon()
const {
62 return ":/tulip/gui/icons/32/node_link_diagram_view.png";
69 void requestChangeGraph(Graph *graph);
70 const Camera& goInsideItem(node meta);
81 void setZOrdering(
bool);
82 void showGridControl();
83 void fillContextMenu(QMenu *menu,
const QPointF &point);
84 void displayToolTips(
bool display);
86 void addRemoveItemToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
87 void addRemoveInNodesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
88 void addRemoveOutNodesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
89 void addRemoveInEdgesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
90 void addRemoveOutEdgesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
91 void addRemoveNodeAndAllNeighbourNodesAndEdges(
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
92 void addRemoveExtremitiesToSelection(
bool pushGraph =
true,
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
93 void addRemoveEdgeAndExtremitiesToSelection(
bool toggleSelection =
true,
bool selectValue =
false,
bool resetSelection =
false);
96 void selectInNodes(
bool pushGraph =
true);
97 void selectOutNodes(
bool pushGraph =
true);
98 void selectInEdges(
bool pushGraph =
true);
99 void selectOutEdges(
bool pushGraph =
true);
100 void selectNodeAndAllNeighbourNodesAndEdges();
101 void selectExtremities(
bool pushGraph =
true);
102 void selectEdgeAndExtremities();
104 void addItemToSelection();
105 void addInNodesToSelection(
bool pushGraph =
true);
106 void addOutNodesToSelection(
bool pushGraph =
true);
107 void addInEdgesToSelection(
bool pushGraph =
true);
108 void addOutEdgesToSelection(
bool pushGraph =
true);
109 void addNodeAndAllNeighbourNodesAndEdgesToSelection();
110 void addExtremitiesToSelection(
bool pushGraph =
true);
111 void addEdgeAndExtremitiesToSelection();
113 void removeItemFromSelection();
114 void removeInNodesFromSelection(
bool pushGraph =
true);
115 void removeOutNodesFromSelection(
bool pushGraph =
true);
116 void removeInEdgesFromSelection(
bool pushGraph =
true);
117 void removeOutEdgesFromSelection(
bool pushGraph =
true);
118 void removeNodeAndAllNeighbourNodesAndEdgesFromSelection();
119 void removeExtremitiesFromSelection(
bool pushGraph =
true);
120 void removeEdgeAndExtremitiesFromSelection();
128 void createScene(Graph *graph,DataSet dataSet);
129 DataSet sceneData()
const;
130 void loadGraphOnScene(Graph *graph);
131 void useHulls(
bool hasHulls);
132 bool hasHulls()
const;
134 bool eventFilter(QObject *,QEvent *e);
135 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 ...