Loading...
Searching...
No Matches
Gfx::GeometryViewer::Layer Class Referencefinal
The node shows what the viewer renders, and on hover what its scene holds. More...
Inheritance diagram for Gfx::GeometryViewer::Layer:
Detailed Description
The node shows what the viewer renders, and on hover what its scene holds.
Public Member Functions | |
| Layer (const Process::ProcessModel &process, const Process::Context &doc, QGraphicsItem *parent) | |
Public Member Functions inherited from Gfx::OutletPreviewLayer | |
| OutletPreviewLayer (const Process::ProcessModel &process, const Process::Context &doc, QGraphicsItem *parent, std::size_t texture_outlet=0) | |
| QRectF | imageRect () const |
| Where the image is drawn: as large as fits, centred. | |
| const TexturePreview & | preview () const noexcept |
Public Member Functions inherited from Process::EffectLayerView | |
| EffectLayerView (QGraphicsItem *parent) | |
| void | setWidth (qreal width, qreal defaultWidth) |
Public Member Functions inherited from Process::LayerView | |
| LayerView (QGraphicsItem *parent) | |
| QRectF | boundingRect () const final override |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final override |
| void | setHeight (qreal height) noexcept |
| qreal | height () const noexcept |
| void | setWidth (qreal width) noexcept |
| qreal | width () const noexcept |
| virtual QPixmap | pixmap () noexcept |
| void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) override |
| void | dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override |
| void | dropEvent (QGraphicsSceneDragDropEvent *event) override |
| void | clearPressed () |
| void | escPressed () |
| void | pressed (QPointF arg_1) |
| void | released (QPointF arg_1) |
| void | moved (QPointF arg_1) |
| void | doubleClicked (QPointF arg_1) |
| void | askContextMenu (const QPoint &arg_1, const QPointF &arg_2) |
| void | dropReceived (const QPointF &pos, const QMimeData &arg_2) |
| void | presetDropReceived (const QPointF &pos, const QMimeData &arg_2) |
| void | keyPressed (int arg_1) |
| void | keyReleased (int arg_1) |
| void | dragEnter (const QPointF &pos, const QMimeData &arg_2) |
| void | dragMove (const QPointF &pos, const QMimeData &arg_2) |
| void | dragLeave (const QPointF &pos, const QMimeData &arg_2) |
Protected Member Functions | |
| void | heightChanged (qreal) override |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *) override |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *) override |
| void | paintOverlay (QPainter *p, const QRectF &image) const override |
| Top right, on hover: what the scene holds. | |
Protected Member Functions inherited from Gfx::OutletPreviewLayer | |
| void | paint_impl (QPainter *p) const override |
| void | timerEvent (QTimerEvent *ev) override |
Protected Member Functions inherited from Process::LayerView | |
| virtual void | widthChanged (qreal) |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override |
Additional Inherited Members | |
Public Attributes inherited from Gfx::OutletPreviewLayer | |
| std::function< std::optional< double >()> | aspect |
| Width over height of the image; nothing: fill the view. | |
| QString | placeholder |
| Shown when there is no image yet. | |
Protected Attributes inherited from Process::EffectLayerView | |
| qreal | m_defaultWidth {} |
Member Function Documentation
◆ heightChanged()
|
inlineoverrideprotectedvirtual |
Reimplemented from Process::LayerView.
◆ paintOverlay()
|
inlineoverrideprotectedvirtual |
Top right, on hover: what the scene holds.
Reimplemented from Gfx::OutletPreviewLayer.
The documentation for this class was generated from the following file:
Public Member Functions inherited from