24 #ifndef GRAPHICSITEM_H
25 #define GRAPHICSITEM_H
150 #endif // GRAPHICSITEM_H
std::uint32_t RoleType
Type of a user role that can be set in a GraphicsItem (bitwise flag).
void setItemRole(RoleType role)
Setter function for mRole.
void addItemRole(RoleType role)
Bitwise add of role and mRole.
virtual void setPosition(double x, double y)=0
Function to set the position of the element.
virtual void setZOrder(double z)
Set the z order of the element (here implemented without function)
int getKeyIndex() const
Getter for mKeyIndex.
std::list< GraphicsItem * > GraphicItemsList
A list of GraphicItem (global)
RoleType mRole
The index of this item to identify it with a key.
virtual ~GraphicsItem()
Virtual Destructor.
RoleType getItemRole() const
Getter for mRole.
GraphicsItem(GraphicsViewAdapter *graphicsView)
Constructor.
GraphicsViewAdapter * mGraphicsView
Pointer to the parent GraphicsViewAdapter.
Abstract base class for implementations rendering graphics.
Class for a single item in a graphics view.
void setKeyIndexAndItemRole(int index, RoleType role)
Short function for setting the key index and the role.
void setKeyIndex(int index)
Setter for mKeyIndex.
GraphicsViewAdapter * getGraphicsView()
Getter for mGraphicsView.