RLeaderEntity
Class in Entity Module
Header: #include <src/entity/RLeaderEntity.h>
Inherits: REntity
Description
Section titled “Description”Leader entity class.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RLeaderEntity(const RLeaderEntity &other) |
|
RLeaderEntity(RDocument *document, const RLeaderData &data) |
|
| virtual | ~RLeaderEntity() |
| void | appendVertex(const RVector &vertex, double bulge=0.0) |
| void | clear() |
| void | clearStyleOverrides() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RLeaderEntity > | cloneToLeaderEntity() const |
| int | countSegments() const |
| int | countVertices() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| double | getBulgeAt(int i) const |
| int | getClosestSegment(const RVector &point) const |
| virtual RLeaderData & | getData() |
| virtual const RLeaderData & | getData() const |
| double | getDimasz(bool scale=true) const |
| RObject::Id | getDimLeaderBlockId() const |
| double | getDimscale() const |
| double | getDirection1() const |
| double | getDirection2() const |
| RVector | getEndPoint() const |
| QList< QSharedPointer< RShape > > | getExploded() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| QSharedPointer< RShape > | getSegmentAt(int i) const |
| RVector | getStartPoint() const |
| RVector | getVertexAt(int i) const |
| bool | hasArrowHead() const |
| void | insertVertex(int index, const RVector &vertex) |
| void | insertVertexAt(const RVector &vertex) |
| bool | isClosed() const |
| bool | isSplineShaped() const |
| void | normalize() |
| void | prependVertex(const RVector &vertex, double bulge=0.0) |
| void | removeLastVertex() |
| void | removeVertex(int index) |
| bool | reverse() |
| void | setArrowHead(bool on) |
| void | setBulgeAt(int i, double b) |
| void | setClosed(bool on) |
| void | setData(RLeaderData &d) |
| void | setDimasz(double v) |
| void | setDimLeaderBlockId(RObject::Id id) |
| void | setDimscale(double v) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setSplineShaped(bool on) |
| void | setVertexAt(int i, const RVector &v) |
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”| static RPropertyTypeId | PropertyArrowHead |
| static RPropertyTypeId | PropertyBlock |
| static RPropertyTypeId | PropertyColor |
| static RPropertyTypeId | PropertyCustom |
| static RPropertyTypeId | PropertyDimasz |
| static RPropertyTypeId | PropertyDimLeaderBlock |
| static RPropertyTypeId | PropertyDimscale |
| static RPropertyTypeId | PropertyDisplayedColor |
| static RPropertyTypeId | PropertyDrawOrder |
| static RPropertyTypeId | PropertyHandle |
| static RPropertyTypeId | PropertyLayer |
| static RPropertyTypeId | PropertyLength |
| static RPropertyTypeId | PropertyLinetype |
| static RPropertyTypeId | PropertyLinetypeScale |
| static RPropertyTypeId | PropertyLineweight |
| static RPropertyTypeId | PropertyProtected |
| static RPropertyTypeId | PropertySplineShaped |
| static RPropertyTypeId | PropertyTotalLength |
| static RPropertyTypeId | PropertyType |
| static RPropertyTypeId | PropertyVertexNX |
| static RPropertyTypeId | PropertyVertexNY |
| static RPropertyTypeId | PropertyVertexNZ |
| static RPropertyTypeId | PropertyWorkingSet |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RLeaderData | data |
Member Documentation
Section titled “Member Documentation”RLeaderEntity
Section titled “RLeaderEntity”RLeaderEntity::RLeaderEntity(const RLeaderEntity &other)RLeaderEntity
Section titled “RLeaderEntity”RLeaderEntity::RLeaderEntity(RDocument *document, const RLeaderData &data)~RLeaderEntity
Section titled “~RLeaderEntity”virtual RLeaderEntity::~RLeaderEntity()virtual
appendVertex
Section titled “appendVertex”void RLeaderEntity::appendVertex(const RVector &vertex, double bulge=0.0)inline
void RLeaderEntity::clear()inline
clearStyleOverrides
Section titled “clearStyleOverrides”void RLeaderEntity::clearStyleOverrides()inline
virtual QSharedPointer< RObject > RLeaderEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToLeaderEntity
Section titled “cloneToLeaderEntity”QSharedPointer< RLeaderEntity > RLeaderEntity::cloneToLeaderEntity() constinline const
countSegments
Section titled “countSegments”int RLeaderEntity::countSegments() constinline const
countVertices
Section titled “countVertices”int RLeaderEntity::countVertices() constinline const
exportEntity
Section titled “exportEntity”virtual void RLeaderEntity::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.
getBulgeAt
Section titled “getBulgeAt”double RLeaderEntity::getBulgeAt(int i) constinline const
getClosestSegment
Section titled “getClosestSegment”int RLeaderEntity::getClosestSegment(const RVector &point) constinline const
getData
Section titled “getData”virtual RLeaderData & RLeaderEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RLeaderData & RLeaderEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDimasz
Section titled “getDimasz”double RLeaderEntity::getDimasz(bool scale=true) constinline const
getDimLeaderBlockId
Section titled “getDimLeaderBlockId”RObject::Id RLeaderEntity::getDimLeaderBlockId() constinline const
getDimscale
Section titled “getDimscale”double RLeaderEntity::getDimscale() constinline const
getDirection1
Section titled “getDirection1”double RLeaderEntity::getDirection1() constinline const
getDirection2
Section titled “getDirection2”double RLeaderEntity::getDirection2() constinline const
getEndPoint
Section titled “getEndPoint”RVector RLeaderEntity::getEndPoint() constinline const
getExploded
Section titled “getExploded”QList< QSharedPointer< RShape > > RLeaderEntity::getExploded() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RLeaderEntity::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.
getSegmentAt
Section titled “getSegmentAt”QSharedPointer< RShape > RLeaderEntity::getSegmentAt(int i) constinline const
getStartPoint
Section titled “getStartPoint”RVector RLeaderEntity::getStartPoint() constinline const
getVertexAt
Section titled “getVertexAt”RVector RLeaderEntity::getVertexAt(int i) constinline const
hasArrowHead
Section titled “hasArrowHead”bool RLeaderEntity::hasArrowHead() constinline const
insertVertex
Section titled “insertVertex”void RLeaderEntity::insertVertex(int index, const RVector &vertex)inline
insertVertexAt
Section titled “insertVertexAt”void RLeaderEntity::insertVertexAt(const RVector &vertex)inline
isClosed
Section titled “isClosed”bool RLeaderEntity::isClosed() constinline const
isSplineShaped
Section titled “isSplineShaped”bool RLeaderEntity::isSplineShaped() constinline const
normalize
Section titled “normalize”void RLeaderEntity::normalize()inline
prependVertex
Section titled “prependVertex”void RLeaderEntity::prependVertex(const RVector &vertex, double bulge=0.0)inline
removeLastVertex
Section titled “removeLastVertex”void RLeaderEntity::removeLastVertex()inline
removeVertex
Section titled “removeVertex”void RLeaderEntity::removeVertex(int index)inline
reverse
Section titled “reverse”bool RLeaderEntity::reverse()inline
setArrowHead
Section titled “setArrowHead”void RLeaderEntity::setArrowHead(bool on)inline
setBulgeAt
Section titled “setBulgeAt”void RLeaderEntity::setBulgeAt(int i, double b)inline
setClosed
Section titled “setClosed”void RLeaderEntity::setClosed(bool on)inline
setData
Section titled “setData”void RLeaderEntity::setData(RLeaderData &d)inline
setDimasz
Section titled “setDimasz”void RLeaderEntity::setDimasz(double v)inline
setDimLeaderBlockId
Section titled “setDimLeaderBlockId”void RLeaderEntity::setDimLeaderBlockId(RObject::Id id)inline
setDimscale
Section titled “setDimscale”void RLeaderEntity::setDimscale(double v)inline
setProperty
Section titled “setProperty”virtual bool RLeaderEntity::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.
setSplineShaped
Section titled “setSplineShaped”void RLeaderEntity::setSplineShaped(bool on)inline
setVertexAt
Section titled “setVertexAt”void RLeaderEntity::setVertexAt(int i, const RVector &v)inline
getRtti
Section titled “getRtti”static RS::EntityType RLeaderEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RLeaderEntity::getStaticPropertyTypeIds()static inline
static void RLeaderEntity::init()static
PropertyArrowHead
Section titled “PropertyArrowHead”static RPropertyTypeId RLeaderEntity::PropertyArrowHeadstatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RLeaderEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RLeaderEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RLeaderEntity::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.
PropertyDimasz
Section titled “PropertyDimasz”static RPropertyTypeId RLeaderEntity::PropertyDimaszstatic
PropertyDimLeaderBlock
Section titled “PropertyDimLeaderBlock”static RPropertyTypeId RLeaderEntity::PropertyDimLeaderBlockstatic
PropertyDimscale
Section titled “PropertyDimscale”static RPropertyTypeId RLeaderEntity::PropertyDimscalestatic
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RLeaderEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RLeaderEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RLeaderEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RLeaderEntity::PropertyLayerstatic
PropertyLength
Section titled “PropertyLength”static RPropertyTypeId RLeaderEntity::PropertyLengthstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RLeaderEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RLeaderEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RLeaderEntity::PropertyLineweightstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RLeaderEntity::PropertyProtectedstatic
PropertySplineShaped
Section titled “PropertySplineShaped”static RPropertyTypeId RLeaderEntity::PropertySplineShapedstatic
PropertyTotalLength
Section titled “PropertyTotalLength”static RPropertyTypeId RLeaderEntity::PropertyTotalLengthstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RLeaderEntity::PropertyTypestatic
PropertyVertexNX
Section titled “PropertyVertexNX”static RPropertyTypeId RLeaderEntity::PropertyVertexNXstatic
PropertyVertexNY
Section titled “PropertyVertexNY”static RPropertyTypeId RLeaderEntity::PropertyVertexNYstatic
PropertyVertexNZ
Section titled “PropertyVertexNZ”static RPropertyTypeId RLeaderEntity::PropertyVertexNZstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RLeaderEntity::PropertyWorkingSetstatic
virtual void RLeaderEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RLeaderData RLeaderEntity::dataprotected