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);
73 void addRemoveItemToSelection();
82 void setZOrdering(
bool);
83 void showGridControl();
84 void fillContextMenu(QMenu *menu,
const QPointF &point);
85 void displayToolTips(
bool display);
93 void createScene(Graph *graph,DataSet dataSet);
94 DataSet sceneData()
const;
95 void loadGraphOnScene(Graph *graph);
96 void useHulls(
bool hasHulls);
97 bool hasHulls()
const;
99 bool eventFilter(QObject *,QEvent *e);
100 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 ...