Skip to content

RHatchEntity

Class in Entity Module
Header: #include <src/entity/RHatchEntity.h>
Inherits: REntity

Point entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RHatchEntity(RDocument *document, const RHatchData &data)
virtual ~RHatchEntity()
void addBoundary(QSharedPointer< RShape > shape)
void clearCustomPattern()
void clearGradient()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RHatchEntity > cloneToHatchEntity() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
double getAngle() const
bool getAutoRegen() const
QList< RPolyline > getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) const
virtual int getComplexity() const
RPattern getCustomPattern() const
virtual RHatchData & getData()
virtual const RHatchData & getData() const
virtual QList< QSharedPointer< RShape > > getExploded() const
double getGradientAngle() const
RColor getGradientColor1() const
RColor getGradientColor2() const
QString getGradientName() const
bool getGradientOneColorMode() const
double getGradientShift() const
double getGradientTint() const
QList< QSharedPointer< RShape > > getLoopBoundary(int index) const
int getLoopCount() const
RVector getOriginPoint() const
QList< RPainterPath > getPainterPaths(bool draft=false, double pixelSizeHint=0.0) const
QString getPatternName() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
double getScale() const
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const
int getTransparency() const
bool hasCustomPattern() const
bool isGradient() const
bool isSolid() const
bool isWinding() const
void newLoop()
void setAngle(double a)
void setAutoRegen(bool on)
bool setBoundaryVector(RObject::XYZ xyz, const QVariant &value, bool condition)
Sets some x, y or z components of some nodes.
RVector setComponent(const RVector &p, double v, RObject::XYZ xyz)
void setCustomPattern(const RPattern &p)
void setData(RHatchData &d)
void setGradientAngle(double a)
void setGradientColor1(const RColor &c)
void setGradientColor2(const RColor &c)
void setGradientName(const QString &n)
void setGradientOneColorMode(bool on)
void setGradientShift(double s)
void setGradientTint(double t)
void setOriginPoint(const RVector &op)
void setPatternName(const QString &n)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setScale(double s)
void setSolid(bool on)
void setTransparency(int t)
virtual void setViewportContext(const RViewportData &origin)
void setWinding(bool on)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyArea
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyEntityPattern
static RPropertyTypeId PropertyGradientAngle
static RPropertyTypeId PropertyGradientColor1
static RPropertyTypeId PropertyGradientColor2
static RPropertyTypeId PropertyGradientName
static RPropertyTypeId PropertyGradientOneColorMode
static RPropertyTypeId PropertyGradientShift
static RPropertyTypeId PropertyGradientTint
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLength
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyOriginX
static RPropertyTypeId PropertyOriginY
static RPropertyTypeId PropertyPatternName
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyScaleFactor
static RPropertyTypeId PropertySolid
static RPropertyTypeId PropertyTotalArea
static RPropertyTypeId PropertyTotalLength
static RPropertyTypeId PropertyTransparency
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyVertexNX
static RPropertyTypeId PropertyVertexNY
static RPropertyTypeId PropertyVertexNZ
static RPropertyTypeId PropertyWinding
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RHatchData data

RHatchEntity::RHatchEntity(RDocument *document, const RHatchData &data)

virtual RHatchEntity::~RHatchEntity()

virtual

void RHatchEntity::addBoundary(QSharedPointer< RShape > shape)

inline

void RHatchEntity::clearCustomPattern()

inline

void RHatchEntity::clearGradient()

inline

virtual QSharedPointer< RObject > RHatchEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RHatchEntity > RHatchEntity::cloneToHatchEntity() const

inline const

virtual void RHatchEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const

virtual const

Exports the entity to the given exporter.

The exporter might be a file exporter, a graphics scene or any other platform one can export entities to.

Reimplemented from exportEntity.

double RHatchEntity::getAngle() const

inline const

bool RHatchEntity::getAutoRegen() const

inline const

QList< RPolyline > RHatchEntity::getBoundaryAsPolylines(double segmentLength=RDEFAULT_MIN1) const

inline const

virtual int RHatchEntity::getComplexity() const

virtual inline const

Reimplemented from getComplexity.

RPattern RHatchEntity::getCustomPattern() const

inline const

virtual RHatchData & RHatchEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RHatchData & RHatchEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

virtual QList< QSharedPointer< RShape > > RHatchEntity::getExploded() const

virtual inline const

double RHatchEntity::getGradientAngle() const

inline const

RColor RHatchEntity::getGradientColor1() const

inline const

RColor RHatchEntity::getGradientColor2() const

inline const

QString RHatchEntity::getGradientName() const

inline const

bool RHatchEntity::getGradientOneColorMode() const

inline const

double RHatchEntity::getGradientShift() const

inline const

double RHatchEntity::getGradientTint() const

inline const

QList< QSharedPointer< RShape > > RHatchEntity::getLoopBoundary(int index) const

inline const

int RHatchEntity::getLoopCount() const

inline const

RVector RHatchEntity::getOriginPoint() const

inline const

QList< RPainterPath > RHatchEntity::getPainterPaths(bool draft=false, double pixelSizeHint=0.0) const

inline const

QString RHatchEntity::getPatternName() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RHatchEntity::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)

virtual

Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.

Reimplemented from getProperty.

double RHatchEntity::getScale() const

inline const

virtual QList< QSharedPointer< RShape > > RHatchEntity::getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const

virtual inline const

Returns: Shapes that represent the geometry of this entity.

Parameters:

  • queryBox: Limit returned shapes to query box
  • ignoreComplex: Ignore complex shapes and explode those into simple shapes
  • segment: Split up splines into spline segments

Reimplemented from getShapes.

int RHatchEntity::getTransparency() const

inline const

bool RHatchEntity::hasCustomPattern() const

inline const

bool RHatchEntity::isGradient() const

inline const

bool RHatchEntity::isSolid() const

inline const

bool RHatchEntity::isWinding() const

inline const

void RHatchEntity::newLoop()

inline

void RHatchEntity::setAngle(double a)

inline

void RHatchEntity::setAutoRegen(bool on)

inline

bool RHatchEntity::setBoundaryVector(RObject::XYZ xyz, const QVariant &value, bool condition)

Sets some x, y or z components of some nodes.

Parameters:

  • value: list of values to change in format QList<QPair<int, double> > >

RVector RHatchEntity::setComponent(const RVector &p, double v, RObject::XYZ xyz)

void RHatchEntity::setCustomPattern(const RPattern &p)

inline

void RHatchEntity::setData(RHatchData &d)

inline

void RHatchEntity::setGradientAngle(double a)

inline

void RHatchEntity::setGradientColor1(const RColor &c)

inline

void RHatchEntity::setGradientColor2(const RColor &c)

inline

void RHatchEntity::setGradientName(const QString &n)

inline

void RHatchEntity::setGradientOneColorMode(bool on)

inline

void RHatchEntity::setGradientShift(double s)

inline

void RHatchEntity::setGradientTint(double t)

inline

void RHatchEntity::setOriginPoint(const RVector &op)

inline

void RHatchEntity::setPatternName(const QString &n)

inline

virtual bool RHatchEntity::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)

virtual

Sets the given property to the given value.

If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.

Returns: True if the property owner was modified in any way, false otherwise.

Reimplemented from setProperty.

void RHatchEntity::setScale(double s)

inline

void RHatchEntity::setSolid(bool on)

inline

void RHatchEntity::setTransparency(int t)

inline

virtual void RHatchEntity::setViewportContext(const RViewportData &origin)

virtual

Reimplemented from setViewportContext.

void RHatchEntity::setWinding(bool on)

inline

static RS::EntityType RHatchEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RHatchEntity::getStaticPropertyTypeIds()

static inline

static void RHatchEntity::init()

static

static RPropertyTypeId RHatchEntity::PropertyAngle

static

static RPropertyTypeId RHatchEntity::PropertyArea

static

static RPropertyTypeId RHatchEntity::PropertyBlock

static

static RPropertyTypeId RHatchEntity::PropertyColor

static

static RPropertyTypeId RHatchEntity::PropertyCustom

static

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

static RPropertyTypeId RHatchEntity::PropertyDisplayedColor

static

static RPropertyTypeId RHatchEntity::PropertyDrawOrder

static

static RPropertyTypeId RHatchEntity::PropertyEntityPattern

static

static RPropertyTypeId RHatchEntity::PropertyGradientAngle

static

static RPropertyTypeId RHatchEntity::PropertyGradientColor1

static

static RPropertyTypeId RHatchEntity::PropertyGradientColor2

static

static RPropertyTypeId RHatchEntity::PropertyGradientName

static

static RPropertyTypeId RHatchEntity::PropertyGradientOneColorMode

static

static RPropertyTypeId RHatchEntity::PropertyGradientShift

static

static RPropertyTypeId RHatchEntity::PropertyGradientTint

static

static RPropertyTypeId RHatchEntity::PropertyHandle

static

static RPropertyTypeId RHatchEntity::PropertyLayer

static

static RPropertyTypeId RHatchEntity::PropertyLength

static

static RPropertyTypeId RHatchEntity::PropertyLinetype

static

static RPropertyTypeId RHatchEntity::PropertyLinetypeScale

static

static RPropertyTypeId RHatchEntity::PropertyLineweight

static

static RPropertyTypeId RHatchEntity::PropertyOriginX

static

static RPropertyTypeId RHatchEntity::PropertyOriginY

static

static RPropertyTypeId RHatchEntity::PropertyPatternName

static

static RPropertyTypeId RHatchEntity::PropertyProtected

static

static RPropertyTypeId RHatchEntity::PropertyScaleFactor

static

static RPropertyTypeId RHatchEntity::PropertySolid

static

static RPropertyTypeId RHatchEntity::PropertyTotalArea

static

static RPropertyTypeId RHatchEntity::PropertyTotalLength

static

static RPropertyTypeId RHatchEntity::PropertyTransparency

static

static RPropertyTypeId RHatchEntity::PropertyType

static

static RPropertyTypeId RHatchEntity::PropertyVertexNX

static

static RPropertyTypeId RHatchEntity::PropertyVertexNY

static

static RPropertyTypeId RHatchEntity::PropertyVertexNZ

static

static RPropertyTypeId RHatchEntity::PropertyWinding

static

static RPropertyTypeId RHatchEntity::PropertyWorkingSet

static

virtual void RHatchEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RHatchData RHatchEntity::data

protected