|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RIMAGEENTITY_H
21 #define RIMAGEENTITY_H
89 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
91 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
104 return data.getFileName();
108 data.setFileName(fn);
112 return data.getInsertionPoint();
116 data.setInsertionPoint(ip);
120 return data.getUVector();
124 return data.getVVector();
128 return data.getBrightness();
132 return data.getContrast();
136 return data.getFade();
140 data.setWidth(w, keepRatio);
144 data.setHeight(h, keepRatio);
152 return data.getWidth();
156 return data.getHeight();
160 return data.getPixelWidth();
164 return data.getPixelHeight();
168 virtual void print(QDebug dbg)
const;
static RPropertyTypeId PropertyFileName
Definition: RImageEntity.h:55
int getFade() const
Definition: RImageEntity.h:135
static RPropertyTypeId PropertyColor
Definition: RImageEntity.h:51
static RPropertyTypeId PropertyBlock
Definition: RImageEntity.h:46
void setWidth(double w, bool keepRatio=false)
Definition: RImageEntity.h:139
static RPropertyTypeId PropertyAngle
Definition: RImageEntity.h:67
int getBrightness() const
Definition: RImageEntity.h:127
static RPropertyTypeId PropertyScaleFactorY
Definition: RImageEntity.h:66
static RPropertyTypeId PropertyWorkingSet
Definition: RImageEntity.h:44
static RPropertyTypeId PropertyUY
Definition: RImageEntity.h:61
static RPropertyTypeId PropertyFade
Definition: RImageEntity.h:72
static RPropertyTypeId PropertyLayer
Definition: RImageEntity.h:47
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
static RPropertyTypeId PropertyInsertionPointY
Definition: RImageEntity.h:57
static RPropertyTypeId PropertyType
Definition: RImageEntity.h:45
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RImageData.h:41
RImageData data
Definition: RImageEntity.h:171
static RPropertyTypeId PropertyDrawOrder
Definition: RImageEntity.h:53
int getPixelWidth() const
Definition: RImageEntity.h:159
static RPropertyTypeId PropertyInsertionPointZ
Definition: RImageEntity.h:58
static RPropertyTypeId PropertyLineweight
Definition: RImageEntity.h:50
void setFileName(const QString &fn)
Definition: RImageEntity.h:107
double getHeight() const
Definition: RImageEntity.h:155
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
void setHeight(double h, bool keepRatio=false)
Definition: RImageEntity.h:143
void setAngle(double a)
Definition: RImageEntity.h:147
Base class for all entity classes.
Definition: REntity.h:65
RVector getVVector() const
Definition: RImageEntity.h:123
Q_DECLARE_METATYPE(RMath *)
static RPropertyTypeId PropertyScaleFactorX
Definition: RImageEntity.h:65
virtual RImageData & getData()
Definition: RImageEntity.h:95
int getPixelHeight() const
Definition: RImageEntity.h:163
static void init()
Definition: REntity.cpp:88
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition: REntity.cpp:455
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:59
void setInsertionPoint(const RVector &ip)
Definition: RImageEntity.h:115
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RImageEntity.h:41
Abstract base class for exporters.
Definition: RExporter.h:72
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition: REntity.cpp:323
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
virtual const RImageData & getData() const
Definition: RImageEntity.h:99
static RPropertyTypeId PropertyInsertionPointX
Definition: RImageEntity.h:56
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RImageEntity.h:81
static RPropertyTypeId PropertyLinetype
Definition: RImageEntity.h:48
static RPropertyTypeId PropertyUX
Definition: RImageEntity.h:60
static RPropertyTypeId PropertyVY
Definition: RImageEntity.h:63
static RPropertyTypeId PropertyProtected
Definition: RImageEntity.h:43
RVector getInsertionPoint() const
Definition: RImageEntity.h:111
QString getFileName() const
Definition: RImageEntity.h:103
virtual REntity * clone() const =0
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: REntity.cpp:230
int getContrast() const
Definition: RImageEntity.h:131
static RPropertyTypeId PropertyDisplayedColor
Definition: RImageEntity.h:52
Transaction implementation.
Definition: RTransaction.h:74
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
static RPropertyTypeId PropertyHeight
Definition: RImageEntity.h:70
static RPropertyTypeId PropertyVX
Definition: RImageEntity.h:62
RVector getUVector() const
Definition: RImageEntity.h:119
static RPropertyTypeId PropertyLinetypeScale
Definition: RImageEntity.h:49
double getWidth() const
Definition: RImageEntity.h:151
Point entity.
Definition: RImageEntity.h:38
static RPropertyTypeId PropertyWidth
Definition: RImageEntity.h:69
static RPropertyTypeId PropertyHandle
Definition: RImageEntity.h:42