RToleranceEntity
Class in Entity Module
Header: #include <src/entity/RToleranceEntity.h>
Inherits: REntity
Description
Section titled “Description”Tolerance 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”RToleranceEntity(const RToleranceEntity &other) |
|
RToleranceEntity(RDocument *document, const RToleranceData &data) |
|
| virtual | ~RToleranceEntity() |
| void | clearStyleOverrides() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RToleranceEntity > | cloneToToleranceEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| virtual RToleranceData & | getData() |
| virtual const RToleranceData & | getData() const |
| double | getDimscale() const |
| double | getDimtxt(bool scale=true) const |
| RVector | getDirection() const |
| QList< QSharedPointer< RShape > > | getExploded() const |
| QList< RLine > | getFrame() const |
| RVector | getLocation() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| int | getRows() const |
| QString | getText() const |
| QList< RTextData > | getTextLabels() const |
| void | setData(RToleranceData &d) |
| void | setDimscale(double v) |
| void | setDimtxt(double v) |
| void | setDirection(const RVector &p) |
| void | setLocation(const RVector &l) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setText(const QString &t) |
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 | PropertyBlock |
| static RPropertyTypeId | PropertyColor |
| static RPropertyTypeId | PropertyCustom |
| static RPropertyTypeId | PropertyDimscale |
| static RPropertyTypeId | PropertyDimtxt |
| static RPropertyTypeId | PropertyDirectionX |
| static RPropertyTypeId | PropertyDirectionY |
| static RPropertyTypeId | PropertyDirectionZ |
| static RPropertyTypeId | PropertyDisplayedColor |
| static RPropertyTypeId | PropertyDrawOrder |
| static RPropertyTypeId | PropertyHandle |
| static RPropertyTypeId | PropertyLayer |
| static RPropertyTypeId | PropertyLinetype |
| static RPropertyTypeId | PropertyLinetypeScale |
| static RPropertyTypeId | PropertyLineweight |
| static RPropertyTypeId | PropertyLocationX |
| static RPropertyTypeId | PropertyLocationY |
| static RPropertyTypeId | PropertyLocationZ |
| static RPropertyTypeId | PropertyProtected |
| static RPropertyTypeId | PropertyText |
| static RPropertyTypeId | PropertyType |
| static RPropertyTypeId | PropertyWorkingSet |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RToleranceData | data |
Member Documentation
Section titled “Member Documentation”RToleranceEntity
Section titled “RToleranceEntity”RToleranceEntity::RToleranceEntity(const RToleranceEntity &other)RToleranceEntity
Section titled “RToleranceEntity”RToleranceEntity::RToleranceEntity(RDocument *document, const RToleranceData &data)~RToleranceEntity
Section titled “~RToleranceEntity”virtual RToleranceEntity::~RToleranceEntity()virtual
clearStyleOverrides
Section titled “clearStyleOverrides”void RToleranceEntity::clearStyleOverrides()inline
virtual QSharedPointer< RObject > RToleranceEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToToleranceEntity
Section titled “cloneToToleranceEntity”QSharedPointer< RToleranceEntity > RToleranceEntity::cloneToToleranceEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RToleranceEntity::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.
getData
Section titled “getData”virtual RToleranceData & RToleranceEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RToleranceData & RToleranceEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDimscale
Section titled “getDimscale”double RToleranceEntity::getDimscale() constinline const
getDimtxt
Section titled “getDimtxt”double RToleranceEntity::getDimtxt(bool scale=true) constinline const
getDirection
Section titled “getDirection”RVector RToleranceEntity::getDirection() constinline const
getExploded
Section titled “getExploded”QList< QSharedPointer< RShape > > RToleranceEntity::getExploded() constinline const
getFrame
Section titled “getFrame”QList< RLine > RToleranceEntity::getFrame() constinline const
getLocation
Section titled “getLocation”RVector RToleranceEntity::getLocation() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RToleranceEntity::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.
getRows
Section titled “getRows”int RToleranceEntity::getRows() constinline const
getText
Section titled “getText”QString RToleranceEntity::getText() constinline const
getTextLabels
Section titled “getTextLabels”QList< RTextData > RToleranceEntity::getTextLabels() constinline const
setData
Section titled “setData”void RToleranceEntity::setData(RToleranceData &d)inline
setDimscale
Section titled “setDimscale”void RToleranceEntity::setDimscale(double v)inline
setDimtxt
Section titled “setDimtxt”void RToleranceEntity::setDimtxt(double v)inline
setDirection
Section titled “setDirection”void RToleranceEntity::setDirection(const RVector &p)inline
setLocation
Section titled “setLocation”void RToleranceEntity::setLocation(const RVector &l)inline
setProperty
Section titled “setProperty”virtual bool RToleranceEntity::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.
setText
Section titled “setText”void RToleranceEntity::setText(const QString &t)inline
getRtti
Section titled “getRtti”static RS::EntityType RToleranceEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RToleranceEntity::getStaticPropertyTypeIds()static inline
static void RToleranceEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RToleranceEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RToleranceEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RToleranceEntity::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.
PropertyDimscale
Section titled “PropertyDimscale”static RPropertyTypeId RToleranceEntity::PropertyDimscalestatic
PropertyDimtxt
Section titled “PropertyDimtxt”static RPropertyTypeId RToleranceEntity::PropertyDimtxtstatic
PropertyDirectionX
Section titled “PropertyDirectionX”static RPropertyTypeId RToleranceEntity::PropertyDirectionXstatic
PropertyDirectionY
Section titled “PropertyDirectionY”static RPropertyTypeId RToleranceEntity::PropertyDirectionYstatic
PropertyDirectionZ
Section titled “PropertyDirectionZ”static RPropertyTypeId RToleranceEntity::PropertyDirectionZstatic
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RToleranceEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RToleranceEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RToleranceEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RToleranceEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RToleranceEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RToleranceEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RToleranceEntity::PropertyLineweightstatic
PropertyLocationX
Section titled “PropertyLocationX”static RPropertyTypeId RToleranceEntity::PropertyLocationXstatic
PropertyLocationY
Section titled “PropertyLocationY”static RPropertyTypeId RToleranceEntity::PropertyLocationYstatic
PropertyLocationZ
Section titled “PropertyLocationZ”static RPropertyTypeId RToleranceEntity::PropertyLocationZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RToleranceEntity::PropertyProtectedstatic
PropertyText
Section titled “PropertyText”static RPropertyTypeId RToleranceEntity::PropertyTextstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RToleranceEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RToleranceEntity::PropertyWorkingSetstatic
virtual void RToleranceEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RToleranceData RToleranceEntity::dataprotected