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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Protected Member Functions

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

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_
 
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::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: