|
| CanvasGLFW (const std::string &title="", uvec2 dimensions=uvec2(128)) |
|
virtual void | update () override |
|
virtual void | activate () override |
|
virtual std::unique_ptr< Canvas > | createHiddenCanvas () 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 |
|
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 |
|
void | setEventPropagator (EventPropagator *propagator) |
|
|
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 void | defaultGLState () |
|
|
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_ |
|
|
void | setFullScreen (bool fullscreen) |
|
void | setupDebug () |
|
void | renderLayer () |
|
void | renderNoise () |
|
void | drawSquare () |
|
void | renderTexture (int) |
|
bool | ready () |
|
|
class | CanvasProcessorWidgetGLFW |
|
|
using | ContextID = const void* |
|
std::weak_ptr< const Image > | image_ |
|
std::unique_ptr< Mesh > | square_ |
|
const MeshGL * | squareGL_ = nullptr |
| Non-owning reference.
|
|
bool | ready_ = false |
|
LayerType | layerType_ = LayerType::Color |
|
size_t | layerIdx_ = 0 |
|
Shader * | textureShader_ = nullptr |
| non-owning reference
|
|
Shader * | noiseShader_ = nullptr |
| non-owning reference
|
|
EventPropagator * | propagator_ |
|
PickingController | pickingController_ |
|
◆ activate()
virtual void inviwo::CanvasGLFW::activate |
( |
| ) |
|
|
overridevirtual |
◆ activeContext()
virtual ContextID inviwo::CanvasGLFW::activeContext |
( |
| ) |
const |
|
overridevirtual |
◆ contextId()
virtual ContextID inviwo::CanvasGLFW::contextId |
( |
| ) |
const |
|
overridevirtual |
◆ createHiddenCanvas()
virtual std::unique_ptr< Canvas > inviwo::CanvasGLFW::createHiddenCanvas |
( |
| ) |
|
|
overridevirtual |
◆ getCanvasDimensions()
virtual size2_t inviwo::CanvasGLFW::getCanvasDimensions |
( |
| ) |
const |
|
overridevirtual |
◆ glSwapBuffers()
virtual void inviwo::CanvasGLFW::glSwapBuffers |
( |
| ) |
|
|
overridevirtual |
◆ releaseContext()
virtual void inviwo::CanvasGLFW::releaseContext |
( |
| ) |
|
|
overridevirtual |
◆ update()
virtual void inviwo::CanvasGLFW::update |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: