LibrePCB Developers Documentation
ZoneGraphicsItem Class Referencefinal

The ZoneGraphicsItem class. More...

#include <zonegraphicsitem.h>

+ Inheritance diagram for ZoneGraphicsItem:
+ Collaboration diagram for ZoneGraphicsItem:

Public Member Functions

 ZoneGraphicsItem ()=delete
 
 ZoneGraphicsItem (const ZoneGraphicsItem &other)=delete
 
 ZoneGraphicsItem (Zone &zone, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
virtual ~ZoneGraphicsItem () noexcept
 
ZonegetZone () noexcept
 
ZoneGraphicsItemoperator= (const ZoneGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from PrimitiveZoneGraphicsItem
 PrimitiveZoneGraphicsItem ()=delete
 
 PrimitiveZoneGraphicsItem (const PrimitiveZoneGraphicsItem &other)=delete
 
 PrimitiveZoneGraphicsItem (const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
virtual ~PrimitiveZoneGraphicsItem () noexcept
 
int getLineIndexAtPosition (const Point &pos) const noexcept
 
QVector< int > getVertexIndicesAtPosition (const Point &pos) const noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setAllLayers (const QSet< const Layer * > &layers) noexcept
 
void setEnabledLayers (const QSet< const Layer * > &layers) noexcept
 
void setOutline (const Path &path) noexcept
 
void setEditable (bool editable) noexcept
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 
PrimitiveZoneGraphicsItemoperator= (const PrimitiveZoneGraphicsItem &rhs)=delete
 

Private Member Functions

void zoneEdited (const Zone &zone, Zone::Event event) noexcept
 

Private Attributes

ZonemZone
 
Zone::OnEditedSlot mOnEditedSlot
 

Detailed Description

The ZoneGraphicsItem class.

Constructor & Destructor Documentation

◆ ZoneGraphicsItem() [1/3]

ZoneGraphicsItem ( )
delete

◆ ZoneGraphicsItem() [2/3]

ZoneGraphicsItem ( const ZoneGraphicsItem other)
delete

◆ ZoneGraphicsItem() [3/3]

ZoneGraphicsItem ( Zone zone,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept

◆ ~ZoneGraphicsItem()

~ZoneGraphicsItem ( )
virtualnoexcept

Member Function Documentation

◆ getZone()

Zone & getZone ( )
inlinenoexcept

◆ operator=()

ZoneGraphicsItem & operator= ( const ZoneGraphicsItem rhs)
delete

◆ zoneEdited()

void zoneEdited ( const Zone zone,
Zone::Event  event 
)
privatenoexcept

Member Data Documentation

◆ mZone

Zone& mZone
private

◆ mOnEditedSlot

Zone::OnEditedSlot mOnEditedSlot
private

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