|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RATTRIBUTEENTITY_H
21 #define RATTRIBUTEENTITY_H
107 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
109 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
114 return data.getTag();
122 return data.isInvisible();
126 data.setInvisible(
i);
130 virtual void print(QDebug dbg)
const;
void setInvisible(bool i)
Definition: RAttributeEntity.h:125
static RPropertyTypeId PropertyLayer
Definition: RAttributeEntity.h:50
Stores and manages all data that defines the geometry and appearance of a block attribute entity.
Definition: RAttributeData.h:42
static RPropertyTypeId PropertyLinetype
Definition: RAttributeEntity.h:51
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition: RTextBasedEntity.cpp:234
void setTag(const QString &t)
Definition: RAttributeEntity.h:117
static RPropertyTypeId PropertyBold
Definition: RAttributeEntity.h:60
static void init()
Definition: RTextBasedEntity.cpp:61
virtual RAttributeEntity * clone() const
Definition: RAttributeEntity.h:88
static RPropertyTypeId PropertyInvisible
Definition: RAttributeEntity.h:74
static RPropertyTypeId PropertyPositionY
Definition: RAttributeEntity.h:68
static RPropertyTypeId PropertyBackward
Definition: RAttributeEntity.h:75
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: RTextBasedEntity.cpp:153
static RPropertyTypeId PropertyLinetypeScale
Definition: RAttributeEntity.h:52
static RPropertyTypeId PropertyXScale
Definition: RAttributeEntity.h:59
Attribute entity.
Definition: RAttributeEntity.h:39
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: autostart.js:49
static RPropertyTypeId PropertyVAlign
Definition: RAttributeEntity.h:73
static RPropertyTypeId PropertyWidth
Definition: RAttributeEntity.h:64
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
Definition: RTextBasedEntity.cpp:200
static RPropertyTypeId PropertyLineSpacingFactor
Definition: RAttributeEntity.h:66
bool isInvisible() const
Definition: RAttributeEntity.h:121
RAttributeData data
Definition: RAttributeEntity.h:133
static RPropertyTypeId PropertyType
Definition: RAttributeEntity.h:48
static RPropertyTypeId PropertyUpsideDown
Definition: RAttributeEntity.h:76
Q_DECLARE_METATYPE(RMath *)
static RPropertyTypeId PropertyText
Definition: RAttributeEntity.h:71
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RAttributeEntity.h:44
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:59
static RPropertyTypeId PropertyPlainText
Definition: RAttributeEntity.h:72
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition: RTextBasedEntity.cpp:94
static RPropertyTypeId PropertyHeight
Definition: RAttributeEntity.h:63
virtual const RAttributeData & getData() const
Definition: RAttributeEntity.h:96
static RPropertyTypeId PropertyPositionZ
Definition: RAttributeEntity.h:69
Abstract base class for exporters.
Definition: RExporter.h:72
static RPropertyTypeId PropertyWorkingSet
Definition: RAttributeEntity.h:47
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
static RPropertyTypeId PropertyItalic
Definition: RAttributeEntity.h:65
static RPropertyTypeId PropertyFontName
Definition: RAttributeEntity.h:61
static RPropertyTypeId PropertyProtected
Definition: RAttributeEntity.h:46
static RPropertyTypeId PropertyTag
Definition: RAttributeEntity.h:70
static RPropertyTypeId PropertyBlock
Definition: RAttributeEntity.h:49
QString getTag() const
Definition: RAttributeEntity.h:113
Text entity.
Definition: RTextBasedEntity.h:38
static RPropertyTypeId PropertyHAlign
Definition: RAttributeEntity.h:62
static RPropertyTypeId PropertyAngle
Definition: RAttributeEntity.h:58
static RPropertyTypeId PropertyLineweight
Definition: RAttributeEntity.h:53
static RPropertyTypeId PropertyPositionX
Definition: RAttributeEntity.h:67
Transaction implementation.
Definition: RTransaction.h:74
static RPropertyTypeId PropertyHandle
Definition: RAttributeEntity.h:45
static QSet< RPropertyTypeId > getPropertyTypeIds(const std::type_info &classInfo, RPropertyAttributes::Option=RPropertyAttributes::NoOptions)
Gets all property type IDs that where registered for the given class.
Definition: RPropertyTypeId.cpp:273
void setData(RAttributeData &d)
Definition: RAttributeEntity.h:100
virtual RAttributeData & getData()
Definition: RAttributeEntity.h:92
static RPropertyTypeId PropertyDrawOrder
Definition: RAttributeEntity.h:56
static RPropertyTypeId PropertyColor
Definition: RAttributeEntity.h:54
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RAttributeEntity.h:84
static RPropertyTypeId PropertyDisplayedColor
Definition: RAttributeEntity.h:55