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

Public Member Functions

virtual void activate () override
 
virtual ContextID activeContext () const override
 
 CanvasGLFW (std::string_view title="", uvec2 dimensions=uvec2(128))
 
virtual ContextID contextId () const override
 
virtual std::unique_ptr< CanvascreateHiddenCanvas () override
 
virtual size2_t getCanvasDimensions () const override
 
ivec2 getFramebufferSize () const
 
ivec2 getWindowPosition () const
 
ivec2 getWindowSize () const
 
virtual void glSwapBuffers () override
 
virtual void releaseContext () override
 
void setOnTop (bool)
 
void setVisible (bool visible)
 
void setWindowPosition (ivec2)
 
void setWindowSize (ivec2)
 
void setWindowTitle (const std::string &windowTitle)
 
virtual void update () override
 
- Public Member Functions inherited from inviwo::GLFWWindowHandler
Canvas::ContextID getContextId () const
 
 GLFWWindowHandler (Canvas *canvas, std::string_view title, uvec2 dimensions)
 
- 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
 
virtual void render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override
 
- Public Member Functions inherited from inviwo::Canvas
void setEventPropagator (EventPropagator *propagator)
 

Static Public Member Functions

static int getVisibleWindowCount ()
 
static ivec2 movePointOntoDesktop (ivec2 pos, ivec2 size)
 
- Static Public Member Functions inherited from inviwo::GLFWWindowHandler
static GLFWwindow * createWindow (std::string_view title, uvec2 dimensions)
 
static void provideExternalContext (GLFWwindow *sharedContext)
 
static GLFWwindow * sharedContext ()
 
- Static Public Member Functions inherited from inviwo::CanvasGL
static void defaultGLState ()
 

Public Attributes

std::function< void(ivec2)> onFramebufferSizeChange
 
std::function< void(ivec2)> onPositionChange
 
std::function< void(bool)> onVisibilityChange
 
std::function< void(ivec2)> onWindowSizeChange
 
- Public Attributes inherited from inviwo::GLFWWindowHandler
GLFWwindow * glWindow_
 

Protected Member Functions

void setFullScreen (bool fullscreen)
 
- Protected Member Functions inherited from inviwo::CanvasGL
void drawSquare ()
 
bool ready ()
 
void renderLayer ()
 
void renderNoise ()
 
void renderTexture (int)
 
void setupDebug ()
 

Static Protected Member Functions

static CanvasGLFWgetCanvasGLFW (GLFWwindow *)
 

Friends

class CanvasProcessorWidgetGLFW
 

Additional Inherited Members

- Public Types inherited from inviwo::Canvas
using ContextID = const void*
 
- Protected Attributes inherited from inviwo::CanvasGL
std::weak_ptr< const Imageimage_
 
size_t layerIdx_ = 0
 
LayerType layerType_ = LayerType::Color
 
ShadernoiseShader_ = nullptr
 non-owning reference
 
bool ready_ = false
 
std::unique_ptr< Meshsquare_
 
const MeshGLsquareGL_ = nullptr
 Non-owning reference.
 
ShadertextureShader_ = nullptr
 non-owning reference
 
- Protected Attributes inherited from inviwo::Canvas
PickingController pickingController_
 
EventPropagatorpropagator_
 

Member Function Documentation

◆ activate()

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

Implements inviwo::Canvas.

◆ activeContext()

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

Implements inviwo::Canvas.

◆ contextId()

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

Implements inviwo::Canvas.

◆ createHiddenCanvas()

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

Implements inviwo::Canvas.

◆ getCanvasDimensions()

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

Implements inviwo::CanvasGL.

◆ glSwapBuffers()

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

Implements inviwo::CanvasGL.

◆ releaseContext()

virtual void inviwo::CanvasGLFW::releaseContext ( )
overridevirtual

Implements inviwo::Canvas.

◆ update()

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

Reimplemented from inviwo::CanvasGL.


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