21 #ifndef _Tulip_NODELINKDIAGRAMCOMPONENT_H
22 #define _Tulip_NODELINKDIAGRAMCOMPONENT_H
24 #include <tulip/GlMainView.h>
25 #include <tulip/Camera.h>
31 class GlCompositeHierarchyManager;
37 QDialog* _gridOptions;
38 GlCompositeHierarchyManager* manager;
41 void registerTriggers();
47 static const std::string viewName;
49 "The Node Link Diagram view is the standard representation of relational data, where entities are represented as nodes, and their relation as edges.\n"
50 "This view allows you to change the glyph used to represent nodes (e.g. square, round, donut), as well as the shape of the arrows indicating the direction of the relationship.",
53 NodeLinkDiagramComponent(const tlp::PluginContext* context = NULL);
54 std::
string icon()
const {
55 return ":/tulip/gui/icons/32/node_link_diagram_view.png";
62 void requestChangeGraph(Graph *graph);
63 const Camera& goInsideItem(node meta);
66 void addRemoveItemToSelection();
71 void setZOrdering(
bool);
72 void showGridControl();
73 void fillContextMenu(QMenu *menu,
const QPointF &point);
74 void displayToolTips(
bool display);
82 void createScene(Graph *graph,DataSet dataSet);
83 DataSet sceneData()
const;
84 void loadGraphOnScene(Graph *graph);
85 void useHulls(
bool hasHulls);
86 bool hasHulls()
const;
88 bool eventFilter(QObject *,QEvent *e);