The ImageGraphicsItem class is the graphical representation of a librepcb::Image.
More...
#include <imagegraphicsitem.h>
Inherits QGraphicsItem.
The ImageGraphicsItem class is the graphical representation of a librepcb::Image.
◆ ImageGraphicsItem() [1/3]
◆ ImageGraphicsItem() [2/3]
◆ ImageGraphicsItem() [3/3]
◆ ~ImageGraphicsItem()
◆ getObj()
| const std::shared_ptr< Image > & getObj |
( |
| ) |
|
|
inlinenoexcept |
◆ isResizeHandleAtPosition()
| bool isResizeHandleAtPosition |
( |
const Point & |
pos | ) |
const |
|
noexcept |
Check if the resize handle is at a specific position
- Parameters
-
| pos | The position to check for the handle. |
- Returns
- True if there is a handle, false if not.
◆ setEditable()
| void setEditable |
( |
bool |
editable | ) |
|
|
noexcept |
Enable/disable editing mode when selected
If the item is editable and selected, vertex handles will be shown to indicate that they can be moved. If not editable, handles will not be shown.
- Parameters
-
| editable | Whether the image is (visually) editable or not. |
◆ boundingRect()
| QRectF boundingRect |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ shape()
| QPainterPath shape |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ operator=()
◆ itemChange()
| QVariant itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overrideprivatenoexcept |
◆ paint()
| void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = 0 |
|
) |
| |
|
overrideprivatenoexcept |
◆ imageEdited()
◆ updatePixmap()
◆ updateBoundingRectAndShape()
| void updateBoundingRectAndShape |
( |
| ) |
|
|
privatenoexcept |
◆ mDir
◆ mImage
| std::shared_ptr<Image> mImage |
|
private |
◆ mEditable
◆ mBordersLayer
◆ mOriginCrossGraphicsItem
◆ mPixmap
◆ mImageRectPx
◆ mBoundingRect
◆ mShape
◆ mVertexHandleRadiusPx
| qreal mVertexHandleRadiusPx |
|
private |
◆ mInvalidImage
◆ mOnEditedSlot
The documentation for this class was generated from the following files: