The PrimitiveZoneGraphicsItem class.
More...
#include <primitivezonegraphicsitem.h>
◆ PrimitiveZoneGraphicsItem() [1/3]
◆ PrimitiveZoneGraphicsItem() [2/3]
◆ PrimitiveZoneGraphicsItem() [3/3]
◆ ~PrimitiveZoneGraphicsItem()
◆ getLineIndexAtPosition()
int getLineIndexAtPosition |
( |
const Point & |
pos | ) |
const |
|
noexcept |
Get the line segment at a specific position
- Parameters
-
pos | The position to check for lines. |
- Returns
- The index of the vertex after the line under the cursor. So for the first line segment, index 1 is returned. If no line is located under the specified position, -1 is returned.
◆ getVertexIndicesAtPosition()
QVector< int > getVertexIndicesAtPosition |
( |
const Point & |
pos | ) |
const |
|
noexcept |
Get the vertices at a specific position
- Parameters
-
pos | The position to check for vertices. |
- Returns
- All indices of the vertices at the specified position.
◆ setPosition()
void setPosition |
( |
const Point & |
pos | ) |
|
|
noexcept |
◆ setRotation()
void setRotation |
( |
const Angle & |
rot | ) |
|
|
noexcept |
◆ setAllLayers()
void setAllLayers |
( |
const QSet< const Layer * > & |
layers | ) |
|
|
noexcept |
◆ setEnabledLayers()
void setEnabledLayers |
( |
const QSet< const Layer * > & |
layers | ) |
|
|
noexcept |
◆ setOutline()
void setOutline |
( |
const Path & |
path | ) |
|
|
noexcept |
◆ 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 polygon is (visually) editable or not. |
◆ itemChange()
QVariant itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overridenoexcept |
◆ boundingRect()
QRectF boundingRect |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ shape()
QPainterPath shape |
( |
| ) |
const |
|
overridenoexcept |
◆ paint()
void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = 0 |
|
) |
| |
|
overridenoexcept |
◆ operator=()
◆ layerEdited()
◆ updateColors()
◆ updateBoundingRectAndShape()
void updateBoundingRectAndShape |
( |
| ) |
|
|
privatenoexcept |
◆ updateBoundingRectMargin()
void updateBoundingRectMargin |
( |
| ) |
|
|
privatenoexcept |
◆ updateVisibility()
void updateVisibility |
( |
| ) |
|
|
privatenoexcept |
◆ mLayerProvider
◆ mAllGraphicsLayers
◆ mEnabledGraphicsLayers
◆ mOutline
◆ mEditable
◆ mLayer
◆ mPen
◆ mPenHighlighted
◆ mBrush
◆ mBrushHighlighted
◆ mPainterPath
QPainterPath mPainterPath |
|
private |
◆ mBoundingRect
◆ mBoundingRectMarginPx
qreal mBoundingRectMarginPx |
|
private |
◆ mShape
◆ mVertexHandleRadiusPx
qreal mVertexHandleRadiusPx |
|
private |
◆ mVertexHandles
◆ mOnLayerEditedSlot
The documentation for this class was generated from the following files: