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(
bool pushGraph =
true,
bool forceSelect =
false);
74 void addItemToSelection();
83 void setZOrdering(
bool);
84 void showGridControl();
85 void fillContextMenu(QMenu *menu,
const QPointF &point);
86 void displayToolTips(
bool display);
87 void addRemoveInNodesToSelection(
bool pushGraph =
true,
bool forceSelect =
false);
88 void addRemoveOutNodesToSelection(
bool pushGraph =
true,
bool forceSelect =
false);
89 void addRemoveInEdgesToSelection(
bool pushGraph =
true,
bool forceSelect =
false);
90 void addRemoveOutEdgesToSelection(
bool pushGraph =
true,
bool forceSelect =
false);
91 void addRemoveNodeAndAllNeighbourNodesAndEdges(
bool forceSelect =
false);
92 void addRemoveExtremitiesToSelection(
bool pushGraph =
true,
bool forceSelect =
false);
93 void addRemoveEdgeAndExtremitiesToSelection(
bool forceSelect =
false);
94 void addInNodesToSelection(
bool pushGraph =
true);
95 void addOutNodesToSelection(
bool pushGraph =
true);
96 void addInEdgesToSelection(
bool pushGraph =
true);
97 void addOutEdgesToSelection(
bool pushGraph =
true);
98 void addNodeAndAllNeighbourNodesAndEdges();
99 void addExtremitiesToSelection(
bool pushGraph =
true);
100 void addEdgeAndExtremitiesToSelection();
108 void createScene(Graph *graph,DataSet dataSet);
109 DataSet sceneData()
const;
110 void loadGraphOnScene(Graph *graph);
111 void useHulls(
bool hasHulls);
112 bool hasHulls()
const;
114 bool eventFilter(QObject *,QEvent *e);
115 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 ...