20#ifndef RTOLERANCEENTITY_H
21#define RTOLERANCEENTITY_H
96 virtual QSharedPointer<RObject>
clone()
const {
106 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
108 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
127 return data.getLocation();
131 data.setDirection(p);
135 return data.getDirection();
143 return data.getText();
147 return data.getDimtxt(
scale);
155 return data.getDimscale();
163 return data.getExploded();
169 return data.getTextLabels();
173 return data.getFrame();
177 return data.getRows();
181 data.clearStyleOverrides();
185 virtual void print(QDebug dbg)
const;
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Base class for all entity classes.
Definition REntity.h:63
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition REntity.cpp:236
static void init()
Definition REntity.cpp:89
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition REntity.cpp:338
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition REntity.cpp:487
Abstract base class for exporters.
Definition RExporter.h:78
Low-level mathematical representation of a line.
Definition RLine.h:41
Abstract base class for all objects.
Definition RObject.h:64
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyAttributes.h:42
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
static QSet< RPropertyTypeId > getPropertyTypeIds(RS::EntityType type, RPropertyAttributes::Option=RPropertyAttributes::NoOptions)
Gets all property type IDs that where registered for the given class.
Definition RPropertyTypeId.cpp:283
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ EntityTolerance
Tolerance.
Definition RS.h:278
Interface for geometrical shape classes.
Definition RShape.h:72
Text entity data class.
Definition RTextData.h:38
Tolerance entity data class.
Definition RToleranceData.h:45
Tolerance entity class.
Definition RToleranceEntity.h:53
void setLocation(const RVector &l)
Definition RToleranceEntity.h:122
static RPropertyTypeId PropertyLocationX
Definition RToleranceEntity.h:71
QSharedPointer< RToleranceEntity > cloneToToleranceEntity() const
Definition RToleranceEntity.h:100
void setText(const QString &t)
Definition RToleranceEntity.h:138
RVector getLocation() const
Definition RToleranceEntity.h:126
static RPropertyTypeId PropertyProtected
Definition RToleranceEntity.h:59
static RPropertyTypeId PropertyDimscale
Definition RToleranceEntity.h:78
static RPropertyTypeId PropertyLinetypeScale
Definition RToleranceEntity.h:65
static RPropertyTypeId PropertyDimtxt
Definition RToleranceEntity.h:79
static RPropertyTypeId PropertyDisplayedColor
Definition RToleranceEntity.h:68
void setDimscale(double v)
Definition RToleranceEntity.h:158
static RPropertyTypeId PropertyDirectionX
Definition RToleranceEntity.h:74
double getDimtxt(bool scale=true) const
Definition RToleranceEntity.h:146
static RPropertyTypeId PropertyHandle
Definition RToleranceEntity.h:58
void setData(RToleranceData &d)
Definition RToleranceEntity.h:114
static RPropertyTypeId PropertyColor
Definition RToleranceEntity.h:67
static RPropertyTypeId PropertyBlock
Definition RToleranceEntity.h:62
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RToleranceEntity.h:92
static RPropertyTypeId PropertyDirectionZ
Definition RToleranceEntity.h:76
static RPropertyTypeId PropertyLayer
Definition RToleranceEntity.h:63
static RPropertyTypeId PropertyType
Definition RToleranceEntity.h:61
void clearStyleOverrides()
Definition RToleranceEntity.h:180
void setDimtxt(double v)
Definition RToleranceEntity.h:150
QString getText() const
Definition RToleranceEntity.h:142
virtual QSharedPointer< RObject > clone() const
Definition RToleranceEntity.h:96
static RS::EntityType getRtti()
Definition RToleranceEntity.h:88
RVector getDirection() const
Definition RToleranceEntity.h:134
QList< RTextData > getTextLabels() const
Definition RToleranceEntity.h:168
QList< RLine > getFrame() const
Definition RToleranceEntity.h:172
static RPropertyTypeId PropertyWorkingSet
Definition RToleranceEntity.h:60
static RPropertyTypeId PropertyLineweight
Definition RToleranceEntity.h:66
int getRows() const
Definition RToleranceEntity.h:176
virtual const RToleranceData & getData() const
Definition RToleranceEntity.h:118
QList< QSharedPointer< RShape > > getExploded() const
Definition RToleranceEntity.h:162
void setDirection(const RVector &p)
Definition RToleranceEntity.h:130
double getDimscale() const
Definition RToleranceEntity.h:154
static RPropertyTypeId PropertyDrawOrder
Definition RToleranceEntity.h:69
static RPropertyTypeId PropertyText
Definition RToleranceEntity.h:77
virtual RToleranceData & getData()
Definition RToleranceEntity.h:110
static RPropertyTypeId PropertyLocationY
Definition RToleranceEntity.h:72
static RPropertyTypeId PropertyLocationZ
Definition RToleranceEntity.h:73
static RPropertyTypeId PropertyDirectionY
Definition RToleranceEntity.h:75
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RToleranceEntity.h:57
RToleranceData data
Definition RToleranceEntity.h:188
static RPropertyTypeId PropertyLinetype
Definition RToleranceEntity.h:64
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADENTITY_EXPORT
Definition entity_global.h:10
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition simple_modify.js:15
#define NULL
Definition opennurbs_system.h:256