QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
PartPlcTable Class Reference

The PartPlcTable class This class represents a PLC I/O table preview in the element editor. It shows the user where the PLC table will appear at runtime, so they can position other element parts (rectangles, terminals, etc.) around it. The actual PLC data is read from ElementScene::elementData(). More...

#include <partplctable.h>

Inheritance diagram for PartPlcTable:
Inheritance graph
Collaboration diagram for PartPlcTable:
Collaboration graph

Public Types

enum  { Type = UserType + 1120 }
Public Types inherited from CustomElementGraphicPart
enum  LineStyle { NormalStyle , DashedStyle , DottedStyle , DashdottedStyle }
enum  LineWeight {
  NoneWeight , ThinWeight , NormalWeight , UltraWeight ,
  BigWeight
}
enum  Filling {
  NoneFilling , BlackFilling , WhiteFilling , GreenFilling ,
  RedFilling , BlueFilling , GrayFilling , BrunFilling ,
  YellowFilling , CyanFilling , MagentaFilling , LightgrayFilling ,
  OrangeFilling , PurpleFilling , HTMLPinkPinkFilling , HTMLPinkLightPinkFilling ,
  HTMLPinkHotPinkFilling , HTMLPinkDeepPinkFilling , HTMLPinkPaleVioletRedFilling , HTMLPinkMediumVioletRedFilling ,
  HTMLRedLightSalmonFilling , HTMLRedSalmonFilling , HTMLRedDarkSalmonFilling , HTMLRedLightCoralFilling ,
  HTMLRedIndianRedFilling , HTMLRedCrimsonFilling , HTMLRedFirebrickFilling , HTMLRedDarkRedFilling ,
  HTMLRedRedFilling , HTMLOrangeOrangeRedFilling , HTMLOrangeTomatoFilling , HTMLOrangeCoralFilling ,
  HTMLOrangeDarkOrangeFilling , HTMLOrangeOrangeFilling , HTMLYellowYellowFilling , HTMLYellowLightYellowFilling ,
  HTMLYellowLemonChiffonFilling , HTMLYellowLightGoldenrodYellowFilling , HTMLYellowPapayaWhipFilling , HTMLYellowMoccasinFilling ,
  HTMLYellowPeachPuffFilling , HTMLYellowPaleGoldenrodFilling , HTMLYellowKhakiFilling , HTMLYellowDarkKhakiFilling ,
  HTMLYellowGoldFilling , HTMLBrownCornsilkFilling , HTMLBrownBlanchedAlmondFilling , HTMLBrownBisqueFilling ,
  HTMLBrownNavajoWhiteFilling , HTMLBrownWheatFilling , HTMLBrownBurlywoodFilling , HTMLBrownTanFilling ,
  HTMLBrownRosyBrownFilling , HTMLBrownSandyBrownFilling , HTMLBrownGoldenrodFilling , HTMLBrownDarkGoldenrodFilling ,
  HTMLBrownPeruFilling , HTMLBrownChocolateFilling , HTMLBrownSaddleBrownFilling , HTMLBrownSiennaFilling ,
  HTMLBrownBrownFilling , HTMLBrownMaroonFilling , HTMLGreenDarkOliveGreenFilling , HTMLGreenOliveFilling ,
  HTMLGreenOliveDrabFilling , HTMLGreenYellowGreenFilling , HTMLGreenLimeGreenFilling , HTMLGreenLimeFilling ,
  HTMLGreenLawnGreenFilling , HTMLGreenChartreuseFilling , HTMLGreenGreenYellowFilling , HTMLGreenSpringGreenFilling ,
  HTMLGreenMediumSpringGreenFilling , HTMLGreenLightGreenFilling , HTMLGreenPaleGreenFilling , HTMLGreenDarkSeaGreenFilling ,
  HTMLGreenMediumAquamarineFilling , HTMLGreenMediumSeaGreenFilling , HTMLGreenSeaGreenFilling , HTMLGreenForestGreenFilling ,
  HTMLGreenGreenFilling , HTMLGreenDarkGreenFilling , HTMLCyanAquaFilling , HTMLCyanCyanFilling ,
  HTMLCyanLightCyanFilling , HTMLCyanPaleTurquoiseFilling , HTMLCyanAquamarineFilling , HTMLCyanTurquoiseFilling ,
  HTMLCyanMediumTurquoiseFilling , HTMLCyanDarkTurquoiseFilling , HTMLCyanLightSeaGreenFilling , HTMLCyanCadetBlueFilling ,
  HTMLCyanDarkCyanFilling , HTMLCyanTealFilling , HTMLBlueLightSteelBlueFilling , HTMLBluePowderBlueFilling ,
  HTMLBlueLightBlueFilling , HTMLBlueSkyBlueFilling , HTMLBlueLightSkyBlueFilling , HTMLBlueDeepSkyBlueFilling ,
  HTMLBlueDodgerBlueFilling , HTMLBlueCornflowerBlueFilling , HTMLBlueSteelBlueFilling , HTMLBlueRoyalBlueFilling ,
  HTMLBlueBlueFilling , HTMLBlueMediumBlueFilling , HTMLBlueDarkBlueFilling , HTMLBlueNavyFilling ,
  HTMLBlueMidnightBlueFilling , HTMLPurpleLavenderFilling , HTMLPurpleThistleFilling , HTMLPurplePlumFilling ,
  HTMLPurpleVioletFilling , HTMLPurpleOrchidFilling , HTMLPurpleFuchsiaFilling , HTMLPurpleMagentaFilling ,
  HTMLPurpleMediumOrchidFilling , HTMLPurpleMediumPurpleFilling , HTMLPurpleBlueVioletFilling , HTMLPurpleDarkVioletFilling ,
  HTMLPurpleDarkOrchidFilling , HTMLPurpleDarkMagentaFilling , HTMLPurplePurpleFilling , HTMLPurpleIndigoFilling ,
  HTMLPurpleDarkSlateBlueFilling , HTMLPurpleSlateBlueFilling , HTMLPurpleMediumSlateBlueFilling , HTMLWhiteWhiteFilling ,
  HTMLWhiteSnowFilling , HTMLWhiteHoneydewFilling , HTMLWhiteMintCreamFilling , HTMLWhiteAzureFilling ,
  HTMLWhiteAliceBlueFilling , HTMLWhiteGhostWhiteFilling , HTMLWhiteWhiteSmokeFilling , HTMLWhiteSeashellFilling ,
  HTMLWhiteBeigeFilling , HTMLWhiteOldLaceFilling , HTMLWhiteFloralWhiteFilling , HTMLWhiteIvoryFilling ,
  HTMLWhiteAntiqueWhiteFilling , HTMLWhiteLinenFilling , HTMLWhiteLavenderBlushFilling , HTMLWhiteMistyRoseFilling ,
  HTMLGrayGainsboroFilling , HTMLGrayLightGrayFilling , HTMLGraySilverFilling , HTMLGrayDarkGrayFilling ,
  HTMLGrayGrayFilling , HTMLGrayDimGrayFilling , HTMLGrayLightSlateGrayFilling , HTMLGraySlateGrayFilling ,
  HTMLGrayDarkSlateGrayFilling , HTMLGrayBlackFilling , HorFilling , VerFilling ,
  BdiagFilling , FdiagFilling
}
enum  Color {
  BlackColor , WhiteColor , GreenColor , RedColor ,
  BlueColor , GrayColor , BrunColor , YellowColor ,
  CyanColor , MagentaColor , LightgrayColor , OrangeColor ,
  PurpleColor , HTMLPinkPinkColor , HTMLPinkLightPinkColor , HTMLPinkHotPinkColor ,
  HTMLPinkDeepPinkColor , HTMLPinkPaleVioletRedColor , HTMLPinkMediumVioletRedColor , HTMLRedLightSalmonColor ,
  HTMLRedSalmonColor , HTMLRedDarkSalmonColor , HTMLRedLightCoralColor , HTMLRedIndianRedColor ,
  HTMLRedCrimsonColor , HTMLRedFirebrickColor , HTMLRedDarkRedColor , HTMLRedRedColor ,
  HTMLOrangeOrangeRedColor , HTMLOrangeTomatoColor , HTMLOrangeCoralColor , HTMLOrangeDarkOrangeColor ,
  HTMLOrangeOrangeColor , HTMLYellowYellowColor , HTMLYellowLightYellowColor , HTMLYellowLemonChiffonColor ,
  HTMLYellowLightGoldenrodYellowColor , HTMLYellowPapayaWhipColor , HTMLYellowMoccasinColor , HTMLYellowPeachPuffColor ,
  HTMLYellowPaleGoldenrodColor , HTMLYellowKhakiColor , HTMLYellowDarkKhakiColor , HTMLYellowGoldColor ,
  HTMLBrownCornsilkColor , HTMLBrownBlanchedAlmondColor , HTMLBrownBisqueColor , HTMLBrownNavajoWhiteColor ,
  HTMLBrownWheatColor , HTMLBrownBurlywoodColor , HTMLBrownTanColor , HTMLBrownRosyBrownColor ,
  HTMLBrownSandyBrownColor , HTMLBrownGoldenrodColor , HTMLBrownDarkGoldenrodColor , HTMLBrownPeruColor ,
  HTMLBrownChocolateColor , HTMLBrownSaddleBrownColor , HTMLBrownSiennaColor , HTMLBrownBrownColor ,
  HTMLBrownMaroonColor , HTMLGreenDarkOliveGreenColor , HTMLGreenOliveColor , HTMLGreenOliveDrabColor ,
  HTMLGreenYellowGreenColor , HTMLGreenLimeGreenColor , HTMLGreenLimeColor , HTMLGreenLawnGreenColor ,
  HTMLGreenChartreuseColor , HTMLGreenGreenYellowColor , HTMLGreenSpringGreenColor , HTMLGreenMediumSpringGreenColor ,
  HTMLGreenLightGreenColor , HTMLGreenPaleGreenColor , HTMLGreenDarkSeaGreenColor , HTMLGreenMediumAquamarineColor ,
  HTMLGreenMediumSeaGreenColor , HTMLGreenSeaGreenColor , HTMLGreenForestGreenColor , HTMLGreenGreenColor ,
  HTMLGreenDarkGreenColor , HTMLCyanAquaColor , HTMLCyanCyanColor , HTMLCyanLightCyanColor ,
  HTMLCyanPaleTurquoiseColor , HTMLCyanAquamarineColor , HTMLCyanTurquoiseColor , HTMLCyanMediumTurquoiseColor ,
  HTMLCyanDarkTurquoiseColor , HTMLCyanLightSeaGreenColor , HTMLCyanCadetBlueColor , HTMLCyanDarkCyanColor ,
  HTMLCyanTealColor , HTMLBlueLightSteelBlueColor , HTMLBluePowderBlueColor , HTMLBlueLightBlueColor ,
  HTMLBlueSkyBlueColor , HTMLBlueLightSkyBlueColor , HTMLBlueDeepSkyBlueColor , HTMLBlueDodgerBlueColor ,
  HTMLBlueCornflowerBlueColor , HTMLBlueSteelBlueColor , HTMLBlueRoyalBlueColor , HTMLBlueBlueColor ,
  HTMLBlueMediumBlueColor , HTMLBlueDarkBlueColor , HTMLBlueNavyColor , HTMLBlueMidnightBlueColor ,
  HTMLPurpleLavenderColor , HTMLPurpleThistleColor , HTMLPurplePlumColor , HTMLPurpleVioletColor ,
  HTMLPurpleOrchidColor , HTMLPurpleFuchsiaColor , HTMLPurpleMagentaColor , HTMLPurpleMediumOrchidColor ,
  HTMLPurpleMediumPurpleColor , HTMLPurpleBlueVioletColor , HTMLPurpleDarkVioletColor , HTMLPurpleDarkOrchidColor ,
  HTMLPurpleDarkMagentaColor , HTMLPurplePurpleColor , HTMLPurpleIndigoColor , HTMLPurpleDarkSlateBlueColor ,
  HTMLPurpleSlateBlueColor , HTMLPurpleMediumSlateBlueColor , HTMLWhiteWhiteColor , HTMLWhiteSnowColor ,
  HTMLWhiteHoneydewColor , HTMLWhiteMintCreamColor , HTMLWhiteAzureColor , HTMLWhiteAliceBlueColor ,
  HTMLWhiteGhostWhiteColor , HTMLWhiteWhiteSmokeColor , HTMLWhiteSeashellColor , HTMLWhiteBeigeColor ,
  HTMLWhiteOldLaceColor , HTMLWhiteFloralWhiteColor , HTMLWhiteIvoryColor , HTMLWhiteAntiqueWhiteColor ,
  HTMLWhiteLinenColor , HTMLWhiteLavenderBlushColor , HTMLWhiteMistyRoseColor , HTMLGrayGainsboroColor ,
  HTMLGrayLightGrayColor , HTMLGraySilverColor , HTMLGrayDarkGrayColor , HTMLGrayGrayColor ,
  HTMLGrayDimGrayColor , HTMLGrayLightSlateGrayColor , HTMLGraySlateGrayColor , HTMLGrayDarkSlateGrayColor ,
  HTMLGrayBlackColor , NoneColor
}

Public Member Functions

 PartPlcTable (QETElementEditor *editor, QGraphicsItem *parent=nullptr)
 PartPlcTable::PartPlcTable Constructor.
 ~PartPlcTable () override
 PartPlcTable::~PartPlcTable.
int type () const override
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override
 PartPlcTable::paint Draw this PLC table.
QString name () const override
QString xmlName () const override
const QDomElement toXml (QDomDocument &) const override
 PartPlcTable::toXml Export this PLC table part in xml.
void fromXml (const QDomElement &) override
 PartPlcTable::fromXml Import the properties of this PLC table part from a xml element.
QRectF rect () const
 PartPlcTable::rect.
void setRect (const QRectF &rect)
 PartPlcTable::setRect Sets the item's rectangle to be the given rectangle.
QRectF sceneGeometricRect () const override
 PartPlcTable::sceneGeometricRect.
QPainterPath shape () const override
 PartPlcTable::shape.
QPainterPath shadowShape () const override
QRectF boundingRect () const override
 PartPlcTable::boundingRect.
bool isUseless () const override
 PartPlcTable::isUseless.
void startUserTransformation (const QRectF &) override
 PartPlcTable::startUserTransformation.
void handleUserTransformation (const QRectF &, const QRectF &) override
 PartPlcTable::handleUserTransformation.
void addHandler () override
 PartPlcTable::addHandler Do not add resize handlers - table size is data-driven. Move is handled by the base class QGraphicsItem drag behavior.
void removeHandler () override
 PartPlcTable::removeHandler Remove the handlers of this item.
Public Member Functions inherited from CustomElementGraphicPart
 CustomElementGraphicPart (QETElementEditor *editor, QGraphicsItem *parent=nullptr)
 CustomElementGraphicPart::CustomElementGraphicPart Default constructor. By default, item is selectable, send geometry change (Qt > 4.6), accept mouse left button and accept hover event.
 ~CustomElementGraphicPart () override
 CustomElementGraphicPart::~CustomElementGraphicPart Destructor.
LineStyle lineStyle () const
void setLineStyle (const LineStyle ls)
 CustomElementGraphicPart::setLineStyle Set line style to ls.
LineWeight lineWeight () const
void setLineWeight (const LineWeight lw)
 CustomElementGraphicPart::setLineWeight Set line weight to lw.
qreal penWeight () const
 CustomElementGraphicPart::penWeight.
Filling filling () const
void setFilling (const Filling f)
 CustomElementGraphicPart::setFilling Set filling to f.
Color color () const
void setColor (const Color c)
 CustomElementGraphicPart::setColor Set color to c.
bool antialiased () const
void setAntialiased (const bool b)
 CustomElementGraphicPart::setAntialiased Set antialias to b.
void setProperty (const char *name, const QVariant &value) override
QVariant property (const char *name) const override
virtual void setHandlerColor (QPointF, const QColor &)
virtual void resetAllHandlerColor ()
Public Member Functions inherited from CustomElementPart
 CustomElementPart (QETElementEditor *editor)
 CustomElementPart Constructor.
virtual ~CustomElementPart ()
 ~CustomElementPart Destructor
virtual QETElementEditorelementEditor () const
virtual void updateCurrentPartEditor () const
virtual ElementSceneelementScene () const
virtual QUndoStack & undoStack () const
virtual QGraphicsItem * toItem ()
virtual QET::ScalingMethod preferredScalingMethod () const

Protected Member Functions

void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 PartPlcTable::mouseReleaseEvent.
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 PartPlcTable::itemChange.
bool sceneEventFilter (QGraphicsItem *watched, QEvent *event) override
 PartPlcTable::sceneEventFilter.
Protected Member Functions inherited from CustomElementGraphicPart
void stylesToXml (QDomElement &) const
 CustomElementGraphicPart::stylesToXml Write the current style to xml element. The style are stored like this: name-of-style:value;name-of-style:value Each style separate by ; and name-style/value are separate by :
void stylesFromXml (const QDomElement &)
 CustomElementGraphicPart::stylesFromXml Read the style used by this, from a xml element.
void resetStyles ()
 CustomElementGraphicPart::resetStyles Reset the current style to default, same style of default constructor.
void applyStylesToQPainter (QPainter &) const
 CustomElementGraphicPart::applyStylesToQPainter Apply the current style to the QPainter.
void drawShadowShape (QPainter *painter)
 CustomElementGraphicPart::drawShadowShape Draw a transparent blue shadow arround the shape of this item. The QPainterPathStroker used to draw shadows have a width of SHADOWS_HEIGHT Be carefull if penWeight of this item is to 0 the outline of strock is bigger of 0.5.
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 CustomElementGraphicPart::hoverEnterEvent Reimplemented from QGraphicsObject. Set m_hovered to true.
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 CustomElementGraphicPart::hoverLeaveEvent Reimplemented from QGraphicsObject. Set m_hovered to false.
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
Protected Member Functions inherited from CustomElementPart
QList< QPointF > mapPoints (const QRectF &, const QRectF &, const QList< QPointF > &)

Properties

QRectF rect
Properties inherited from CustomElementGraphicPart
LineStyle line_style
LineWeight line_weight
Filling filling
Color color
bool antialias

Private Member Functions

void switchResizeMode ()
 PartPlcTable::switchResizeMode.
void adjustHandlerPos ()
 PartPlcTable::adjustHandlerPos.
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
QSizeF calculateTableSize () const
 PartPlcTable::calculateTableSize Calculate the table size from PLC data in the element scene.

Private Attributes

QRectF m_rect
QRectF m_old_rect
QList< QPointF > saved_points_
int m_resize_mode = 1
int m_vector_index = -1
QVector< QetGraphicsHandlerItem * > m_handler_vector

Additional Inherited Members

Static Public Member Functions inherited from CustomElementGraphicPart
static void drawCross (const QPointF &center, QPainter *painter)
 CustomElementGraphicPart::drawCross Draw a cross at pos center.
Protected Attributes inherited from CustomElementGraphicPart
bool m_hovered

Detailed Description

The PartPlcTable class This class represents a PLC I/O table preview in the element editor. It shows the user where the PLC table will appear at runtime, so they can position other element parts (rectangles, terminals, etc.) around it. The actual PLC data is read from ElementScene::elementData().

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ PartPlcTable()

PartPlcTable::PartPlcTable ( QETElementEditor * editor,
QGraphicsItem * parent = nullptr )

PartPlcTable::PartPlcTable Constructor.

Parameters
editorthe QETElementEditor of this item
parentparent item
Here is the call graph for this function:

◆ ~PartPlcTable()

PartPlcTable::~PartPlcTable ( )
override

PartPlcTable::~PartPlcTable.

Here is the call graph for this function:

Member Function Documentation

◆ addHandler()

void PartPlcTable::addHandler ( )
overridevirtual

PartPlcTable::addHandler Do not add resize handlers - table size is data-driven. Move is handled by the base class QGraphicsItem drag behavior.

Reimplemented from CustomElementGraphicPart.

Here is the caller graph for this function:

◆ adjustHandlerPos()

void PartPlcTable::adjustHandlerPos ( )
private

PartPlcTable::adjustHandlerPos.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ boundingRect()

QRectF PartPlcTable::boundingRect ( ) const
override

PartPlcTable::boundingRect.

Returns
Bounding rectangle this part can fit into
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateTableSize()

QSizeF PartPlcTable::calculateTableSize ( ) const
private

PartPlcTable::calculateTableSize Calculate the table size from PLC data in the element scene.

Returns
the calculated size in item coordinates
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromXml()

void PartPlcTable::fromXml ( const QDomElement & qde)
overridevirtual

PartPlcTable::fromXml Import the properties of this PLC table part from a xml element.

Parameters
qde: Xml document to use.

Implements CustomElementPart.

Here is the call graph for this function:

◆ handlerMouseMoveEvent()

void PartPlcTable::handlerMouseMoveEvent ( QetGraphicsHandlerItem * qghi,
QGraphicsSceneMouseEvent * event )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handlerMousePressEvent()

void PartPlcTable::handlerMousePressEvent ( QetGraphicsHandlerItem * qghi,
QGraphicsSceneMouseEvent * event )
private
Here is the caller graph for this function:

◆ handlerMouseReleaseEvent()

void PartPlcTable::handlerMouseReleaseEvent ( QetGraphicsHandlerItem * qghi,
QGraphicsSceneMouseEvent * event )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleUserTransformation()

void PartPlcTable::handleUserTransformation ( const QRectF & initial_selection_rect,
const QRectF & new_selection_rect )
overridevirtual

PartPlcTable::handleUserTransformation.

Parameters
initial_selection_rect
new_selection_rect

Implements CustomElementPart.

Here is the call graph for this function:

◆ isUseless()

bool PartPlcTable::isUseless ( ) const
overridevirtual

PartPlcTable::isUseless.

Returns
true if this part is irrelevant and does not deserve to be saved. A PLC table part is always relevant.

Implements CustomElementPart.

◆ itemChange()

QVariant PartPlcTable::itemChange ( GraphicsItemChange change,
const QVariant & value )
overrideprotected

PartPlcTable::itemChange.

Parameters
change
value
Returns
Here is the call graph for this function:

◆ mouseReleaseEvent()

void PartPlcTable::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected

PartPlcTable::mouseReleaseEvent.

Here is the call graph for this function:

◆ name()

QString PartPlcTable::name ( ) const
inlineoverridevirtual
Returns
the name of the primitive

Implements CustomElementPart.

◆ paint()

void PartPlcTable::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * options,
QWidget * widget = nullptr )
override

PartPlcTable::paint Draw this PLC table.

Parameters
painter
options
widget
Here is the call graph for this function:

◆ rect()

QRectF PartPlcTable::rect ( ) const

PartPlcTable::rect.

Returns
: Returns the item's rectangle.

◆ removeHandler()

void PartPlcTable::removeHandler ( )
overridevirtual

PartPlcTable::removeHandler Remove the handlers of this item.

Reimplemented from CustomElementGraphicPart.

Here is the caller graph for this function:

◆ sceneEventFilter()

bool PartPlcTable::sceneEventFilter ( QGraphicsItem * watched,
QEvent * event )
overrideprotected

PartPlcTable::sceneEventFilter.

Parameters
watched
event
Returns
Here is the call graph for this function:

◆ sceneGeometricRect()

QRectF PartPlcTable::sceneGeometricRect ( ) const
overridevirtual

PartPlcTable::sceneGeometricRect.

Returns
the minimum, margin-less rectangle this part can fit into, in scene coordinates.

Implements CustomElementPart.

Here is the call graph for this function:

◆ setRect()

void PartPlcTable::setRect ( const QRectF & rect)

PartPlcTable::setRect Sets the item's rectangle to be the given rectangle.

Parameters
rect
Here is the call graph for this function:
Here is the caller graph for this function:

◆ shadowShape()

QPainterPath PartPlcTable::shadowShape ( ) const
overridevirtual

Implements CustomElementGraphicPart.

Here is the call graph for this function:

◆ shape()

QPainterPath PartPlcTable::shape ( ) const
override

PartPlcTable::shape.

Returns
the shape of this item
Here is the call graph for this function:
Here is the caller graph for this function:

◆ startUserTransformation()

void PartPlcTable::startUserTransformation ( const QRectF & initial_selection_rect)
overridevirtual

PartPlcTable::startUserTransformation.

Parameters
initial_selection_rect

Implements CustomElementPart.

◆ switchResizeMode()

void PartPlcTable::switchResizeMode ( )
private

PartPlcTable::switchResizeMode.

Here is the call graph for this function:

◆ toXml()

const QDomElement PartPlcTable::toXml ( QDomDocument & xml_document) const
overridevirtual

PartPlcTable::toXml Export this PLC table part in xml.

Parameters
xml_document: Xml document to use for create the xml element.
Returns
an xml element that describe this part

Implements CustomElementPart.

Here is the call graph for this function:

◆ type()

int PartPlcTable::type ( ) const
inlineoverride

◆ xmlName()

QString PartPlcTable::xmlName ( ) const
inlineoverridevirtual
Returns
the name that will be used as XML tag when exporting the primitive

Implements CustomElementPart.

Member Data Documentation

◆ m_handler_vector

QVector<QetGraphicsHandlerItem *> PartPlcTable::m_handler_vector
private

◆ m_old_rect

QRectF PartPlcTable::m_old_rect
private

◆ m_rect

QRectF PartPlcTable::m_rect
private

◆ m_resize_mode

int PartPlcTable::m_resize_mode = 1
private

◆ m_vector_index

int PartPlcTable::m_vector_index = -1
private

◆ saved_points_

QList<QPointF> PartPlcTable::saved_points_
private

Property Documentation

◆ rect

QRectF PartPlcTable::rect
readwrite

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