Skip to content

RToleranceEntity

Class in Entity Module
Header: #include <src/entity/RToleranceEntity.h>
Inherits: REntity

Tolerance entity class.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
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
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RToleranceData data

RToleranceEntity::RToleranceEntity(const RToleranceEntity &other)

RToleranceEntity::RToleranceEntity(RDocument *document, const RToleranceData &data)

virtual RToleranceEntity::~RToleranceEntity()

virtual

void RToleranceEntity::clearStyleOverrides()

inline

virtual QSharedPointer< RObject > RToleranceEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RToleranceEntity > RToleranceEntity::cloneToToleranceEntity() const

inline const

virtual void RToleranceEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const

virtual 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.

virtual RToleranceData & RToleranceEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RToleranceData & RToleranceEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

double RToleranceEntity::getDimscale() const

inline const

double RToleranceEntity::getDimtxt(bool scale=true) const

inline const

RVector RToleranceEntity::getDirection() const

inline const

QList< QSharedPointer< RShape > > RToleranceEntity::getExploded() const

inline const

QList< RLine > RToleranceEntity::getFrame() const

inline const

RVector RToleranceEntity::getLocation() const

inline const

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.

int RToleranceEntity::getRows() const

inline const

QString RToleranceEntity::getText() const

inline const

QList< RTextData > RToleranceEntity::getTextLabels() const

inline const

void RToleranceEntity::setData(RToleranceData &d)

inline

void RToleranceEntity::setDimscale(double v)

inline

void RToleranceEntity::setDimtxt(double v)

inline

void RToleranceEntity::setDirection(const RVector &p)

inline

void RToleranceEntity::setLocation(const RVector &l)

inline

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.

void RToleranceEntity::setText(const QString &t)

inline

static RS::EntityType RToleranceEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RToleranceEntity::getStaticPropertyTypeIds()

static inline

static void RToleranceEntity::init()

static

static RPropertyTypeId RToleranceEntity::PropertyBlock

static

static RPropertyTypeId RToleranceEntity::PropertyColor

static

static RPropertyTypeId RToleranceEntity::PropertyCustom

static

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.

static RPropertyTypeId RToleranceEntity::PropertyDimscale

static

static RPropertyTypeId RToleranceEntity::PropertyDimtxt

static

static RPropertyTypeId RToleranceEntity::PropertyDirectionX

static

static RPropertyTypeId RToleranceEntity::PropertyDirectionY

static

static RPropertyTypeId RToleranceEntity::PropertyDirectionZ

static

static RPropertyTypeId RToleranceEntity::PropertyDisplayedColor

static

static RPropertyTypeId RToleranceEntity::PropertyDrawOrder

static

static RPropertyTypeId RToleranceEntity::PropertyHandle

static

static RPropertyTypeId RToleranceEntity::PropertyLayer

static

static RPropertyTypeId RToleranceEntity::PropertyLinetype

static

static RPropertyTypeId RToleranceEntity::PropertyLinetypeScale

static

static RPropertyTypeId RToleranceEntity::PropertyLineweight

static

static RPropertyTypeId RToleranceEntity::PropertyLocationX

static

static RPropertyTypeId RToleranceEntity::PropertyLocationY

static

static RPropertyTypeId RToleranceEntity::PropertyLocationZ

static

static RPropertyTypeId RToleranceEntity::PropertyProtected

static

static RPropertyTypeId RToleranceEntity::PropertyText

static

static RPropertyTypeId RToleranceEntity::PropertyType

static

static RPropertyTypeId RToleranceEntity::PropertyWorkingSet

static

virtual void RToleranceEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RToleranceData RToleranceEntity::data

protected