|
enum | { Type = UserType + 1105
} |
|
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
} |
|
|
| PartPolygon (QETElementEditor *editor, QGraphicsItem *parent=nullptr) |
| PartPolygon::PartPolygon Constructor. More...
|
|
| ~PartPolygon () override |
| PartPolygon::~PartPolygon. More...
|
|
int | type () const override |
|
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override |
| PartPolygon::paint Draw this polygon. More...
|
|
QString | name () const override |
|
QString | xmlName () const override |
|
void | fromXml (const QDomElement &) override |
| PartPolygon::fromXml Import the properties of this polygon from a xml element. More...
|
|
const QDomElement | toXml (QDomDocument &) const override |
| PartPolygon::toXml Export this polygin in xml. More...
|
|
QPainterPath | shape () const override |
| PartPolygon::shape. More...
|
|
QPainterPath | shadowShape () const override |
|
QRectF | boundingRect () const override |
| PartPolygon::boundingRect. More...
|
|
bool | isUseless () const override |
| PartPolygon::isUseless. More...
|
|
QRectF | sceneGeometricRect () const override |
| PartPolygon::sceneGeometricRect. More...
|
|
void | startUserTransformation (const QRectF &) override |
| PartPolygon::startUserTransformation Start the user-induced transformation, provided this primitive is contained within the initial_selection_rect bounding rectangle. More...
|
|
void | handleUserTransformation (const QRectF &, const QRectF &) override |
| PartPolygon::handleUserTransformation Handle the user-induced transformation from initial_selection_rect to new_selection_rect. More...
|
|
QET::ScalingMethod | preferredScalingMethod () const override |
| PartPolygon::preferredScalingMethod This method is called by the decorator when it needs to determine the best way to interactively scale a primitive. It is typically called when only a single primitive is being scaled. More...
|
|
QPolygonF | polygon () const |
| PartPolygon::polygon. More...
|
|
void | setPolygon (const QPolygonF &polygon) |
| PartPolygon::setPolygon Sets the item's polygon to be the given polygon. More...
|
|
void | addPoint (const QPointF &point) |
| PartPolygon::addPoint Add new point to polygon. More...
|
|
void | setLastPoint (const QPointF &point) |
| PartPolygon::setLastPoint Set the last point of polygon to point. More...
|
|
void | removeLastPoint () |
| PartPolygon::removeLastPoint Remove the last point of polygon. More...
|
|
bool | isClosed () const |
|
void | setClosed (bool close) |
|
void | setHandlerColor (QPointF pos, const QColor &color) final |
| PartPolygon::setHandlerColor Set the handler at pos pos (in polygon coordinate) to color color. More...
|
|
void | resetAllHandlerColor () final |
| PartPolygon::resetAllHandlerColor Reset the color of every handlers. More...
|
|
| 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. More...
|
|
| ~CustomElementGraphicPart () override |
| CustomElementGraphicPart::~CustomElementGraphicPart Destructor. More...
|
|
LineStyle | lineStyle () const |
|
void | setLineStyle (const LineStyle ls) |
| CustomElementGraphicPart::setLineStyle Set line style to ls. More...
|
|
LineWeight | lineWeight () const |
|
void | setLineWeight (const LineWeight lw) |
| CustomElementGraphicPart::setLineWeight Set line weight to lw. More...
|
|
qreal | penWeight () const |
| CustomElementGraphicPart::penWeight. More...
|
|
Filling | filling () const |
|
void | setFilling (const Filling f) |
| CustomElementGraphicPart::setFilling Set filling to f. More...
|
|
Color | color () const |
|
void | setColor (const Color c) |
| CustomElementGraphicPart::setColor Set color to c. More...
|
|
bool | antialiased () const |
|
void | setAntialiased (const bool b) |
| CustomElementGraphicPart::setAntialiased Set antialias to b. More...
|
|
void | setProperty (const char *name, const QVariant &value) override |
|
QVariant | property (const char *name) const override |
|
| CustomElementPart (QETElementEditor *editor) |
| CustomElementPart Constructor. More...
|
|
virtual | ~CustomElementPart () |
| ~CustomElementPart Destructor More...
|
|
virtual QETElementEditor * | elementEditor () const |
|
virtual void | updateCurrentPartEditor () const |
|
virtual ElementScene * | elementScene () const |
|
virtual QUndoStack & | undoStack () const |
|
virtual QGraphicsItem * | toItem () |
|
The PartPolygon class This class represents a polygon primitive which may be used to compose the drawing of an electrical element within the element editor.