|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RHATCHENTITY_H
21 #define RHATCHENTITY_H
87 return data.hasCustomPattern();
91 return data.getCustomPattern();
95 data.setCustomPattern(p);
100 bool setBoundaryVector(
RObject::XYZ xyz,
const QVariant& value,
bool condition);
103 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
105 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
117 QList<RPainterPath>
getPainterPaths(
bool draft =
false,
double pixelSizeHint = 0.0)
const {
118 return data.getPainterPaths(draft, pixelSizeHint);
122 return data.getComplexity();
130 data.addBoundary(shape);
134 return data.getLoopCount();
138 return data.isSolid();
146 return data.getScale();
154 return data.getAngle();
162 return data.getOriginPoint();
166 data.setOriginPoint(op);
170 return data.getPatternName();
174 data.setPatternName(n);
178 return data.getTransparency();
182 data.setTransparency(t);
186 data.clearCustomPattern();
190 return data.getLoopBoundary(index);
194 return data.getBoundaryAsPolylines(segmentLength);
197 virtual QList<QSharedPointer<RShape> >
getShapes(
const RBox& queryBox =
RDEFAULT_RBOX,
bool ignoreComplex =
false,
bool segment =
false)
const {
198 return data.getShapes(queryBox, ignoreComplex, segment);
202 return data.getExploded();
208 virtual void print(QDebug dbg)
const;
void clearCustomPattern()
Definition: RHatchEntity.h:185
static RPropertyTypeId PropertyPatternName
Definition: RHatchEntity.h:58
XYZ
Definition: RObject.h:79
static RPropertyTypeId PropertyLinetype
Definition: RHatchEntity.h:48
static RPropertyTypeId PropertyDrawOrder
Definition: RHatchEntity.h:53
void addBoundary(QSharedPointer< RShape > shape)
Definition: RHatchEntity.h:129
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RHatchData.h:44
static RPropertyTypeId PropertyLineweight
Definition: RHatchEntity.h:50
int getTransparency() const
Definition: RHatchEntity.h:177
static RPropertyTypeId PropertySolid
Definition: RHatchEntity.h:55
QString getPatternName() const
Definition: RHatchEntity.h:169
RVector getOriginPoint() const
Definition: RHatchEntity.h:161
void setData(RHatchData &d)
Definition: RHatchEntity.h:82
virtual int getComplexity() const
Definition: RHatchEntity.h:121
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false) const
Definition: RHatchEntity.h:197
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
bool hasCustomPattern() const
Definition: RHatchEntity.h:86
virtual const RHatchData & getData() const
Definition: RHatchEntity.h:113
static RPropertyTypeId PropertyTransparency
Definition: RHatchEntity.h:56
void setTransparency(int t)
Definition: RHatchEntity.h:181
static RPropertyTypeId PropertyScaleFactor
Definition: RHatchEntity.h:60
static RPropertyTypeId PropertyOriginY
Definition: RHatchEntity.h:64
RHatchData data
Definition: RHatchEntity.h:211
QList< RPainterPath > getPainterPaths(bool draft=false, double pixelSizeHint=0.0) const
Definition: RHatchEntity.h:117
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RViewportData.h:40
QList< RPolyline > getBoundaryAsPolylines(double segmentLength) const
Definition: RHatchEntity.h:193
#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.
static RPropertyTypeId PropertyOriginX
Definition: RHatchEntity.h:63
static RPropertyTypeId PropertyWorkingSet
Definition: RHatchEntity.h:44
void setCustomPattern(const RPattern &p)
Definition: RHatchEntity.h:94
RPattern getCustomPattern() const
Definition: RHatchEntity.h:90
void setOriginPoint(const RVector &op)
Definition: RHatchEntity.h:165
Base class for all entity classes.
Definition: REntity.h:65
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPattern.h:44
virtual void setViewportContext(const RViewportData &)
Definition: REntity.h:576
static RPropertyTypeId PropertyLayer
Definition: RHatchEntity.h:47
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
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RHatchEntity.h:41
Point entity.
Definition: RHatchEntity.h:38
void setAngle(double a)
Definition: RHatchEntity.h:157
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
double getScale() const
Definition: RHatchEntity.h:145
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
static RPropertyTypeId PropertyBlock
Definition: RHatchEntity.h:46
static RPropertyTypeId PropertyVertexNZ
Definition: RHatchEntity.h:68
QList< QSharedPointer< RShape > > getLoopBoundary(int index) const
Definition: RHatchEntity.h:189
static RPropertyTypeId PropertyVertexNX
Definition: RHatchEntity.h:66
static RPropertyTypeId PropertyVertexNY
Definition: RHatchEntity.h:67
static RPropertyTypeId PropertyLinetypeScale
Definition: RHatchEntity.h:49
static RPropertyTypeId PropertyProtected
Definition: RHatchEntity.h:43
virtual REntity * clone() const =0
static RPropertyTypeId PropertyDisplayedColor
Definition: RHatchEntity.h:52
static RPropertyTypeId PropertyEntityPattern
Definition: RHatchEntity.h:59
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: REntity.cpp:230
#define RDEFAULT_RBOX
Definition: RBox.h:32
void setScale(double s)
Definition: RHatchEntity.h:149
int getLoopCount() const
Definition: RHatchEntity.h:133
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
void setPatternName(const QString &n)
Definition: RHatchEntity.h:173
virtual RHatchData & getData()
Definition: RHatchEntity.h:109
void setSolid(bool on)
Definition: RHatchEntity.h:141
virtual QList< QSharedPointer< RShape > > getExploded() const
Definition: RHatchEntity.h:201
Represents a box e.g.
Definition: RBox.h:43
bool isSolid() const
Definition: RHatchEntity.h:137
static RPropertyTypeId PropertyHandle
Definition: RHatchEntity.h:42
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RHatchEntity.h:76
void newLoop()
Definition: RHatchEntity.h:125
static RPropertyTypeId PropertyAngle
Definition: RHatchEntity.h:61
static RPropertyTypeId PropertyColor
Definition: RHatchEntity.h:51
static RPropertyTypeId PropertyType
Definition: RHatchEntity.h:45
double getAngle() const
Definition: RHatchEntity.h:153