Main view of old Tulip.
More...
#include <NodeLinkDiagramComponent.h>
List of all members.
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.
|
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 |
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.
- Returns:
- void
Implements tlp::View.
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 | ) |
|
|
virtualslot |
Sets the Graph on this View.
- Parameters:
-
graph | the new Graph to be displayed by this View. |
- Returns:
- void
Implements tlp::View.
void tlp::NodeLinkDiagramComponent::setGraph |
( |
Graph * |
graph, |
|
|
bool |
initView |
|
) |
| |
|
slot |
void tlp::NodeLinkDiagramComponent::showDialog |
( |
QAction * |
action | ) |
|
|
protectedvirtualslot |
This slot is call when a QAction in dialog sub menu of context menu is toggle
Reimplemented from tlp::GlMainView.
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 |
|