Inviwo  0.9.10.1
Inviwo documentation
inviwo::Canvas Class Referenceabstract
+ Inheritance diagram for inviwo::Canvas:

Public Types

using ContextID = const void *
 

Public Member Functions

 Canvas (size2_t dimensions)
 
virtual void render (std::shared_ptr< const Image >, LayerType layerType=LayerType::Color, size_t idx=0)=0
 
virtual void resize (size2_t canvasSize)
 
size2_t getCanvasDimensions () const
 
virtual size2_t getImageDimensions () const =0
 
virtual void update ()=0
 
virtual void activate ()=0
 
void setEventPropagator (EventPropagator *propagator)
 
virtual ProcessorWidgetgetProcessorWidgetOwner () const
 
virtual void setProcessorWidgetOwner (ProcessorWidget *)
 
virtual std::unique_ptr< CanvascreateHiddenCanvas ()=0
 
virtual ContextID activeContext () const =0
 
virtual ContextID contextId () const =0
 
virtual void releaseContext ()=0
 
bool isFullScreen () const
 
void setFullScreen (bool fullscreen)
 
void propagateEvent (Event *e)
 

Protected Member Functions

virtual void setFullScreenInternal (bool fullscreen)=0
 

Protected Attributes

size2_t screenDimensions_
 
EventPropagatorpropagator_
 
PickingController pickingController_
 
ProcessorWidgetownerWidget_
 
bool isFullScreen_ = false
 

Member Function Documentation

◆ setFullScreen()

void inviwo::Canvas::setFullScreen ( bool  fullscreen)

Sets window state of canvas to cover the entire screen. Will call setFullScreenInternal after setting full screen flag.

See also
setFullScreenInternal

◆ setFullScreenInternal()

virtual void inviwo::Canvas::setFullScreenInternal ( bool  fullscreen)
protectedpure virtual

Derived classes should override to implement actual window state.

Implemented in inviwo::CanvasGLFW.


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