Main view of old Tulip.
More...
#include <NodeLinkDiagramComponent.h>
Public Slots |
void | centerView () |
void | drawAfterRenderingParametersChange () |
virtual void | draw () |
virtual void | refresh () |
virtual void | init () |
void | setGraph (Graph *graph) |
void | setGraph (Graph *graph, bool initView) |
void | elementSelectedSlot (unsigned int id, bool isNode) |
Public Slots inherited from tlp::GlMainView |
virtual void | draw () |
virtual void | refresh () |
virtual void | hideOverview (bool) |
virtual void | displayOverview (bool display) |
virtual void | showDialog (QAction *action) |
bool | eventFilter (QObject *object, QEvent *event) |
virtual void | exportImage (QAction *action) |
virtual void | setGraph (Graph *graph)=0 |
| Sets the Graph on this View.
|
virtual void | draw ()=0 |
| Draws the View from scratch, i.e. reading the Graph, and drawind all the nodes and edges depending on their position, colors, etc... This drawing is then stored to be re-used when a refresh is all you need. Then, the interactors are drawn. This is pretty resource-hungry, if you just need to redraw the interactors or only the selection changed, use refresh.
|
virtual void | refresh ()=0 |
| Refreshes the view, using the backed up drawing that draw stored. Then the interactors are drawn. This is usefull when the selection changed, but nothing else in the Graph changed (color, size, layout, ...), or when an interactor changed and needs re-drawing. This is way less resource-hungry than draw().
|
virtual void | init ()=0 |
| Centers and draws the view. Calls centerview() [where applicable], then draw(). This might be removed in a future version (3.6 or later) as all this does is calling centerview on the GlMainWidget if this is a GlMainView. Adding a centerView function in View would allow to remove this function.
|
Public Member Functions |
| NodeLinkDiagramComponent () |
virtual | ~NodeLinkDiagramComponent () |
virtual QWidget * | construct (QWidget *parent) |
virtual void | setData (Graph *graph, DataSet dataSet) |
| Set the View's Graph and DataSet.
|
virtual void | getData (Graph **graph, DataSet *dataSet) |
| Gets the Graph and DataSet of the view.
|
virtual std::list< std::pair
< QWidget *, std::string > > | getConfigurationWidget () |
| Returns the configuration widgets this view should use. These widgets will be displayed in the left dock of the MainController, in the View Editor tab. Each widget will be in a tab whose text is the string of the pair.
|
virtual void | specificEventFilter (QObject *object, QEvent *event) |
virtual void | buildContextMenu (QObject *object, QContextMenuEvent *event, QMenu *contextMenu) |
virtual void | computeContextMenuAction (QAction *action) |
void | emitRequestChangeGraph (Graph *graph) |
Public Member Functions inherited from tlp::GlMainView |
| GlMainView () |
virtual | ~GlMainView () |
Graph * | getGraph () |
virtual GlMainWidget * | getGlMainWidget () |
virtual void | createPicture (const std::string &pictureName, int width=0, int height=0) |
virtual bool | createPicture (const std::string &pictureName, int width, int height, bool center, int zoom=1, int xOffset=0, int yOffset=0) |
virtual QImage | createPicture (int width, int height, bool center, int zoom=1, int xOffset=0, int yOffset=0) |
GWOverviewWidget * | getOverviewWidget () |
QAction * | getOverviewAction () |
| AbstractView () |
virtual | ~AbstractView () |
QWidget * | getWidget () |
virtual void | setInteractors (const std::list< Interactor * > &interactorsList) |
virtual std::list< Interactor * > | getInteractors () |
virtual void | setActiveInteractor (Interactor *interactor) |
Interactor * | getActiveInteractor () |
QWidget * | getCentralWidget () const |
bool | savePicture (const std::string &pictureName, int width, int height, bool center, int zoom=1, int xOffset=0, int yOffset=0) |
| Default implementation of the savePicture function. Use the image objects returned by the createPicture function and save it to a picture file on disk.
|
virtual | ~View () |
virtual std::string | getRealViewName () const |
| Return the real view name (if "" the real name is the name given by the plugin).
|
virtual void | undoIsDone () |
| This function is called when an undo is performed by the controller.
|
Additional Inherited Members |
void | elementSelected (unsigned int eltId, bool isNode) |
| This signal is emitted when a specific element is selected in the view.
|
void | requestChangeGraph (tlp::View *view, tlp::Graph *graph) |
| This signal is emitted when the view wants to change its graph.
|
Detailed Description
Main view of old Tulip.
This class provide a graph view based to nodes and links Rendering is do with OpenGl
Constructor & Destructor Documentation
tlp::NodeLinkDiagramComponent::NodeLinkDiagramComponent |
( |
| ) |
|
virtual tlp::NodeLinkDiagramComponent::~NodeLinkDiagramComponent |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual void tlp::NodeLinkDiagramComponent::buildContextMenu |
( |
QObject * |
object, |
|
|
QContextMenuEvent * |
event, |
|
|
QMenu * |
contextMenu |
|
) |
| |
|
virtual |
void tlp::NodeLinkDiagramComponent::centerView |
( |
| ) |
|
|
slot |
void tlp::NodeLinkDiagramComponent::checkAlgorithmResult |
( |
| ) |
|
|
protected |
virtual void tlp::NodeLinkDiagramComponent::computeContextMenuAction |
( |
QAction * |
| ) |
|
|
virtual |
virtual QWidget* tlp::NodeLinkDiagramComponent::construct |
( |
QWidget * |
parent | ) |
|
|
virtual |
virtual void tlp::NodeLinkDiagramComponent::draw |
( |
| ) |
|
|
virtualslot |
void tlp::NodeLinkDiagramComponent::drawAfterRenderingParametersChange |
( |
| ) |
|
|
slot |
void tlp::NodeLinkDiagramComponent::elementSelectedSlot |
( |
unsigned int |
id, |
|
|
bool |
isNode |
|
) |
| |
|
inlineslot |
void tlp::NodeLinkDiagramComponent::emitRequestChangeGraph |
( |
Graph * |
graph | ) |
|
|
inline |
virtual std::list<std::pair<QWidget *,std::string> > tlp::NodeLinkDiagramComponent::getConfigurationWidget |
( |
| ) |
|
|
virtual |
Returns the configuration widgets this view should use. These widgets will be displayed in the left dock of the MainController, in the View Editor tab. Each widget will be in a tab whose text is the string of the pair.
- Returns
- :list< std::pair<QWidget* , std::string > > Each element of this list is a pair of configuration widget and widget title.
Reimplemented from tlp::View.
virtual void tlp::NodeLinkDiagramComponent::getData |
( |
Graph ** |
graph, |
|
|
DataSet * |
dataSet |
|
) |
| |
|
virtual |
Gets the Graph and DataSet of the view.
- Parameters
-
graph | A pointer whose value will be modified to point to the Graph* of the view. |
dataSet | A pointer whose value will be modified to point to the DataSet of the view. |
- Returns
- void
Implements tlp::View.
void tlp::NodeLinkDiagramComponent::gridOptions |
( |
| ) |
|
|
protectedslot |
virtual void tlp::NodeLinkDiagramComponent::init |
( |
| ) |
|
|
virtualslot |
virtual void tlp::NodeLinkDiagramComponent::refresh |
( |
| ) |
|
|
virtualslot |
virtual void tlp::NodeLinkDiagramComponent::setData |
( |
Graph * |
graph, |
|
|
DataSet |
dataSet |
|
) |
| |
|
virtual |
Set the View's Graph and DataSet.
- Parameters
-
graph | The view's new Graph. |
dataSet | The view's new DataSet. |
- Returns
- void
Implements tlp::View.
void tlp::NodeLinkDiagramComponent::setGraph |
( |
Graph * |
graph | ) |
|
|
slot |
void tlp::NodeLinkDiagramComponent::setGraph |
( |
Graph * |
graph, |
|
|
bool |
initView |
|
) |
| |
|
slot |
void tlp::NodeLinkDiagramComponent::showDialog |
( |
QAction * |
| ) |
|
|
protectedslot |
virtual void tlp::NodeLinkDiagramComponent::specificEventFilter |
( |
QObject * |
, |
|
|
QEvent * |
|
|
) |
| |
|
virtual |
empty function : implement this function if you want a specific event filter in your view
Reimplemented from tlp::AbstractView.
Member Data Documentation
QAction* tlp::NodeLinkDiagramComponent::actionAntialiasingOptions |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::actionsGridOptions |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::actionTooltips |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::actionZOrderingOptions |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::addRemoveAction |
|
protected |
std::map<std::string,DataSet> tlp::NodeLinkDiagramComponent::algorithmInfoDataSet |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::augmentedDisplayDialogAction |
|
protected |
GlMetaNodeRenderer* tlp::NodeLinkDiagramComponent::currentMetaNodeRenderer |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::deleteAction |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::goAction |
|
protected |
bool tlp::NodeLinkDiagramComponent::isNode |
|
protected |
int tlp::NodeLinkDiagramComponent::itemId |
|
protected |
QMenu* tlp::NodeLinkDiagramComponent::optionsMenu |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::propAction |
|
protected |
bool tlp::NodeLinkDiagramComponent::qtMetaNode |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::selectAction |
|
protected |
QAction* tlp::NodeLinkDiagramComponent::ungroupAction |
|
protected |
QMenu* tlp::NodeLinkDiagramComponent::viewMenu |
|
protected |
|