RHatchData
Class in Entity Module
Header: #include <src/entity/RHatchData.h>
Inherits: REntityData, RPainterPathSource
Description
Section titled “Description”Stores and manages all data that defines the geometry and appearance of a hatch or solid fill entity.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Functions
Section titled “Public Functions”RHatchData() |
|
RHatchData(bool solid, double scaleFactor, double angle, const QString &patternName) |
|
RHatchData(const RHatchData &other) |
|
| void | addBoundary(QSharedPointer< RShape > shape, bool addAutoLoops=true)Add a boundary shape to the current loop. |
| void | addBoundaryShape(QSharedPointer< RShape > shape, int loop) |
| void | autoCloseLoops() |
| void | cancelLoop() |
| virtual RShape * | castToShape() |
| void | clearBoundary() |
| void | clearCustomPattern() |
| void | clearGradient() |
| virtual bool | cloneOnChange() constReimplement to force clone on change in transactions. |
| double | getAngle() const |
| double | getArea() const |
| bool | getAutoRegen() const |
| QList< QList< QSharedPointer< RShape > > > | getBoundary() const |
| QList< RPolyline > | getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) const |
| QPair< QSharedPointer< RShape >, QSharedPointer< RShape > > | getBoundaryElementsAt(int index, int &internalIndex) const |
| RPainterPath | getBoundaryPath(double pixelSizeHint=RDEFAULT_MIN1) const |
| virtual RBox | getBoundingBox(bool ignoreEmpty=false) const |
| virtual RColor | getColor() const |
| virtual RColor | getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const |
| virtual RColor | getColor(const RColor &unresolvedColor, const QStack< QSharedPointer< REntity > > &blockRefStack) const |
| int | getComplexity() const |
| RPattern | getCustomPattern() const |
| virtual double | getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) const |
| virtual QList< QSharedPointer< RShape > > | getExploded() const |
| double | getGradientAngle() const |
| RColor | getGradientColor1() const |
| RColor | getGradientColor2() const |
| QString | getGradientName() const |
| bool | getGradientOneColorMode() const |
| double | getGradientShift() const |
| double | getGradientTint() const |
| double | getLength() const |
| QList< QSharedPointer< RShape > > | getLoopBoundary(int index) const |
| int | getLoopCount() const |
| RVector | getOriginPoint() const |
| virtual QList< RPainterPath > | getPainterPaths(bool draft=false, double pixelSizeHint=RDEFAULT_MIN1) const |
| QString | getPatternName() const |
| virtual RVector | getPointOnEntity() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| double | getScale() const |
| virtual QList< QSharedPointer< RShape > > | getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const |
| int | getTransparency() const |
| virtual RS::EntityType | getType() const |
| bool | hasCustomPattern() const |
| virtual bool | intersectsWith(const RShape &shape) const |
| bool | isGradient() const |
| bool | isSolid() const |
| bool | isWinding() const |
| virtual bool | mirror(const RLine &axis) |
| virtual bool | move(const RVector &offset)Moves this entity by the given offset. |
| virtual bool | moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location. |
| void | newLoop() |
| RHatchData & | operator=(const RHatchData &other) |
| bool | order() |
| virtual bool | rotate(double rotation, const RVector ¢er=RDEFAULT_RVECTOR) |
| virtual bool | scale(const RVector &scaleFactors, const RVector ¢er=RDEFAULT_RVECTOR) |
| void | setAngle(double a) |
| void | setAutoRegen(bool on) |
| void | setCustomPattern(const RPattern &p) |
| void | setGradientAngle(double a) |
| void | setGradientColor1(const RColor &c) |
| void | setGradientColor2(const RColor &c) |
| void | setGradientName(const QString &n)Sets the gradient name and makes this hatch a gradient fill. |
| void | setGradientOneColorMode(bool on) |
| void | setGradientShift(double s) |
| void | setGradientTint(double t) |
| void | setOriginPoint(const RVector &op, bool clearCustom=true) |
| void | setPattern(const RPattern &p) |
| void | setPatternName(const QString &n) |
| void | setScale(double s) |
| void | setSolid(bool on) |
| void | setTransparency(int t) |
| void | setWinding(bool on) |
| virtual bool | stretch(const RPolyline &area, const RVector &offset)Stretches the end points of this entity that are inside area by offset. |
| virtual void | update() constEntities can reimplement this function to invalidate any internal cache (mark the entity as dirty). |
Static Public Functions
Section titled “Static Public Functions”| static RHatchProxy * | getHatchProxy() |
| static bool | hasProxy() |
| static QString | normalizeGradientName(const QString &n) |
| static void | setHatchProxy(RHatchProxy *p) |
Protected Functions
Section titled “Protected Functions”RHatchData(RDocument *document, const RHatchData &data) |
|
| QBrush | createGradientBrush() const |
| QList< RLine > | getSegments(const RLine &line) const |
Private Functions
Section titled “Private Functions”| bool | addWindingNumber(const int *edgeIndices, int count, double x, double y, int &windingNumber) constAccumulates the winding number contribution of the given range of edges, using the same scanline rules as QPainterPath::contains. |
| bool | isPointInBoundary(double x, double y) const |
| void | updateBoundaryBoxes() constUpdates the cached bounding boxes of all boundary shapes. |
| void | updateBoundaryPointCache() constUpdates the flattened representation of the boundary path which is used by isPointInBoundary(). |
Private Attributes
Section titled “Private Attributes”| double | angle |
| bool | autoRegen |
| QList< QList< QSharedPointer< RShape > > > | boundary Hatch boundary, ordered by loops, in strictly defined order. |
| int | boundaryBandCount |
| QVector< int > | boundaryBandEdges |
| double | boundaryBandHeight |
| QVector< int > | boundaryBandStart |
| QVector< double > | boundaryBoxes Bounding box of every boundary shape, grown by the same tolerance the intersection code uses. |
| bool | boundaryBoxesValid |
| QVector< qint8 > | boundaryEdgeDirs |
| QVector< double > | boundaryEdges Flattened boundary (boundaryPath), used to determine whether a point is inside the hatch much faster than QPainterPath::contains can. |
| double | boundaryFlatteningError |
| QVector< int > | boundaryLongEdges |
| double | boundaryMaxX |
| double | boundaryMaxY |
| double | boundaryMinX |
| double | boundaryMinY |
| RPainterPath | boundaryPath |
| bool | boundaryPointCacheValid |
| bool | dirty |
| bool | gotDraft |
| double | gotPixelSizeHint |
| double | gradientAngle |
| RColor | gradientColor1 |
| RColor | gradientColor2 |
| QString | gradientName Gradient fill data (DXF/DWG compatible). |
| bool | gradientOneColorMode |
| double | gradientShift |
| double | gradientTint |
| RVector | originPoint |
| QList< RPainterPath > | painterPaths |
| RPattern | pattern Custom pattern loaded from DXF file, not LIN file. |
| QString | patternName |
| double | scaleFactor |
| bool | solid |
| int | transparency |
| bool | winding |
Static Private Attributes
Section titled “Static Private Attributes”| static RHatchProxy * | hatchProxy |
Friends
Section titled “Friends”| class | RHatchEntity |
Member Documentation
Section titled “Member Documentation”RHatchData
Section titled “RHatchData”RHatchData::RHatchData()RHatchData
Section titled “RHatchData”RHatchData::RHatchData(bool solid, double scaleFactor, double angle, const QString &patternName)Parameters:
solid: True for a solid fill, false for a hatch pattern.scaleFactor: Scale factor of the hatch pattern.angle: Rotation angle of the hatch pattern.patternName: Name of the hatch pattern. “SOLID” for solid fills.
RHatchData
Section titled “RHatchData”RHatchData::RHatchData(const RHatchData &other)addBoundary
Section titled “addBoundary”void RHatchData::addBoundary(QSharedPointer< RShape > shape, bool addAutoLoops=true)Add a boundary shape to the current loop.
Parameters:
addAutoLoops: True: create new loop if boundary does not connect. Otherwise add line segment on the fly (DXF/DWG import).
addBoundaryShape
Section titled “addBoundaryShape”void RHatchData::addBoundaryShape(QSharedPointer< RShape > shape, int loop)inline
autoCloseLoops
Section titled “autoCloseLoops”void RHatchData::autoCloseLoops()inline
cancelLoop
Section titled “cancelLoop”void RHatchData::cancelLoop()castToShape
Section titled “castToShape”virtual RShape * RHatchData::castToShape()virtual inline
Reimplemented from castToShape.
clearBoundary
Section titled “clearBoundary”void RHatchData::clearBoundary()clearCustomPattern
Section titled “clearCustomPattern”void RHatchData::clearCustomPattern()clearGradient
Section titled “clearGradient”void RHatchData::clearGradient()inline
cloneOnChange
Section titled “cloneOnChange”virtual bool RHatchData::cloneOnChange() constvirtual inline const
Reimplement to force clone on change in transactions.
Reimplemented from cloneOnChange.
getAngle
Section titled “getAngle”double RHatchData::getAngle() constinline const
getArea
Section titled “getArea”double RHatchData::getArea() constconst
getAutoRegen
Section titled “getAutoRegen”bool RHatchData::getAutoRegen() constinline const
getBoundary
Section titled “getBoundary”QList< QList< QSharedPointer< RShape > > > RHatchData::getBoundary() constinline const
getBoundaryAsPolylines
Section titled “getBoundaryAsPolylines”QList< RPolyline > RHatchData::getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) constconst
getBoundaryElementsAt
Section titled “getBoundaryElementsAt”QPair< QSharedPointer< RShape >, QSharedPointer< RShape > > RHatchData::getBoundaryElementsAt(int index, int &internalIndex) constconst
Non-Scriptable: This function is not available in script environments.
Returns: Pair of two shapes that connect to the vertex at the given index. The first shape connects with its end point, the second with its start point.
getBoundaryPath
Section titled “getBoundaryPath”RPainterPath RHatchData::getBoundaryPath(double pixelSizeHint=RDEFAULT_MIN1) constconst
Returns: Painter path that represents this hatch boundary.
getBoundingBox
Section titled “getBoundingBox”virtual RBox RHatchData::getBoundingBox(bool ignoreEmpty=false) constvirtual const
Returns: The bounding box that contains this entity.
Reimplemented from getBoundingBox.
getColor
Section titled “getColor”virtual RColor RHatchData::getColor() constvirtual inline const
Reimplemented from getColor.
getColor
Section titled “getColor”virtual RColor RHatchData::getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) constvirtual inline const
Returns: Color of this entity.
Parameters:
resolve: Resolve color if ByLayer or ByBlock.
Reimplemented from getColor.
getColor
Section titled “getColor”virtual RColor RHatchData::getColor(const RColor &unresolvedColor, const QStack< QSharedPointer< REntity > > &blockRefStack) constvirtual inline const
Reimplemented from getColor.
getComplexity
Section titled “getComplexity”int RHatchData::getComplexity() constconst
getCustomPattern
Section titled “getCustomPattern”RPattern RHatchData::getCustomPattern() constinline const
getDistanceTo
Section titled “getDistanceTo”virtual double RHatchData::getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) constvirtual const
Returns: The shortest distance from this entity to the given point.
Parameters:
limited: Limit lines, arcs at end points, otherwise the orthogonal distance to the unlimited line / circle is returned.range: This is returned for solid filled entities (solid filled or dense hatches, text entities) if the point is on the entity and the distance would be zero.draft: Calculate based on draft mode representation of the entity.strictRange: If limited, this is the maximum range from either end point of the entity. Zero to only return distances that are strictly orthogonal to the entity.
Reimplemented from getDistanceTo.
getExploded
Section titled “getExploded”virtual QList< QSharedPointer< RShape > > RHatchData::getExploded() constvirtual const
getGradientAngle
Section titled “getGradientAngle”double RHatchData::getGradientAngle() constinline const
getGradientColor1
Section titled “getGradientColor1”RColor RHatchData::getGradientColor1() constinline const
getGradientColor2
Section titled “getGradientColor2”RColor RHatchData::getGradientColor2() constinline const
getGradientName
Section titled “getGradientName”QString RHatchData::getGradientName() constinline const
getGradientOneColorMode
Section titled “getGradientOneColorMode”bool RHatchData::getGradientOneColorMode() constinline const
getGradientShift
Section titled “getGradientShift”double RHatchData::getGradientShift() constinline const
getGradientTint
Section titled “getGradientTint”double RHatchData::getGradientTint() constinline const
getLength
Section titled “getLength”double RHatchData::getLength() constconst
getLoopBoundary
Section titled “getLoopBoundary”QList< QSharedPointer< RShape > > RHatchData::getLoopBoundary(int index) constconst
getLoopCount
Section titled “getLoopCount”int RHatchData::getLoopCount() constinline const
getOriginPoint
Section titled “getOriginPoint”RVector RHatchData::getOriginPoint() constinline const
getPainterPaths
Section titled “getPainterPaths”virtual QList< RPainterPath > RHatchData::getPainterPaths(bool draft=false, double pixelSizeHint=RDEFAULT_MIN1) constvirtual const
Parameters:
pixelSizeHint: Pixel size hint for rendering arcs. Negative if it does not matter (current cached painter paths are returned).
Reimplemented from getPainterPaths.
getPatternName
Section titled “getPatternName”QString RHatchData::getPatternName() constinline const
getPointOnEntity
Section titled “getPointOnEntity”virtual RVector RHatchData::getPointOnEntity() constvirtual const
Returns: A point that is on the entity. Used to check if an entity is inside a polygon.
Reimplemented from getPointOnEntity.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RHatchData::getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) constvirtual const
Returns: Vector of reference points of this entity. Reference points can usually be moved around by the user to change the geometry of the entity.
Reimplemented from getReferencePoints.
getScale
Section titled “getScale”double RHatchData::getScale() constinline const
getShapes
Section titled “getShapes”virtual QList< QSharedPointer< RShape > > RHatchData::getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) constvirtual const
Returns: Shapes that represent the geometry of this entity.
Parameters:
queryBox: Limit returned shapes to query boxignoreComplex: Ignore complex shapes and explode those into simple shapessegment: Split up splines into spline segments
Reimplemented from getShapes.
getTransparency
Section titled “getTransparency”int RHatchData::getTransparency() constinline const
getType
Section titled “getType”virtual RS::EntityType RHatchData::getType() constvirtual inline const
Reimplemented from getType.
hasCustomPattern
Section titled “hasCustomPattern”bool RHatchData::hasCustomPattern() constinline const
intersectsWith
Section titled “intersectsWith”virtual bool RHatchData::intersectsWith(const RShape &shape) constvirtual const
Returns: True if this entity intersects with the given shape, false otherwise.
Reimplemented from intersectsWith.
isGradient
Section titled “isGradient”bool RHatchData::isGradient() constinline const
Returns: True if this hatch is a gradient fill (gradient name set).
isSolid
Section titled “isSolid”bool RHatchData::isSolid() constinline const
isWinding
Section titled “isWinding”bool RHatchData::isWinding() constinline const
mirror
Section titled “mirror”virtual bool RHatchData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
virtual bool RHatchData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RHatchData::moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)virtual
Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location.
Returns: True if a reference point has been moved successfully, false otherwise.
Reimplemented from moveReferencePoint.
newLoop
Section titled “newLoop”void RHatchData::newLoop()operator=
Section titled “operator=”RHatchData & RHatchData::operator=(const RHatchData &other)bool RHatchData::order()rotate
Section titled “rotate”virtual bool RHatchData::rotate(double rotation, const RVector ¢er=RDEFAULT_RVECTOR)virtual
Reimplemented from rotate.
virtual bool RHatchData::scale(const RVector &scaleFactors, const RVector ¢er=RDEFAULT_RVECTOR)virtual
Reimplemented from scale.
setAngle
Section titled “setAngle”void RHatchData::setAngle(double a)setAutoRegen
Section titled “setAutoRegen”void RHatchData::setAutoRegen(bool on)inline
setCustomPattern
Section titled “setCustomPattern”void RHatchData::setCustomPattern(const RPattern &p)inline
setGradientAngle
Section titled “setGradientAngle”void RHatchData::setGradientAngle(double a)inline
setGradientColor1
Section titled “setGradientColor1”void RHatchData::setGradientColor1(const RColor &c)inline
setGradientColor2
Section titled “setGradientColor2”void RHatchData::setGradientColor2(const RColor &c)inline
setGradientName
Section titled “setGradientName”void RHatchData::setGradientName(const QString &n)inline
Sets the gradient name and makes this hatch a gradient fill.
Valid names are LINEAR, CYLINDER, INVCYLINDER, SPHERICAL, INVSPHERICAL, HEMISPHERICAL, INVHEMISPHERICAL, CURVED, INVCURVED (CYLINDER and INVCYLINDER are cyclic gradients from color 1 to color 2 and back to color 1). AutoCAD resource names (GR_LINEAR, GR_CYLIN, GR_INVCYL, …) are accepted and normalized to the DXF names. An empty name means no gradient (regular hatch or solid fill).
setGradientOneColorMode
Section titled “setGradientOneColorMode”void RHatchData::setGradientOneColorMode(bool on)inline
setGradientShift
Section titled “setGradientShift”void RHatchData::setGradientShift(double s)inline
setGradientTint
Section titled “setGradientTint”void RHatchData::setGradientTint(double t)inline
setOriginPoint
Section titled “setOriginPoint”void RHatchData::setOriginPoint(const RVector &op, bool clearCustom=true)inline
setPattern
Section titled “setPattern”void RHatchData::setPattern(const RPattern &p)inline
setPatternName
Section titled “setPatternName”void RHatchData::setPatternName(const QString &n)inline
setScale
Section titled “setScale”void RHatchData::setScale(double s)setSolid
Section titled “setSolid”void RHatchData::setSolid(bool on)inline
setTransparency
Section titled “setTransparency”void RHatchData::setTransparency(int t)inline
setWinding
Section titled “setWinding”void RHatchData::setWinding(bool on)inline
stretch
Section titled “stretch”virtual bool RHatchData::stretch(const RPolyline &area, const RVector &offset)virtual
Stretches the end points of this entity that are inside area by offset.
Reimplemented from stretch.
update
Section titled “update”virtual void RHatchData::update() constvirtual const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
Reimplemented from update.
getHatchProxy
Section titled “getHatchProxy”static RHatchProxy * RHatchData::getHatchProxy()static inline
Non-Scriptable: This function is not available in script environments.
hasProxy
Section titled “hasProxy”static bool RHatchData::hasProxy()static inline
normalizeGradientName
Section titled “normalizeGradientName”static QString RHatchData::normalizeGradientName(const QString &n)static
Returns: Normalized gradient name: the canonical DXF name in upper case. Accepts DXF names (e.g. “CYLINDER”) as well as AutoCAD resource names (e.g. “GR_CYLIN”) as used by the AutoCAD gradient user interface.
setHatchProxy
Section titled “setHatchProxy”static void RHatchData::setHatchProxy(RHatchProxy *p)static inline
Non-Scriptable: This function is not available in script environments.
RHatchData
Section titled “RHatchData”RHatchData::RHatchData(RDocument *document, const RHatchData &data)protected
createGradientBrush
Section titled “createGradientBrush”QBrush RHatchData::createGradientBrush() constconst protected
Returns: Gradient brush used to render this gradient fill. Approximates the AutoCAD gradient types (LINEAR, CYLINDER, SPHERICAL, HEMISPHERICAL, CURVED and their INV counterparts).
getSegments
Section titled “getSegments”QList< RLine > RHatchData::getSegments(const RLine &line) constconst protected
addWindingNumber
Section titled “addWindingNumber”bool RHatchData::addWindingNumber(const int *edgeIndices, int count, double x, double y, int &windingNumber) constconst private
Accumulates the winding number contribution of the given range of edges, using the same scanline rules as QPainterPath::contains.
Returns: False if the point is too close to one of the edges to be classified reliably from the flattened boundary.
isPointInBoundary
Section titled “isPointInBoundary”bool RHatchData::isPointInBoundary(double x, double y) constconst private
Returns: True if the given point is inside the hatch boundary.
Equivalent to boundaryPath.contains(QPointF(x, y)) but based on the flattened, indexed boundary maintained by updateBoundaryPointCache(). Points which are too close to the boundary for the flattened representation to decide are handed to QPainterPath::contains.
updateBoundaryBoxes
Section titled “updateBoundaryBoxes”void RHatchData::updateBoundaryBoxes() constconst private
Updates the cached bounding boxes of all boundary shapes.
The intersection code applies the same test but recalculates the bounding box of the shape for every single call. Since one hatch typically intersects every boundary element with hundreds of pattern lines, the bounding boxes are calculated once here instead.
updateBoundaryPointCache
Section titled “updateBoundaryPointCache”void RHatchData::updateBoundaryPointCache() constconst private
Updates the flattened representation of the boundary path which is used by isPointInBoundary().
The boundary is flattened into line segments once and the segments are sorted into horizontal bands. Testing a point then only has to look at the few edges which cross the band the point is in, instead of at every element of the boundary path.
double RHatchData::angleprivate
autoRegen
Section titled “autoRegen”bool RHatchData::autoRegenprivate
boundary
Section titled “boundary”QList<QList<QSharedPointer<RShape> > > RHatchData::boundaryprivate
Hatch boundary, ordered by loops, in strictly defined order.
boundaryBandCount
Section titled “boundaryBandCount”int RHatchData::boundaryBandCountprivate
boundaryBandEdges
Section titled “boundaryBandEdges”QVector<int> RHatchData::boundaryBandEdgesprivate
boundaryBandHeight
Section titled “boundaryBandHeight”double RHatchData::boundaryBandHeightprivate
boundaryBandStart
Section titled “boundaryBandStart”QVector<int> RHatchData::boundaryBandStartprivate
boundaryBoxes
Section titled “boundaryBoxes”QVector<double> RHatchData::boundaryBoxesprivate
Bounding box of every boundary shape, grown by the same tolerance the intersection code uses.
Cached to avoid recalculating the bounding box of every boundary element for every single hatch pattern line.
boundaryBoxesValid
Section titled “boundaryBoxesValid”bool RHatchData::boundaryBoxesValidprivate
boundaryEdgeDirs
Section titled “boundaryEdgeDirs”QVector<qint8> RHatchData::boundaryEdgeDirsprivate
boundaryEdges
Section titled “boundaryEdges”QVector<double> RHatchData::boundaryEdgesprivate
Flattened boundary (boundaryPath), used to determine whether a point is inside the hatch much faster than QPainterPath::contains can.
Four coordinates per edge (x1,y1,x2,y2 with y1<y2), the edges sorted into horizontal bands (CSR style: bandStart indexes into bandEdges).
boundaryFlatteningError
Section titled “boundaryFlatteningError”double RHatchData::boundaryFlatteningErrorprivate
boundaryLongEdges
Section titled “boundaryLongEdges”QVector<int> RHatchData::boundaryLongEdgesprivate
boundaryMaxX
Section titled “boundaryMaxX”double RHatchData::boundaryMaxXprivate
boundaryMaxY
Section titled “boundaryMaxY”double RHatchData::boundaryMaxYprivate
boundaryMinX
Section titled “boundaryMinX”double RHatchData::boundaryMinXprivate
boundaryMinY
Section titled “boundaryMinY”double RHatchData::boundaryMinYprivate
boundaryPath
Section titled “boundaryPath”RPainterPath RHatchData::boundaryPathprivate
boundaryPointCacheValid
Section titled “boundaryPointCacheValid”bool RHatchData::boundaryPointCacheValidprivate
bool RHatchData::dirtyprivate
gotDraft
Section titled “gotDraft”bool RHatchData::gotDraftprivate
gotPixelSizeHint
Section titled “gotPixelSizeHint”double RHatchData::gotPixelSizeHintprivate
gradientAngle
Section titled “gradientAngle”double RHatchData::gradientAngleprivate
gradientColor1
Section titled “gradientColor1”RColor RHatchData::gradientColor1private
gradientColor2
Section titled “gradientColor2”RColor RHatchData::gradientColor2private
gradientName
Section titled “gradientName”QString RHatchData::gradientNameprivate
Gradient fill data (DXF/DWG compatible).
An empty gradient name means this hatch is not a gradient fill.
gradientOneColorMode
Section titled “gradientOneColorMode”bool RHatchData::gradientOneColorModeprivate
gradientShift
Section titled “gradientShift”double RHatchData::gradientShiftprivate
gradientTint
Section titled “gradientTint”double RHatchData::gradientTintprivate
originPoint
Section titled “originPoint”RVector RHatchData::originPointprivate
painterPaths
Section titled “painterPaths”QList<RPainterPath> RHatchData::painterPathsprivate
pattern
Section titled “pattern”RPattern RHatchData::patternprivate
Custom pattern loaded from DXF file, not LIN file.
Pattern is stored independent of pattern origin point.
patternName
Section titled “patternName”QString RHatchData::patternNameprivate
scaleFactor
Section titled “scaleFactor”double RHatchData::scaleFactorprivate
bool RHatchData::solidprivate
transparency
Section titled “transparency”int RHatchData::transparencyprivate
winding
Section titled “winding”bool RHatchData::windingprivate
hatchProxy
Section titled “hatchProxy”static RHatchProxy * RHatchData::hatchProxy = NULLstatic private
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
RHatchEntity
Section titled “RHatchEntity”friend class RHatchEntityprivate