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

Public Member Functions

 CanvasGLFW (std::string title="", uvec2 dimensions=uvec2(128))
 
virtual void activate () override
 
virtual void glSwapBuffers () override
 
void show ()
 
void hide ()
 
void setWindowSize (ivec2)
 
void setWindowPosition (ivec2)
 
void setWindowTitle (std::string)
 
virtual void update () override
 
virtual std::unique_ptr< CanvascreateHiddenCanvas () override
 
virtual ContextID activeContext () const override
 
virtual ContextID contextId () const 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
 
bool isFullScreen () const
 
void setFullScreen (bool fullscreen)
 
void propagateEvent (Event *e)
 

Static Public Member Functions

static void closeWindow (GLFWwindow *)
 
static int getVisibleWindowCount ()
 
static void reshape (GLFWwindow *, int, int)
 
static void move (GLFWwindow *, int, int)
 
static void keyboard (GLFWwindow *, int, int, int, int)
 
static void character (GLFWwindow *, unsigned int)
 UTF32 encoded text input.
 
static void mouseButton (GLFWwindow *, int, int, int)
 
static void mouseMotion (GLFWwindow *, double, double)
 
static void scroll (GLFWwindow *, double, double)
 
static MouseButton mapMouseButton (const int mouseButtonGLFW)
 
static MouseState mapMouseState (const int mouseStateGLFW)
 
static KeyModifiers mapModifiers (const int modifiersGLFW)
 
static void setAlwaysOnTopByDefault (bool)
 
- Static Public Member Functions inherited from inviwo::CanvasGL
static void defaultGLState ()
 

Protected Member Functions

virtual void setFullScreenInternal (bool fullscreen) override
 
dvec2 normalPos (dvec2 pos) const
 
virtual void releaseContext () override
 
- Protected Member Functions inherited from inviwo::CanvasGL
void renderLayer (size_t idx=0)
 
void renderNoise ()
 
void drawSquare ()
 
void renderTexture (int)
 
bool ready ()
 

Static Protected Member Functions

static CanvasGLFWgetCanvasGLFW (GLFWwindow *)
 
static CanvasGLFWgetSharedContext ()
 

Friends

class CanvasProcessorWidgetGLFW
 

Additional Inherited Members

- Public Types inherited from inviwo::Canvas
using ContextID = const void *
 
- 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
 

Member Function Documentation

◆ setFullScreenInternal()

void inviwo::CanvasGLFW::setFullScreenInternal ( bool  fullscreen)
overrideprotectedvirtual

Derived classes should override to implement actual window state.

Implements inviwo::Canvas.


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