Default controller of Tulip.
More...
#include <MainController.h>
List of all members.
Public Slots
Public Member Functions
Protected Types
Protected Slots
Protected Member Functions
- void initializeGraph (Graph *graph)
- void loadGUI ()
- View * initMainView (DataSet dataSet)
- virtual View * createView (const std::string &name, Graph *graph, DataSet dataSet, bool forceWidgetSize=true, const QRect &rect=QRect(0, 0, 0, 0), bool maximized=false)
- virtual void drawViews (bool init=false)
- void observableDestroyed (Observable *)
- void update (ObserverIterator begin, ObserverIterator end)
- void initObservers ()
- void clearObservers ()
- void addSubGraph (Graph *, Graph *)
- void delSubGraph (Graph *, Graph *)
- void addLocalProperty (Graph *, const std::string &)
- void delLocalProperty (Graph *, const std::string &)
- void afterSetAttribute (Graph *, const std::string &)
- void updateCurrentGraphInfos ()
- void afterChangeProperty ()
- GraphState * constructGraphState ()
- void applyMorphing (GraphState *graphState)
Protected Attributes
Detailed Description
Default controller of Tulip.
This Controller create a GUI like the old Tulip On left : Property, and hierarchical view In view menu you have access to all view plugins
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Called when a local property is added
Called when a subgraph is added.
Activate undo/redo button, reload propertyWidget and redrawViews after we have change a property
Called when an attribute is set on a graph
Do a morphing between current state and the given GraphState
Store current view in a GraphState to use it with applyMorphing function
virtual View* tlp::MainController::createView |
( |
const std::string & |
name, |
|
|
Graph * |
graph, |
|
|
DataSet |
dataSet, |
|
|
bool |
forceWidgetSize = true , |
|
|
const QRect & |
rect = QRect(0, 0, 0, 0) , |
|
|
bool |
maximized = false |
|
) |
| [protected, virtual] |
Called when a local property is deleted
Called when a subgraph is removed.
Return the graph and the dataSet of the controller
Implements tlp::Controller.
Clear observers when a graph is about to be remove
Set the default initialization of the graph
Init all observers (graph and properties)
This function is call when an observable is destroyed
This slot is call when a view emit elementSelected Show the element in left part of the GUI
This slot is call to ensure the Graph Editor is visible
This slot is call to ensure the View Editor is visible
This function is call when an observable is update
Update number of nodes/edges in the status bar and the cluster tree widget.
This slot is call when a view want to change its graph
This function is call when a view is activated Return true if view can be activated (ie this view exist)
Reimplemented from tlp::ControllerViewsManager.
Member Data Documentation
|