![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| virtual size2_t | getCanvasDimensions () const =0 |
| 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 | glSwapBuffers ()=0 |
| virtual void | render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override |
| virtual void | update () override |
| Public Member Functions inherited from inviwo::Canvas | |
| virtual void | activate ()=0 |
| virtual ContextID | activeContext () const =0 |
| virtual ContextID | contextId () const =0 |
| virtual std::unique_ptr< Canvas > | createHiddenCanvas ()=0 |
| virtual void | releaseContext ()=0 |
| void | setEventPropagator (EventPropagator *propagator) |
Static Public Member Functions | |
| static void | defaultGLState () |
Protected Member Functions | |
| void | drawSquare () |
| bool | ready () |
| void | renderLayer () |
| void | renderNoise () |
| void | renderTexture (int) |
| void | setupDebug () |
Protected Attributes | |
| std::weak_ptr< const Image > | image_ |
| size_t | layerIdx_ = 0 |
| LayerType | layerType_ = LayerType::Color |
| Shader * | noiseShader_ = nullptr |
| non-owning reference | |
| bool | ready_ = false |
| std::unique_ptr< Mesh > | square_ |
| const MeshGL * | squareGL_ = nullptr |
| Non-owning reference. | |
| Shader * | textureShader_ = nullptr |
| non-owning reference | |
| Protected Attributes inherited from inviwo::Canvas | |
| PickingController | pickingController_ |
| EventPropagator * | propagator_ |
Additional Inherited Members | |
| Public Types inherited from inviwo::Canvas | |
| using | ContextID = const void* |
| double inviwo::CanvasGL::getDepthValueAtCoord | ( | ivec2 | canvasCoordinate | ) | const |
Retrieve depth value in normalized device coordinates at screen coordinate.
Depth is defined in [-1 1], where -1 is the near plane and 1 is the far plane. Will be 1 if no depth value is available.
| canvasCoordinate | Canvas coordinates [0 dim-1]^2 |
|
protected |
Sometime on OSX in renderNoise when on the first time using a canvas we get a INVALID_FRAMEBUFFER_OPERATION error to avoid this we have this ready flag to check that the frame buffer is complete.
|
overridevirtual |
Implements inviwo::Canvas.
|
overridevirtual |
Implements inviwo::Canvas.
|
protected |