Inviwo  0.9.10.1
Inviwo documentation
inviwo::CanvasQWindow Class Reference
+ Inheritance diagram for inviwo::CanvasQWindow:

Public Types

using QtBase = QWindow
 
- Public Types inherited from inviwo::Canvas
using ContextID = const void *
 

Public Member Functions

 CanvasQWindow (QWindow *parent=nullptr, uvec2 dim=uvec2(256, 256))
 
virtual void activate () override
 
virtual void glSwapBuffers () override
 
virtual void update () override
 
void repaint ()
 
virtual void resize (uvec2 size) override
 
QOpenGLContext * context () const
 
QWindow * parentWidget () const
 
virtual void releaseContext () override
 
- Public Member Functions inherited from inviwo::CanvasGL
 CanvasGL (size2_t dimensions)
 
virtual void render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override
 
virtual void resize (size2_t size) override
 
virtual void setProcessorWidgetOwner (ProcessorWidget *) override
 
virtual size2_t getImageDimensions () const override
 
double getDepthValueAtCoord (ivec2 canvasCoordinate) const
 Retrieve depth value in normalized device coordinates at screen coordinate. More...
 
double getDepthValueAtNormalizedCoord (dvec2 normalizedScreenCoordinate) const
 
- Public Member Functions inherited from inviwo::Canvas
 Canvas (size2_t dimensions)
 
size2_t getCanvasDimensions () const
 
void setEventPropagator (EventPropagator *propagator)
 
virtual ProcessorWidgetgetProcessorWidgetOwner () const
 
virtual std::unique_ptr< CanvascreateHiddenCanvas ()=0
 
virtual ContextID activeContext () const =0
 
virtual ContextID contextId () const =0
 
bool isFullScreen () const
 
void setFullScreen (bool fullscreen)
 
void propagateEvent (Event *e)
 

Static Public Member Functions

static void defineDefaultContextFormat ()
 
- Static Public Member Functions inherited from inviwo::CanvasGL
static void defaultGLState ()
 

Protected Member Functions

void initializeGL ()
 
void paintGL ()
 
virtual void resizeEvent (QResizeEvent *event) override
 
void exposeEvent (QExposeEvent *event) override
 
- Protected Member Functions inherited from inviwo::CanvasGL
void renderLayer (size_t idx=0)
 
void renderNoise ()
 
void drawSquare ()
 
void renderTexture (int)
 
bool ready ()
 
- Protected Member Functions inherited from inviwo::Canvas
virtual void setFullScreenInternal (bool fullscreen)=0
 

Static Protected Attributes

static CanvasQWindowsharedCanvas_ = nullptr
 

Friends

class CanvasProcessorWidgetQt
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::CanvasGL
std::shared_ptr< const Imageimage_
 
const ImageGLimageGL_ = nullptr
 
std::unique_ptr< Meshsquare_
 
const MeshGLsquareGL_ = nullptr
 Non-owning reference. More...
 
bool ready_ = false
 
LayerType layerType_ = LayerType::Color
 
ShadertextureShader_ = nullptr
 non-owning reference
 
ShadernoiseShader_ = nullptr
 non-owning reference
 
size_t activeRenderLayerIdx_ = 0
 
- Protected Attributes inherited from inviwo::Canvas
size2_t screenDimensions_
 
EventPropagatorpropagator_
 
PickingController pickingController_
 
ProcessorWidgetownerWidget_
 
bool isFullScreen_ = false
 

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