Graphics Scene for ot::GraphicsItem Adding QGraphicsItems to the scene that do not inherit ot::GraphicsItem might lead to undefined behavior.
More...
#include "GraphicsScene.h"
Graphics Scene for ot::GraphicsItem Adding QGraphicsItems to the scene that do not inherit ot::GraphicsItem might lead to undefined behavior.
◆ GraphicsScene() [1/2]
◆ GraphicsScene() [2/2]
ot::GraphicsScene::GraphicsScene |
( |
const QRectF & | _sceneRect, |
|
|
GraphicsView * | _view ) |
◆ ~GraphicsScene()
ot::GraphicsScene::~GraphicsScene |
( |
| ) |
|
|
virtual |
◆ calculateGridLines()
void ot::GraphicsScene::calculateGridLines |
( |
const QRectF & | _painterRect, |
|
|
QList< QLineF > & | _normalLines, |
|
|
QList< QLineF > & | _wideLines, |
|
|
QList< QLineF > & | _centerLines ) const |
|
protected |
◆ calculateScaledGridLineWidth()
qreal ot::GraphicsScene::calculateScaledGridLineWidth |
( |
QPainter * | _painter, |
|
|
qreal | _normalWidth ) const |
|
protected |
◆ calculateScaledGridStepSize()
ot::Point2D ot::GraphicsScene::calculateScaledGridStepSize |
( |
const QRectF & | _rect | ) |
const |
|
protected |
◆ checkMaxTriggerDistance() [1/2]
void ot::GraphicsScene::checkMaxTriggerDistance |
( |
const MarginsD & | _triggerDistance | ) |
|
◆ checkMaxTriggerDistance() [2/2]
void ot::GraphicsScene::checkMaxTriggerDistance |
( |
double | _triggerDistance | ) |
|
◆ connectionAboutToBeRemoved()
◆ deselectAll()
void ot::GraphicsScene::deselectAll |
( |
void | | ) |
|
◆ drawBackground()
void ot::GraphicsScene::drawBackground |
( |
QPainter * | _painter, |
|
|
const QRectF & | _rect ) |
|
overrideprotectedvirtual |
◆ drawGrid()
void ot::GraphicsScene::drawGrid |
( |
QPainter * | _painter, |
|
|
const QRectF & | _rect ) |
|
protected |
◆ elementAboutToBeRemoved()
void ot::GraphicsScene::elementAboutToBeRemoved |
( |
GraphicsElement * | _element | ) |
|
◆ findClosestConnectableElement()
ot::GraphicsElement * ot::GraphicsScene::findClosestConnectableElement |
( |
const QPointF & | _pos | ) |
const |
|
protected |
◆ findItemsInTriggerDistance()
QList< QGraphicsItem * > ot::GraphicsScene::findItemsInTriggerDistance |
( |
const QPointF & | _pos | ) |
const |
|
protected |
◆ flipAllSelectedItems()
void ot::GraphicsScene::flipAllSelectedItems |
( |
Qt::Orientation | _flipAxis | ) |
|
◆ getConnectionPreviewShape()
◆ getGraphicsView() [1/2]
◆ getGraphicsView() [2/2]
const GraphicsView * ot::GraphicsScene::getGraphicsView |
( |
void | | ) |
const |
|
inline |
◆ getGrid()
const Grid & ot::GraphicsScene::getGrid |
( |
void | | ) |
const |
|
inline |
◆ getGridFlags()
◆ getGridLineStyle()
const OutlineF & ot::GraphicsScene::getGridLineStyle |
( |
void | | ) |
const |
|
inline |
◆ getGridSnapMode()
◆ getGridStep()
Point2D ot::GraphicsScene::getGridStep |
( |
void | | ) |
const |
|
inline |
◆ getIgnoreEvents()
bool ot::GraphicsScene::getIgnoreEvents |
( |
void | | ) |
const |
|
inline |
◆ getMultiselectionEnabled()
bool ot::GraphicsScene::getMultiselectionEnabled |
( |
void | | ) |
const |
|
inline |
◆ getWideGridLineCounter()
Point2D ot::GraphicsScene::getWideGridLineCounter |
( |
void | | ) |
const |
|
inline |
◆ graphicsItemDoubleClicked
void ot::GraphicsScene::graphicsItemDoubleClicked |
( |
const ot::GraphicsItem * | _item | ) |
|
|
signal |
◆ handleSelectionChanged()
void ot::GraphicsScene::handleSelectionChanged |
( |
void | | ) |
|
◆ itemAboutToBeRemoved()
void ot::GraphicsScene::itemAboutToBeRemoved |
( |
GraphicsItem * | _item | ) |
|
◆ mouseDoubleClickEvent()
void ot::GraphicsScene::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
overrideprotectedvirtual |
◆ mouseMoveEvent()
void ot::GraphicsScene::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
void ot::GraphicsScene::mousePressEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
void ot::GraphicsScene::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
overrideprotectedvirtual |
◆ moveAllSelectedItems()
void ot::GraphicsScene::moveAllSelectedItems |
( |
const Point2DD & | _delta | ) |
|
◆ rotateAllSelectedItems()
void ot::GraphicsScene::rotateAllSelectedItems |
( |
double | _relativeAngle | ) |
|
◆ selectionChangeFinished
void ot::GraphicsScene::selectionChangeFinished |
( |
void | | ) |
|
|
signal |
◆ setConnectionPreviewShape()
◆ setGrid()
void ot::GraphicsScene::setGrid |
( |
const Grid & | _grid | ) |
|
|
inline |
◆ setGridFlag()
void ot::GraphicsScene::setGridFlag |
( |
Grid::GridFlag | _flag, |
|
|
bool | _active = true ) |
|
inline |
◆ setGridFlags()
◆ setGridLineStyle()
void ot::GraphicsScene::setGridLineStyle |
( |
const OutlineF & | _outline | ) |
|
|
inline |
◆ setGridSnapMode()
◆ setGridStep() [1/2]
void ot::GraphicsScene::setGridStep |
( |
const Point2D & | _step | ) |
|
|
inline |
◆ setGridStep() [2/2]
void ot::GraphicsScene::setGridStep |
( |
int | _step | ) |
|
|
inline |
◆ setIgnoreEvents()
void ot::GraphicsScene::setIgnoreEvents |
( |
bool | _ignore | ) |
|
|
inline |
◆ setMultiselectionEnabled()
void ot::GraphicsScene::setMultiselectionEnabled |
( |
bool | _enabled | ) |
|
|
inline |
◆ setWideGridLineCounter() [1/2]
void ot::GraphicsScene::setWideGridLineCounter |
( |
const Point2D & | _counter | ) |
|
|
inline |
◆ setWideGridLineCounter() [2/2]
void ot::GraphicsScene::setWideGridLineCounter |
( |
int | _counter | ) |
|
|
inline |
◆ slotSelectionChanged
void ot::GraphicsScene::slotSelectionChanged |
( |
void | | ) |
|
|
slot |
◆ snapToGrid() [1/2]
QPointF ot::GraphicsScene::snapToGrid |
( |
const GraphicsItem * | _item | ) |
const |
Snaps the item to the grid according to the item flags and returns the top left pos.
◆ snapToGrid() [2/2]
QPointF ot::GraphicsScene::snapToGrid |
( |
const QPointF & | _pt | ) |
const |
◆ startConnection()
A connection line according to the current configuration will be drawn with the provided item as origin.
- Parameters
-
◆ startConnectionToConnection()
Will request a connection from the currently set origin to the provided target connection. The new control point is pos and should be the mouse press position.
- Parameters
-
_targetConnection | The destination for the connection request. |
_pos | The new control point position. |
◆ stopConnection()
void ot::GraphicsScene::stopConnection |
( |
void | | ) |
|
The documentation for this class was generated from the following files: