|
| CanvasQOpenGLWidget (QWidget *parent, std::string_view name) |
|
virtual void | activate () override |
|
virtual void | glSwapBuffers () override |
|
virtual void | update () override |
|
virtual void | render (std::shared_ptr< const Image > image, LayerType layerType=LayerType::Color, size_t idx=0) override |
|
virtual ContextID | activeContext () const override |
|
virtual ContextID | contextId () const override |
|
virtual std::unique_ptr< Canvas > | createHiddenCanvas () override |
|
virtual size2_t | getCanvasDimensions () const override |
|
void | onContextMenu (std::function< bool(QMenu &)> callback) |
|
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) |
|
|
virtual void | releaseContext () override |
|
virtual void | propagateEvent (Event *e, Outport *source) override |
|
virtual void | initializeGL () override |
|
virtual void | paintGL () override |
|
virtual void | resizeEvent (QResizeEvent *event) override |
|
void | setupDebug () |
|
void | renderLayer () |
|
void | renderNoise () |
|
void | drawSquare () |
|
void | renderTexture (int) |
|
bool | ready () |
|
|
class | CanvasProcessorWidgetQt |
|
|
using | ContextID = const void* |
|
static void | defaultGLState () |
|
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::CanvasQOpenGLWidget::activate |
( |
| ) |
|
|
overridevirtual |
◆ activeContext()
virtual ContextID inviwo::CanvasQOpenGLWidget::activeContext |
( |
| ) |
const |
|
overridevirtual |
◆ contextId()
virtual ContextID inviwo::CanvasQOpenGLWidget::contextId |
( |
| ) |
const |
|
overridevirtual |
◆ createHiddenCanvas()
virtual std::unique_ptr< Canvas > inviwo::CanvasQOpenGLWidget::createHiddenCanvas |
( |
| ) |
|
|
overridevirtual |
◆ getCanvasDimensions()
virtual size2_t inviwo::CanvasQOpenGLWidget::getCanvasDimensions |
( |
| ) |
const |
|
overridevirtual |
◆ glSwapBuffers()
virtual void inviwo::CanvasQOpenGLWidget::glSwapBuffers |
( |
| ) |
|
|
overridevirtual |
◆ onContextMenu()
void inviwo::CanvasQOpenGLWidget::onContextMenu |
( |
std::function< bool(QMenu &)> | callback | ) |
|
Set a callback to be invoded on contextmeny events. The callback can add more functionallity to the context menu. I the function retuns true the menu will be shown, else it will be discarded.
◆ propagateEvent()
virtual void inviwo::CanvasQOpenGLWidget::propagateEvent |
( |
Event * | e, |
|
|
Outport * | source ) |
|
overrideprotectedvirtual |
◆ releaseContext()
virtual void inviwo::CanvasQOpenGLWidget::releaseContext |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ render()
virtual void inviwo::CanvasQOpenGLWidget::render |
( |
std::shared_ptr< const Image > | image, |
|
|
LayerType | layerType = LayerType::Color, |
|
|
size_t | idx = 0 ) |
|
overridevirtual |
◆ update()
virtual void inviwo::CanvasQOpenGLWidget::update |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: