Loads Tulip plugins related to the tulipgui module (views, interactors, glyphs).
New in version 3.8.
Returns a list of the views names currently available in Tulip.
Return type: | list of string |
---|
New in version 3.8.
Creates and adds a new Tulip view. If called through a Python Script editor in the main Tulip GUI, the view will be added in the Tulip workspace. If called through the classical Python shell, a dialog containing the view will be created and displayed. Returns an instance of the newly created view.
Parameters: |
|
---|---|
Return type: |
New in version 3.8.
Convenient function for creating the principal view offered by Tulip : a node link diagram. Its call is equivalent to:
nodeLinkView = tlp.addView("Node Link Diagram view", graph)
Parameters: | graph (tulip.tlp.Graph) – the graph to visualize |
---|---|
Return type: | tlp.NodeLinkDiagramComponent |
New in version 3.8.
Returns a list of the views currently opened.
Return type: | list of tlp.View |
---|
New in version 3.8.
Returns a list of views associated to a particular graph.
Parameters: | graph (tulip.tlp.Graph) – the graph on which to find views |
---|---|
Return type: | list of tlp.View |
New in version 3.8.
Tiles the opened views in the current workspace (this function has no effect when called from the classical Python shell).
New in version 3.8.
Closes an opened view.
Parameters: | view (tlp.View) – the view to close |
---|
New in version 3.8.
Closes all opened views.
New in version 3.8.
Closes all the views associated to a particular graph.
Parameters: | graph (tulip.tlp.Graph) – the graph on which to close views |
---|
New in version 3.8.
This is the base class for Tulip data views. Use the following functions to get instances on such object :
Draws/Updates the view.
Returns the current parameters of the view.
Return type: | tulip.tlp.DataSet |
---|
Returns the graph currently attached to the view.
Return type: | tulip.tlp.Graph |
---|
Returns the name of the view.
Return type: | string |
---|
Resizes the view windows. That method has effects only when working trough the classical Python interpreter.
Parameters: |
|
---|
Takes a snapshot of the view (if the view supports it), and saves it to a picture on disk. Returns True if the operation succeeds.
Parameters: |
|
---|---|
Return type: | boolean |
Sets the graph and parameters for the view.
Parameters: |
|
---|
Sets the graph for the view. The current parameters will be kept.
Parameters: | graph (tulip.tlp.Graph) – the graph from which the view will be drawn. |
---|
Shows / hides the options widgets located on the left side of the view. That method has effects only when working trough the classical Python interpreter.
Parameters: | visible (boolean) – the state of the options widgets visibility |
---|
Set the position on screen of the view windows. That method has effects only when working trough the classical Python interpreter.
Parameters: |
|
---|
Hides / Shows the view window. That method has effects only when working trough the classical Python interpreter. It can be usefull for scripts that only needs. to save visualizations snaphots to disk. View windows can be hidden and the script will terminate directly instead of waiting for the views windows to be closed by the user. However, the view window needs to be displayed at least once in order to correctly initialize the OpenGL context.
Parameters: | visible (boolean) – the state of the view window visibility |
---|
New in version 3.8.
Bases: tlp.View
That class represents the main type of view offered by Tulip : a node link diagram.
Centers the view according to the current view window size and draws it.
Returns the state of the automatic centering when setting a new graph on the view.
Return type: | boolean |
---|
Returns a copy of the current rendering parameters for the node link diagram view.
Return type: | tulipogl.tlp.GlGraphRenderingParameters |
---|
Hides / displays the overview in the top left corner of the view.
Parameters: | hideOverview (boolean) – whether to hide the overview |
---|
Activates / desactivates the automatic centering of the view when setting a new graph on it.
Parameters: | center (boolean) – the state of the automatic centering |
---|
Sets the rendering parameters for the node link diagram view.
Parameters: | parameters (tulipogl.tlp.GlGraphRenderingParameters) – the new rendering parameters |
---|