Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::CanvasQOpenGLWidget Class Reference
+ Inheritance diagram for inviwo::CanvasQOpenGLWidget:

Public Member Functions

 CanvasQOpenGLWidget (QWidget *parent, std::string_view name)
 
virtual void activate () override
 
virtual void glSwapBuffers () override
 
virtual void update () override
 
virtual void render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override
 
virtual ContextID activeContext () const override
 
virtual ContextID contextId () const override
 
virtual std::unique_ptr< CanvascreateHiddenCanvas () override
 
virtual size2_t getCanvasDimensions () const override
 
void onContextMenu (std::function< bool(QMenu &)> callback)
 
- Public Member Functions inherited from inviwo::CanvasGL
virtual size2_t getImageDimensions () const
 
double getDepthValueAtCoord (ivec2 canvasCoordinate) const
 Retrieve depth value in normalized device coordinates at screen coordinate.
 
double getDepthValueAtNormalizedCoord (dvec2 normalizedScreenCoordinate) const
 
- Public Member Functions inherited from inviwo::Canvas
void setEventPropagator (EventPropagator *propagator)
 
- Public Member Functions inherited from inviwo::EventPropagator

Protected Member Functions

virtual void releaseContext () override
 
virtual void propagateEvent (Event *e, Outport *source) override
 
virtual void initializeGL () override
 
virtual void paintGL () override
 
virtual void resizeEvent (QResizeEvent *event) override
 
- Protected Member Functions inherited from inviwo::CanvasGL
void setupDebug ()
 
void renderLayer ()
 
void renderNoise ()
 
void drawSquare ()
 
void renderTexture (int)
 
bool ready ()
 

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 Imageimage_
 
std::unique_ptr< Meshsquare_
 
const MeshGLsquareGL_ = nullptr
 Non-owning reference.
 
bool ready_ = false
 
LayerType layerType_ = LayerType::Color
 
size_t layerIdx_ = 0
 
ShadertextureShader_ = nullptr
 non-owning reference
 
ShadernoiseShader_ = nullptr
 non-owning reference
 
- Protected Attributes inherited from inviwo::Canvas
EventPropagatorpropagator_
 
PickingController pickingController_
 

Member Function Documentation

◆ activate()

virtual void inviwo::CanvasQOpenGLWidget::activate ( )
overridevirtual

Implements inviwo::Canvas.

◆ activeContext()

virtual ContextID inviwo::CanvasQOpenGLWidget::activeContext ( ) const
overridevirtual

Implements inviwo::Canvas.

◆ contextId()

virtual ContextID inviwo::CanvasQOpenGLWidget::contextId ( ) const
overridevirtual

Implements inviwo::Canvas.

◆ createHiddenCanvas()

virtual std::unique_ptr< Canvas > inviwo::CanvasQOpenGLWidget::createHiddenCanvas ( )
overridevirtual

Implements inviwo::Canvas.

◆ getCanvasDimensions()

virtual size2_t inviwo::CanvasQOpenGLWidget::getCanvasDimensions ( ) const
overridevirtual

Implements inviwo::CanvasGL.

◆ glSwapBuffers()

virtual void inviwo::CanvasQOpenGLWidget::glSwapBuffers ( )
overridevirtual

Implements inviwo::CanvasGL.

◆ onContextMenu()

void inviwo::CanvasQOpenGLWidget::onContextMenu ( std::function< bool(QMenu &)> callback)

Set a callback to be invoded on contextmeny events. The callback can add more functionallity to the context menu. I the function retuns true the menu will be shown, else it will be discarded.

◆ propagateEvent()

virtual void inviwo::CanvasQOpenGLWidget::propagateEvent ( Event * e,
Outport * source )
overrideprotectedvirtual

◆ releaseContext()

virtual void inviwo::CanvasQOpenGLWidget::releaseContext ( )
overrideprotectedvirtual

Implements inviwo::Canvas.

◆ render()

virtual void inviwo::CanvasQOpenGLWidget::render ( std::shared_ptr< const Image > image,
LayerType layerType = LayerType::Color,
size_t idx = 0 )
overridevirtual

Reimplemented from inviwo::CanvasGL.

◆ update()

virtual void inviwo::CanvasQOpenGLWidget::update ( )
overridevirtual

Reimplemented from inviwo::CanvasGL.


The documentation for this class was generated from the following file: