|
void | applySettings () override |
|
void | centerView (bool graphChanged=false) override |
|
void | draw () override |
|
virtual void | drawOverview (bool generatePixmap=true) |
|
static bool | getNodeOrEdgeAtViewportPos (GlMainWidget *glw, int x, int y, node &n, edge &e) |
|
bool | getNodeOrEdgeAtViewportPos (int x, int y, node &n, edge &e) const override |
|
void | redraw () |
|
void | refresh () override |
|
void | setOverviewVisible (bool) |
|
void | setViewOrtho (bool) |
|
void | undoCallback () override |
|
void | draw () override |
|
void | setupUi () override |
|
void | addRedrawTrigger (tlp::Observable *) |
|
virtual void | applySettings () |
|
virtual void | centerView (bool graphChanged=false) |
|
virtual bool | checkOnClose () |
|
void | clearRedrawTriggers () |
|
virtual void | draw ()=0 |
|
void | emitDrawNeededSignal () |
|
virtual bool | getNodeOrEdgeAtViewportPos (int, int, node &, edge &) const |
|
virtual void | refresh () |
|
void | removeRedrawTrigger (tlp::Observable *) |
|
void | setCurrentInteractor (tlp::Interactor *currentInteractor) |
|
void | setGraph (tlp::Graph *graph) |
|
virtual void | setInteractors (const QList< tlp::Interactor *> &) |
|
virtual void | setupUi ()=0 |
|
void | treatEvent (const Event &) override |
|
virtual void | undoCallback () |
|
|
| GlMainView (bool needTooltipAndUrlManager=false) |
|
QList< QWidget * > | configurationWidgets () const override |
|
tlp::GlMainWidget * | getGlMainWidget () const |
|
OverviewPosition | overviewPosition () const |
|
bool | overviewVisible () const |
|
void | setOverviewPosition (const OverviewPosition &position) |
|
void | setState (const tlp::DataSet &) override |
|
void | setUpdateOverview (bool updateOverview) |
|
QPixmap | snapshot (const QSize &outputSize=QSize()) const override |
|
tlp::DataSet | state () const override |
|
bool | updateOverview () const |
|
QGraphicsView * | graphicsView () const override |
|
void | resetGraphicsScene () override |
|
| View () |
|
| ~View () override |
|
std::string | category () const override |
|
virtual QString | configurationWidgetsStyleSheet () const |
|
tlp::Interactor * | currentInteractor () const |
|
tlp::Graph * | graph () const |
|
std::string | icon () const override |
|
const QList< Interactor * > & | interactors () const |
|
virtual bool | interactorsEnabled () const |
|
void | setShowContextMenu (bool show) |
|
void | showContextMenu (const QPoint &point, const QPointF &scenePoint) |
|
void | treatEvents (const std::vector< Event > &events) override |
|
QSet< tlp::Observable * > | triggers () const |
|
virtual std::string | author () const =0 |
|
virtual std::string | date () const =0 |
|
void | declareDeprecatedName (const std::string &oldName) |
|
std::string | deprecatedName () |
|
virtual std::string | group () const =0 |
|
virtual int | id () const |
|
virtual std::string | info () const =0 |
|
virtual std::string | major () const |
|
virtual std::string | minor () const |
|
virtual std::string | name () const =0 |
|
virtual std::string | programmingLanguage () const |
|
virtual std::string | release () const =0 |
|
virtual std::string | tulipMajor () const |
|
virtual std::string | tulipMinor () const |
|
virtual std::string | tulipRelease () const =0 |
|
template<typename T > |
void | addInOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addInParameter (const std::string &name, const std::string &help, const std::string &defaultValue, bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true, const std::string &valuesDescription=std::string()) |
|
template<typename T > |
void | addParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
|
const tlp::ParameterDescriptionList & | getParameters () const |
|
bool | inputRequired () const |
|
void | addDependency (const char *name, const char *release) |
|
const std::list< Dependency > & | dependencies () const |
|
void | addListener (Observable *const listener) const |
|
void | addObserver (Observable *const observer) const |
|
unsigned int | countListeners () const |
|
unsigned int | countObservers () const |
|
unsigned int | getReceived () const |
|
unsigned int | getSent () const |
|
void | removeListener (Observable *const listener) const |
|
void | removeObserver (Observable *const observerver) const |
|
|
void | assignNewGlMainWidget (GlMainWidget *glMainWidget, bool deleteOldGlMainWidget=true) |
|
bool | eventFilter (QObject *obj, QEvent *event) override |
|
virtual QuickAccessBar * | getQuickAccessBarImpl () |
|
tlp::GlOverviewGraphicsItem * | overviewItem () const |
|
bool | quickAccessBarVisible () const |
|
void | setupWidget () override |
|
void | updateShowOverviewButton () |
|
void | updateShowQuickAccessBarButton () |
|
void | addToScene (QGraphicsItem *item) |
|
QGraphicsItem * | centralItem () const override |
|
void | removeFromScene (QGraphicsItem *item) |
|
void | setCentralWidget (QWidget *, bool deleteOldCentralWidget=true) |
|
QPixmap | snapshot (const QSize &outputSize=QSize()) const override |
|
| Observable (const Observable &) |
|
bool | hasOnlookers () const |
|
void | observableDeleted () |
|
Observable & | operator= (const Observable &) |
|
void | sendEvent (const Event &message) |
|
virtual void | treatEvent (const Event &message) |
|
An abstract view that displays a GlMainWidget as its central widget.
The GlMainView subclasses ViewWidget and always uses a GlMainWidget as the central widget of the panel. It also adds the following features:
- An overview of the scene that can be toggled on or off.
- Some configuration widgets that modify the rendering parameters.
- A quick access bar widget that allows the user to quickly modify some of the most used rendering parameters and graph properties (nodes color, edges display, etc)
- The possibility to make snapshots of the current scene
Subclassing GlMainView means you will only want to display graphs in a single GlMainWidget. Switching the central widget can only be achieved from the ViewWidget class.
- Warning
- It is strongly unadvised to re-implement methods already implemented into tlp::View or tlp::ViewWidget. If you have to add custom behavior to those method, make sure to call the upper-class methods first:
void MyView::setupWidget() {
}
- See also
- tlp::ViewWidget
- Examples:
- interactor_plugin/interactor_plugin.cpp.
Definition at line 68 of file GlMainView.h.