![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| virtual void | activate () override |
| virtual ContextID | activeContext () const override |
| CanvasQOpenGLWidget (QWidget *parent, std::string_view name) | |
| virtual ContextID | contextId () const override |
| virtual std::unique_ptr< Canvas > | createHiddenCanvas () override |
| virtual size2_t | getCanvasDimensions () const override |
| virtual void | glSwapBuffers () override |
| void | onContextMenu (std::function< bool(QMenu &, ContextMenuCategories)> callback) |
| virtual void | render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override |
| void | triggerResizeEventPropagation () |
| virtual void | update () override |
| Public Member Functions inherited from inviwo::CanvasGL | |
| double | getDepthValueAtCoord (ivec2 canvasCoordinate) const |
| Retrieve depth value in normalized device coordinates at screen coordinate. | |
| double | getDepthValueAtNormalizedCoord (dvec2 normalizedScreenCoordinate) const |
| virtual size2_t | getImageDimensions () const |
| Public Member Functions inherited from inviwo::Canvas | |
| void | setEventPropagator (EventPropagator *propagator) |
Protected Member Functions | |
| virtual void | initializeGL () override |
| virtual void | paintGL () override |
| virtual void | propagateEvent (Event *e, Outport *source) override |
| virtual void | releaseContext () override |
| virtual void | resizeEvent (QResizeEvent *event) override |
| Protected Member Functions inherited from inviwo::CanvasGL | |
| void | drawSquare () |
| bool | ready () |
| void | renderLayer () |
| void | renderNoise () |
| void | renderTexture (int) |
| void | setupDebug () |
Friends | |
| class | CanvasProcessorWidgetQt |
Additional Inherited Members | |
| Public Types inherited from inviwo::Canvas | |
| using | ContextID = const void* |
| Static Public Member Functions inherited from inviwo::CanvasGL | |
| static void | defaultGLState () |
| Protected Attributes inherited from inviwo::CanvasGL | |
| std::weak_ptr< const Image > | image_ |
| size_t | layerIdx_ = 0 |
| LayerType | layerType_ = LayerType::Color |
| Shader * | noiseShader_ = nullptr |
| non-owning reference | |
| bool | ready_ = false |
| std::unique_ptr< Mesh > | square_ |
| const MeshGL * | squareGL_ = nullptr |
| Non-owning reference. | |
| Shader * | textureShader_ = nullptr |
| non-owning reference | |
| Protected Attributes inherited from inviwo::Canvas | |
| PickingController | pickingController_ |
| EventPropagator * | propagator_ |
|
overridevirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Implements inviwo::CanvasGL.
|
overridevirtual |
Implements inviwo::CanvasGL.
| void inviwo::CanvasQOpenGLWidget::onContextMenu | ( | std::function< bool(QMenu &, ContextMenuCategories)> | callback | ) |
Set a callback to be invoked on context menu events. The callback can add more functionality to the context menu. If the function returns true the menu will be shown, else it will be discarded.
|
overrideprotectedvirtual |
Implements inviwo::EventPropagator.
|
overrideprotectedvirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Reimplemented from inviwo::CanvasGL.
|
overridevirtual |
Reimplemented from inviwo::CanvasGL.