That module should only be used when working with the Python Script editor integrated in the Tulip software.
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.
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 |
---|
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. |
---|
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 |
---|