15#include <QtCore/qpoint.h>
20#pragma warning(disable:4251)
75 void setGraphicsElementState(GraphicsElementState _state,
bool _active =
true);
79 void setGraphicsElementStateFlags(
const GraphicsElementStateFlags& _state);
87 virtual std::list<GraphicsElement*> getAllGraphicsElements(
void);
89 virtual std::list<GraphicsElement*> getAllDirectChildElements(
void);
100 GraphicsElementStateFlags m_state;
#define OT_ADD_FLAG_FUNCTIONS(___enumName)
Will add the default bitwise operations for the provided private 32/64 bit bitfield....
Definition Flags.h:129
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
The Flags class is a wrapper around a enum that allows bitwise operations (flags)....
Definition Flags.h:214
Definition GraphicsElement.h:28
Flags< GraphicsElementState > GraphicsElementStateFlags
Definition GraphicsElement.h:41
const GraphicsElementStateFlags & getGraphicsElementState(void) const
Returns the current GraphicsItemStateFlags set.
Definition GraphicsElement.h:83
virtual qreal calculateShortestDistanceToPoint(const QPointF &_pt) const
Calculates and returns the shortest distance to the given point. Returns -1 if the distance is invali...
Definition GraphicsElement.h:53
virtual void setGraphicsScene(GraphicsScene *_scene)
Set the GraphicsScene this element is placed at.
Definition GraphicsElement.h:66
virtual QGraphicsItem * getQGraphicsItem(void)=0
Returns the QGraphicsItem.
GraphicsElementState
The GraphicsElementState is used to describe the current state of a GraphicsElement.
Definition GraphicsElement.h:33
virtual void graphicsElementStateChanged(const GraphicsElementStateFlags &_state)
Definition GraphicsElement.h:96
virtual const QGraphicsItem * getQGraphicsItem(void) const =0
Returns the const QGraphicsItem.
virtual GraphicsScene * getGraphicsScene(void) const
Returns the GraphicsScene this item is placed at.
Definition GraphicsElement.h:69
Graphics Scene for ot::GraphicsItem Adding QGraphicsItems to the scene that do not inherit ot::Graphi...
Definition GraphicsScene.h:31