#include "GraphicsItemDesignerDrawHandler.h"
|
enum | DrawMode {
NoMode
, Line
, Square
, Rect
,
Circle
, Ellipse
, Arc
, Triangle
,
Polygon
, Shape
, Text
} |
|
◆ DrawMode
Enumerator |
---|
NoMode | |
Line | |
Square | |
Rect | |
Circle | |
Ellipse | |
Arc | |
Triangle | |
Polygon | |
Shape | |
Text | |
◆ GraphicsItemDesignerDrawHandler()
◆ ~GraphicsItemDesignerDrawHandler()
GraphicsItemDesignerDrawHandler::~GraphicsItemDesignerDrawHandler |
( |
| ) |
|
|
virtual |
◆ cancelDraw()
void GraphicsItemDesignerDrawHandler::cancelDraw |
( |
void | | ) |
|
Cancels the current draw. The item will be removed.
◆ checkStopDraw()
void GraphicsItemDesignerDrawHandler::checkStopDraw |
( |
void | | ) |
|
Will check if the current draw is valid and emits drawCompleted if valid otherwise removes the item. The last control point of the item will be removed.
◆ drawCancelled
void GraphicsItemDesignerDrawHandler::drawCancelled |
( |
| ) |
|
|
signal |
◆ drawCompleted
void GraphicsItemDesignerDrawHandler::drawCompleted |
( |
| ) |
|
|
signal |
◆ generateUid()
ot::UID GraphicsItemDesignerDrawHandler::generateUid |
( |
void | | ) |
|
|
inline |
Generates the next available UID.
◆ positionSelected()
void GraphicsItemDesignerDrawHandler::positionSelected |
( |
const QPointF & | _pos | ) |
|
◆ resetUid()
void GraphicsItemDesignerDrawHandler::resetUid |
( |
void | | ) |
|
|
inline |
Resets the UID to the initial state.
◆ startDraw()
void GraphicsItemDesignerDrawHandler::startDraw |
( |
DrawMode | _mode | ) |
|
◆ stopDraw()
Stops the current draw and returns the drawn item if valid. The current preview item will be returned and forgotten by the handler. The caller takes ownership of the item. The returned item is still placed in the scene.
◆ updatePosition()
void GraphicsItemDesignerDrawHandler::updatePosition |
( |
const QPointF & | _pos | ) |
|
The documentation for this class was generated from the following files: