Tulip
4.4.0
Better Visualization Through Research
|
#include <GlMainView.h>
Inherits tlp::ViewWidget.
Public Types | |
enum | OverviewPosition { OVERVIEW_TOP_LEFT, OVERVIEW_TOP_RIGHT, OVERVIEW_BOTTOM_LEFT, OVERVIEW_BOTTOM_RIGHT } |
Public Slots | |
void | applySettings () |
virtual void | centerView (bool graphChanged=false) |
virtual void | draw () |
virtual void | drawOverview (bool generatePixmap=true) |
void | openSnapshotDialog () |
void | redraw () |
virtual void | refresh () |
void | setOverviewVisible (bool) |
void | setViewOrtho (bool) |
void | undoCallback () |
Public Slots inherited from tlp::ViewWidget | |
virtual void | draw () |
virtual void | setupUi () |
Public Slots inherited from tlp::View | |
void | addRedrawTrigger (tlp::Observable *) |
virtual void | applySettings () |
virtual void | centerView (bool graphChanged=false) |
void | clearRedrawTriggers () |
virtual void | draw ()=0 |
void | emitDrawNeededSignal () |
virtual void | refresh () |
void | removeRedrawTrigger (tlp::Observable *) |
void | setCurrentInteractor (tlp::Interactor *currentInteractor) |
void | setGraph (tlp::Graph *graph) |
void | setInteractors (const QList< tlp::Interactor * > &) |
virtual void | setState (const tlp::DataSet &)=0 |
virtual void | setupUi ()=0 |
void | showContextMenu (const QPoint &point, const QPointF &scenePoint) |
virtual void | treatEvent (const Event &) |
virtual void | undoCallback () |
Public Member Functions | |
virtual QList< QWidget * > | configurationWidgets () const |
tlp::GlMainWidget * | getGlMainWidget () const |
bool | overviewVisible () const |
void | setOverviewPosition (const OverviewPosition &position) |
QPixmap | snapshot (const QSize &outputSize=QSize()) const |
Public Member Functions inherited from tlp::ViewWidget | |
virtual QGraphicsView * | graphicsView () const |
Public Member Functions inherited from tlp::View | |
View () | |
virtual | ~View () |
virtual std::string | category () const |
virtual QString | configurationWidgetsStyleSheet () const |
tlp::Interactor * | currentInteractor () const |
tlp::Graph * | graph () const |
std::string | icon () const |
QList< tlp::Interactor * > | interactors () const |
virtual tlp::DataSet | state () const =0 |
void | treatEvents (const std::vector< Event > &events) |
QSet< tlp::Observable * > | triggers () const |
Public Member Functions inherited from tlp::Plugin | |
virtual std::string | author () const =0 |
virtual std::string | date () const =0 |
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 |
Public Member Functions inherited from tlp::WithParameter | |
template<typename T > | |
void | addInOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
template<typename T > | |
void | addInParameter (const std::string &name, const std::string &help, const std::string &defaultValue, bool isMandatory=true) |
template<typename T > | |
void | addOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
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 |
Public Member Functions inherited from tlp::WithDependency | |
void | addDependency (const char *name, const char *release) |
const std::list< Dependency > & | dependencies () const |
Public Member Functions inherited from tlp::Observable | |
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 |
Protected Slots | |
void | fillContextMenu (QMenu *menu, const QPointF &) |
virtual void | glMainViewDrawn (bool graphChanged) |
virtual void | sceneRectChanged (const QRectF &) |
void | setQuickAccessBarVisible (bool) |
Protected Slots inherited from tlp::ViewWidget | |
virtual void | currentInteractorChanged (tlp::Interactor *) |
virtual void | graphDeleted (Graph *parentGraph) |
Protected Slots inherited from tlp::View | |
virtual void | currentInteractorChanged (tlp::Interactor *) |
virtual void | fillContextMenu (QMenu *, const QPointF &) |
virtual void | graphChanged (tlp::Graph *)=0 |
virtual void | graphDeleted (tlp::Graph *parentGraph)=0 |
virtual void | interactorsInstalled (const QList< tlp::Interactor * > &interactors) |
Protected Member Functions | |
void | assignNewGlMainWidget (GlMainWidget *glMainWidget, bool deleteOldGlMainWidget=true) |
bool | eventFilter (QObject *obj, QEvent *event) |
tlp::GlOverviewGraphicsItem * | overviewItem () const |
bool | quickAccessBarVisible () const |
virtual void | setupWidget () |
Protected Member Functions inherited from tlp::ViewWidget | |
void | addToScene (QGraphicsItem *item) |
virtual QGraphicsItem * | centralItem () const |
void | removeFromScene (QGraphicsItem *item) |
void | setCentralWidget (QWidget *, bool deleteOldCentralWidget=true) |
QPixmap | snapshot (const QSize &outputSize=QSize()) const |
Additional Inherited Members | |
Signals inherited from tlp::View | |
void | drawNeeded () |
void | graphSet (tlp::Graph *) |
void | interactorsChanged () |
Static Public Member Functions inherited from tlp::Observable | |
static Observable * | getObject (tlp::node n) |
static const tlp::VectorGraph & | getObservableGraph () |
static void | holdObservers () |
static bool | isAlive (tlp::node n) |
static unsigned int | observersHoldCounter () |
static void | unholdObservers () |
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:
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.
Definition at line 61 of file GlMainView.h.
|
slot |
Force the settings set in the configuration widgets to be re-applied.
|
virtualslot |
Centers the scene's camera.
|
virtual |
Reimplemented from tlp::View.
|
virtualslot |
Calls GlMainWidget::draw();.
|
virtualslot |
Force the overview to be redrawn. Since GlMainView already detects graph's modifications, this method should not be called manually to avoid extra rendering.
|
slot |
Display a dialog that takes a snapshot of the current scene.
|
slot |
Calls GlMainWidget::redraw();.
|
virtualslot |
Calls GlMainWidget::redraw();.
|
slot |
Toggles the overview on or off.
|
protectedvirtual |
Sets up the central widget. This is similar to View::setupUi in the sense that the purpose of setupWidget is to construct the GUI element.
Implements tlp::ViewWidget.
|
slot |
Toggles the orthogonal projection on or off, then draws.
|
virtual |
Takes a snapshot of the view's screen and saves it into the given pixmap. The snapshot is scaled to outputSize. If a null size is given, the snapshot is to be on a 1:1 ratio.
Implements tlp::View.