RHatchEntity
Class in Entity Module
Header: #include <src/entity/RHatchEntity.h>
Inherits: REntity
Description
Section titled “Description”Point entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RHatchEntity(RDocument *document, const RHatchData &data) |
|
| virtual | ~RHatchEntity() |
| void | addBoundary(QSharedPointer< RShape > shape) |
| void | clearCustomPattern() |
| void | clearGradient() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RHatchEntity > | cloneToHatchEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| double | getAngle() const |
| bool | getAutoRegen() const |
| QList< RPolyline > | getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) const |
| virtual int | getComplexity() const |
| RPattern | getCustomPattern() const |
| virtual RHatchData & | getData() |
| virtual const RHatchData & | getData() 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 |
| QList< QSharedPointer< RShape > > | getLoopBoundary(int index) const |
| int | getLoopCount() const |
| RVector | getOriginPoint() const |
| QList< RPainterPath > | getPainterPaths(bool draft=false, double pixelSizeHint=0.0) const |
| QString | getPatternName() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| 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 |
| bool | hasCustomPattern() const |
| bool | isGradient() const |
| bool | isSolid() const |
| bool | isWinding() const |
| void | newLoop() |
| void | setAngle(double a) |
| void | setAutoRegen(bool on) |
| bool | setBoundaryVector(RObject::XYZ xyz, const QVariant &value, bool condition)Sets some x, y or z components of some nodes. |
| RVector | setComponent(const RVector &p, double v, RObject::XYZ xyz) |
| void | setCustomPattern(const RPattern &p) |
| void | setData(RHatchData &d) |
| void | setGradientAngle(double a) |
| void | setGradientColor1(const RColor &c) |
| void | setGradientColor2(const RColor &c) |
| void | setGradientName(const QString &n) |
| void | setGradientOneColorMode(bool on) |
| void | setGradientShift(double s) |
| void | setGradientTint(double t) |
| void | setOriginPoint(const RVector &op) |
| void | setPatternName(const QString &n) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setScale(double s) |
| void | setSolid(bool on) |
| void | setTransparency(int t) |
| virtual void | setViewportContext(const RViewportData &origin) |
| void | setWinding(bool on) |
Static Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RHatchData | data |
Member Documentation
Section titled “Member Documentation”RHatchEntity
Section titled “RHatchEntity”RHatchEntity::RHatchEntity(RDocument *document, const RHatchData &data)~RHatchEntity
Section titled “~RHatchEntity”virtual RHatchEntity::~RHatchEntity()virtual
addBoundary
Section titled “addBoundary”void RHatchEntity::addBoundary(QSharedPointer< RShape > shape)inline
clearCustomPattern
Section titled “clearCustomPattern”void RHatchEntity::clearCustomPattern()inline
clearGradient
Section titled “clearGradient”void RHatchEntity::clearGradient()inline
virtual QSharedPointer< RObject > RHatchEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToHatchEntity
Section titled “cloneToHatchEntity”QSharedPointer< RHatchEntity > RHatchEntity::cloneToHatchEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RHatchEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constvirtual const
Exports the entity to the given exporter.
The exporter might be a file exporter, a graphics scene or any other platform one can export entities to.
Reimplemented from exportEntity.
getAngle
Section titled “getAngle”double RHatchEntity::getAngle() constinline const
getAutoRegen
Section titled “getAutoRegen”bool RHatchEntity::getAutoRegen() constinline const
getBoundaryAsPolylines
Section titled “getBoundaryAsPolylines”QList< RPolyline > RHatchEntity::getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) constinline const
getComplexity
Section titled “getComplexity”virtual int RHatchEntity::getComplexity() constvirtual inline const
Reimplemented from getComplexity.
getCustomPattern
Section titled “getCustomPattern”RPattern RHatchEntity::getCustomPattern() constinline const
getData
Section titled “getData”virtual RHatchData & RHatchEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RHatchData & RHatchEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getExploded
Section titled “getExploded”virtual QList< QSharedPointer< RShape > > RHatchEntity::getExploded() constvirtual inline const
getGradientAngle
Section titled “getGradientAngle”double RHatchEntity::getGradientAngle() constinline const
getGradientColor1
Section titled “getGradientColor1”RColor RHatchEntity::getGradientColor1() constinline const
getGradientColor2
Section titled “getGradientColor2”RColor RHatchEntity::getGradientColor2() constinline const
getGradientName
Section titled “getGradientName”QString RHatchEntity::getGradientName() constinline const
getGradientOneColorMode
Section titled “getGradientOneColorMode”bool RHatchEntity::getGradientOneColorMode() constinline const
getGradientShift
Section titled “getGradientShift”double RHatchEntity::getGradientShift() constinline const
getGradientTint
Section titled “getGradientTint”double RHatchEntity::getGradientTint() constinline const
getLoopBoundary
Section titled “getLoopBoundary”QList< QSharedPointer< RShape > > RHatchEntity::getLoopBoundary(int index) constinline const
getLoopCount
Section titled “getLoopCount”int RHatchEntity::getLoopCount() constinline const
getOriginPoint
Section titled “getOriginPoint”RVector RHatchEntity::getOriginPoint() constinline const
getPainterPaths
Section titled “getPainterPaths”QList< RPainterPath > RHatchEntity::getPainterPaths(bool draft=false, double pixelSizeHint=0.0) constinline const
getPatternName
Section titled “getPatternName”QString RHatchEntity::getPatternName() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RHatchEntity::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)virtual
Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.
Reimplemented from getProperty.
getScale
Section titled “getScale”double RHatchEntity::getScale() constinline const
getShapes
Section titled “getShapes”virtual QList< QSharedPointer< RShape > > RHatchEntity::getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) constvirtual inline 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 RHatchEntity::getTransparency() constinline const
hasCustomPattern
Section titled “hasCustomPattern”bool RHatchEntity::hasCustomPattern() constinline const
isGradient
Section titled “isGradient”bool RHatchEntity::isGradient() constinline const
isSolid
Section titled “isSolid”bool RHatchEntity::isSolid() constinline const
isWinding
Section titled “isWinding”bool RHatchEntity::isWinding() constinline const
newLoop
Section titled “newLoop”void RHatchEntity::newLoop()inline
setAngle
Section titled “setAngle”void RHatchEntity::setAngle(double a)inline
setAutoRegen
Section titled “setAutoRegen”void RHatchEntity::setAutoRegen(bool on)inline
setBoundaryVector
Section titled “setBoundaryVector”bool RHatchEntity::setBoundaryVector(RObject::XYZ xyz, const QVariant &value, bool condition)Sets some x, y or z components of some nodes.
Parameters:
value: list of values to change in format QList<QPair<int, double> > >
setComponent
Section titled “setComponent”RVector RHatchEntity::setComponent(const RVector &p, double v, RObject::XYZ xyz)setCustomPattern
Section titled “setCustomPattern”void RHatchEntity::setCustomPattern(const RPattern &p)inline
setData
Section titled “setData”void RHatchEntity::setData(RHatchData &d)inline
setGradientAngle
Section titled “setGradientAngle”void RHatchEntity::setGradientAngle(double a)inline
setGradientColor1
Section titled “setGradientColor1”void RHatchEntity::setGradientColor1(const RColor &c)inline
setGradientColor2
Section titled “setGradientColor2”void RHatchEntity::setGradientColor2(const RColor &c)inline
setGradientName
Section titled “setGradientName”void RHatchEntity::setGradientName(const QString &n)inline
setGradientOneColorMode
Section titled “setGradientOneColorMode”void RHatchEntity::setGradientOneColorMode(bool on)inline
setGradientShift
Section titled “setGradientShift”void RHatchEntity::setGradientShift(double s)inline
setGradientTint
Section titled “setGradientTint”void RHatchEntity::setGradientTint(double t)inline
setOriginPoint
Section titled “setOriginPoint”void RHatchEntity::setOriginPoint(const RVector &op)inline
setPatternName
Section titled “setPatternName”void RHatchEntity::setPatternName(const QString &n)inline
setProperty
Section titled “setProperty”virtual bool RHatchEntity::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)virtual
Sets the given property to the given value.
If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.
Returns: True if the property owner was modified in any way, false otherwise.
Reimplemented from setProperty.
setScale
Section titled “setScale”void RHatchEntity::setScale(double s)inline
setSolid
Section titled “setSolid”void RHatchEntity::setSolid(bool on)inline
setTransparency
Section titled “setTransparency”void RHatchEntity::setTransparency(int t)inline
setViewportContext
Section titled “setViewportContext”virtual void RHatchEntity::setViewportContext(const RViewportData &origin)virtual
Reimplemented from setViewportContext.
setWinding
Section titled “setWinding”void RHatchEntity::setWinding(bool on)inline
getRtti
Section titled “getRtti”static RS::EntityType RHatchEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RHatchEntity::getStaticPropertyTypeIds()static inline
static void RHatchEntity::init()static
PropertyAngle
Section titled “PropertyAngle”static RPropertyTypeId RHatchEntity::PropertyAnglestatic
PropertyArea
Section titled “PropertyArea”static RPropertyTypeId RHatchEntity::PropertyAreastatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RHatchEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RHatchEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RHatchEntity::PropertyCustomstatic
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.
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RHatchEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RHatchEntity::PropertyDrawOrderstatic
PropertyEntityPattern
Section titled “PropertyEntityPattern”static RPropertyTypeId RHatchEntity::PropertyEntityPatternstatic
PropertyGradientAngle
Section titled “PropertyGradientAngle”static RPropertyTypeId RHatchEntity::PropertyGradientAnglestatic
PropertyGradientColor1
Section titled “PropertyGradientColor1”static RPropertyTypeId RHatchEntity::PropertyGradientColor1static
PropertyGradientColor2
Section titled “PropertyGradientColor2”static RPropertyTypeId RHatchEntity::PropertyGradientColor2static
PropertyGradientName
Section titled “PropertyGradientName”static RPropertyTypeId RHatchEntity::PropertyGradientNamestatic
PropertyGradientOneColorMode
Section titled “PropertyGradientOneColorMode”static RPropertyTypeId RHatchEntity::PropertyGradientOneColorModestatic
PropertyGradientShift
Section titled “PropertyGradientShift”static RPropertyTypeId RHatchEntity::PropertyGradientShiftstatic
PropertyGradientTint
Section titled “PropertyGradientTint”static RPropertyTypeId RHatchEntity::PropertyGradientTintstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RHatchEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RHatchEntity::PropertyLayerstatic
PropertyLength
Section titled “PropertyLength”static RPropertyTypeId RHatchEntity::PropertyLengthstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RHatchEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RHatchEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RHatchEntity::PropertyLineweightstatic
PropertyOriginX
Section titled “PropertyOriginX”static RPropertyTypeId RHatchEntity::PropertyOriginXstatic
PropertyOriginY
Section titled “PropertyOriginY”static RPropertyTypeId RHatchEntity::PropertyOriginYstatic
PropertyPatternName
Section titled “PropertyPatternName”static RPropertyTypeId RHatchEntity::PropertyPatternNamestatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RHatchEntity::PropertyProtectedstatic
PropertyScaleFactor
Section titled “PropertyScaleFactor”static RPropertyTypeId RHatchEntity::PropertyScaleFactorstatic
PropertySolid
Section titled “PropertySolid”static RPropertyTypeId RHatchEntity::PropertySolidstatic
PropertyTotalArea
Section titled “PropertyTotalArea”static RPropertyTypeId RHatchEntity::PropertyTotalAreastatic
PropertyTotalLength
Section titled “PropertyTotalLength”static RPropertyTypeId RHatchEntity::PropertyTotalLengthstatic
PropertyTransparency
Section titled “PropertyTransparency”static RPropertyTypeId RHatchEntity::PropertyTransparencystatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RHatchEntity::PropertyTypestatic
PropertyVertexNX
Section titled “PropertyVertexNX”static RPropertyTypeId RHatchEntity::PropertyVertexNXstatic
PropertyVertexNY
Section titled “PropertyVertexNY”static RPropertyTypeId RHatchEntity::PropertyVertexNYstatic
PropertyVertexNZ
Section titled “PropertyVertexNZ”static RPropertyTypeId RHatchEntity::PropertyVertexNZstatic
PropertyWinding
Section titled “PropertyWinding”static RPropertyTypeId RHatchEntity::PropertyWindingstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RHatchEntity::PropertyWorkingSetstatic
virtual void RHatchEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RHatchData RHatchEntity::dataprotected