33#define RDEFAULT_MIN1 -1
95 virtual QSharedPointer<RObject>
clone()
const {
100 return QSharedPointer<RHatchEntity>(
new RHatchEntity(*
this));
108 return data.hasCustomPattern();
112 return data.getCustomPattern();
116 data.setCustomPattern(p);
121 bool setBoundaryVector(
RObject::XYZ xyz,
const QVariant& value,
bool condition);
124 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
126 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
138 QList<RPainterPath>
getPainterPaths(
bool draft =
false,
double pixelSizeHint = 0.0)
const {
139 return data.getPainterPaths(draft, pixelSizeHint);
143 return data.getComplexity();
151 data.addBoundary(shape);
155 return data.getLoopCount();
159 return data.isSolid();
167 return data.isWinding();
175 return data.getAutoRegen();
179 data.setAutoRegen(on);
183 return data.getScale();
191 return data.getAngle();
199 return data.getOriginPoint();
203 data.setOriginPoint(op);
207 return data.getPatternName();
211 data.setPatternName(n);
215 return data.getTransparency();
219 data.setTransparency(t);
223 data.clearCustomPattern();
227 return data.getLoopBoundary(index);
231 return data.getBoundaryAsPolylines(segmentLength);
234 virtual QList<QSharedPointer<RShape> >
getShapes(
const RBox& queryBox =
RDEFAULT_RBOX,
bool ignoreComplex =
false,
bool segment =
false, QList<RObject::Id>* entityIds =
NULL)
const {
235 return data.getShapes(queryBox, ignoreComplex, segment);
239 return data.getExploded();
245 virtual void print(QDebug dbg)
const;
#define RDEFAULT_RBOX
Definition RBox.h:35
#define RDEFAULT_MIN1
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RExplodable.h:30
Q_DECLARE_METATYPE(RMath *)
Represents a box e.g.
Definition RBox.h:46
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
virtual void setViewportContext(const RViewportData &)
Definition REntity.h:592
Abstract base class for exporters.
Definition RExporter.h:78
Stores and manages all data that defines the geometry and appearance of a hatch or solid fill entity.
Definition RHatchData.h:51
Point entity.
Definition RHatchEntity.h:43
static RPropertyTypeId PropertyLinetype
Definition RHatchEntity.h:53
bool hasCustomPattern() const
Definition RHatchEntity.h:107
void setData(RHatchData &d)
Definition RHatchEntity.h:103
static RPropertyTypeId PropertyOriginX
Definition RHatchEntity.h:69
void setAngle(double a)
Definition RHatchEntity.h:194
void setWinding(bool on)
Definition RHatchEntity.h:170
static RPropertyTypeId PropertyEntityPattern
Definition RHatchEntity.h:65
static RPropertyTypeId PropertyWorkingSet
Definition RHatchEntity.h:49
QList< RPainterPath > getPainterPaths(bool draft=false, double pixelSizeHint=0.0) const
Definition RHatchEntity.h:138
QString getPatternName() const
Definition RHatchEntity.h:206
static RPropertyTypeId PropertyLineweight
Definition RHatchEntity.h:55
static RPropertyTypeId PropertyPatternName
Definition RHatchEntity.h:64
RPattern getCustomPattern() const
Definition RHatchEntity.h:111
bool getAutoRegen() const
Definition RHatchEntity.h:174
static RPropertyTypeId PropertyScaleFactor
Definition RHatchEntity.h:66
virtual RHatchData & getData()
Definition RHatchEntity.h:130
static RPropertyTypeId PropertyLength
Definition RHatchEntity.h:76
void setTransparency(int t)
Definition RHatchEntity.h:218
bool isSolid() const
Definition RHatchEntity.h:158
static RPropertyTypeId PropertyBlock
Definition RHatchEntity.h:51
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RHatchEntity.h:91
static RPropertyTypeId PropertyWinding
Definition RHatchEntity.h:61
static RPropertyTypeId PropertyType
Definition RHatchEntity.h:50
static RPropertyTypeId PropertyTotalLength
Definition RHatchEntity.h:77
QList< QSharedPointer< RShape > > getLoopBoundary(int index) const
Definition RHatchEntity.h:226
static RPropertyTypeId PropertySolid
Definition RHatchEntity.h:60
static RPropertyTypeId PropertyDisplayedColor
Definition RHatchEntity.h:57
int getTransparency() const
Definition RHatchEntity.h:214
static RPropertyTypeId PropertyAngle
Definition RHatchEntity.h:67
double getAngle() const
Definition RHatchEntity.h:190
static RPropertyTypeId PropertyProtected
Definition RHatchEntity.h:48
RVector getOriginPoint() const
Definition RHatchEntity.h:198
static RS::EntityType getRtti()
Definition RHatchEntity.h:87
void setAutoRegen(bool on)
Definition RHatchEntity.h:178
void setCustomPattern(const RPattern &p)
Definition RHatchEntity.h:115
int getLoopCount() const
Definition RHatchEntity.h:154
void clearCustomPattern()
Definition RHatchEntity.h:222
bool isWinding() const
Definition RHatchEntity.h:166
RHatchData data
Definition RHatchEntity.h:248
virtual QSharedPointer< RObject > clone() const
Definition RHatchEntity.h:95
static RPropertyTypeId PropertyTransparency
Definition RHatchEntity.h:62
QSharedPointer< RHatchEntity > cloneToHatchEntity() const
Definition RHatchEntity.h:99
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RHatchEntity.h:46
virtual QList< QSharedPointer< RShape > > getExploded() const
Definition RHatchEntity.h:238
static RPropertyTypeId PropertyLayer
Definition RHatchEntity.h:52
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const
Definition RHatchEntity.h:234
void setOriginPoint(const RVector &op)
Definition RHatchEntity.h:202
virtual int getComplexity() const
Definition RHatchEntity.h:142
void newLoop()
Definition RHatchEntity.h:146
static RPropertyTypeId PropertyLinetypeScale
Definition RHatchEntity.h:54
static RPropertyTypeId PropertyDrawOrder
Definition RHatchEntity.h:58
QList< RPolyline > getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) const
Definition RHatchEntity.h:230
double getScale() const
Definition RHatchEntity.h:182
static RPropertyTypeId PropertyTotalArea
Definition RHatchEntity.h:79
static RPropertyTypeId PropertyVertexNY
Definition RHatchEntity.h:73
static RPropertyTypeId PropertyVertexNX
Definition RHatchEntity.h:72
static RPropertyTypeId PropertyOriginY
Definition RHatchEntity.h:70
void addBoundary(QSharedPointer< RShape > shape)
Definition RHatchEntity.h:150
static RPropertyTypeId PropertyColor
Definition RHatchEntity.h:56
void setScale(double s)
Definition RHatchEntity.h:186
static RPropertyTypeId PropertyArea
Definition RHatchEntity.h:78
void setPatternName(const QString &n)
Definition RHatchEntity.h:210
static RPropertyTypeId PropertyVertexNZ
Definition RHatchEntity.h:74
void setSolid(bool on)
Definition RHatchEntity.h:162
virtual const RHatchData & getData() const
Definition RHatchEntity.h:134
static RPropertyTypeId PropertyHandle
Definition RHatchEntity.h:47
XYZ
Definition RObject.h:82
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPattern.h:38
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
@ EntityHatch
Hatch.
Definition RS.h:273
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
Stores and manages all data that defines the geometry and appearance of a viewport entity.
Definition RViewportData.h:53
#define QCADENTITY_EXPORT
Definition entity_global.h:10
char s
Definition opennurbs_string.cpp:32
#define NULL
Definition opennurbs_system.h:256