LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OriginCrossGraphicsItem Class Referencefinal

The OriginCrossGraphicsItem class. More...

#include <origincrossgraphicsitem.h>

+ Inheritance diagram for OriginCrossGraphicsItem:
+ Collaboration diagram for OriginCrossGraphicsItem:

Public Member Functions

 OriginCrossGraphicsItem (const OriginCrossGraphicsItem &other)=delete
 
 OriginCrossGraphicsItem (QGraphicsItem *parent=nullptr) noexcept
 
 ~OriginCrossGraphicsItem () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setSize (const UnsignedLength &size) noexcept
 
void setLayer (const GraphicsLayer *layer) noexcept
 
void layerColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerHighlightColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerVisibleChanged (const GraphicsLayer &layer, bool newVisible) noexceptoverride
 
void layerEnabledChanged (const GraphicsLayer &layer, bool newEnabled) noexceptoverride
 
void layerDestroyed (const GraphicsLayer &layer) noexceptoverride
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
OriginCrossGraphicsItemoperator= (const OriginCrossGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from IF_GraphicsLayerObserver
virtual ~IF_GraphicsLayerObserver ()
 

Private Member Functions

void updateBoundingRectAndShape () noexcept
 

Private Attributes

const GraphicsLayermLayer
 
QPen mPen
 
QPen mPenHighlighted
 
UnsignedLength mSize
 
QLineF mLineH
 
QLineF mLineV
 
QRectF mBoundingRect
 
QPainterPath mShape
 

Detailed Description

The OriginCrossGraphicsItem class.

Author
ubruhin
Date
2016-11-13

Constructor & Destructor Documentation

OriginCrossGraphicsItem ( QGraphicsItem *  parent = nullptr)
explicitnoexcept
~OriginCrossGraphicsItem ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

void setPosition ( const Point pos)
noexcept
void setRotation ( const Angle rot)
noexcept
void setSize ( const UnsignedLength size)
noexcept
void setLayer ( const GraphicsLayer layer)
noexcept

+ Here is the caller graph for this function:

void layerColorChanged ( const GraphicsLayer layer,
const QColor &  newColor 
)
overridevirtualnoexcept
void layerHighlightColorChanged ( const GraphicsLayer layer,
const QColor &  newColor 
)
overridevirtualnoexcept
void layerVisibleChanged ( const GraphicsLayer layer,
bool  newVisible 
)
overridevirtualnoexcept
void layerEnabledChanged ( const GraphicsLayer layer,
bool  newEnabled 
)
overridevirtualnoexcept
void layerDestroyed ( const GraphicsLayer layer)
overridevirtualnoexcept
QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
inlineoverridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
OriginCrossGraphicsItem& operator= ( const OriginCrossGraphicsItem rhs)
delete
void updateBoundingRectAndShape ( )
privatenoexcept

Member Data Documentation

const GraphicsLayer* mLayer
private
QPen mPen
private
QPen mPenHighlighted
private
UnsignedLength mSize
private
QLineF mLineH
private
QLineF mLineV
private
QRectF mBoundingRect
private
QPainterPath mShape
private

The documentation for this class was generated from the following files: