Skip to content

RLeaderEntity

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

Leader entity class.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RLeaderEntity(const RLeaderEntity &other)
RLeaderEntity(RDocument *document, const RLeaderData &data)
virtual ~RLeaderEntity()
void appendVertex(const RVector &vertex, double bulge=0.0)
void clear()
void clearStyleOverrides()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RLeaderEntity > cloneToLeaderEntity() const
int countSegments() const
int countVertices() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
double getBulgeAt(int i) const
int getClosestSegment(const RVector &point) const
virtual RLeaderData & getData()
virtual const RLeaderData & getData() const
double getDimasz(bool scale=true) const
RObject::Id getDimLeaderBlockId() const
double getDimscale() const
double getDirection1() const
double getDirection2() const
RVector getEndPoint() const
QList< QSharedPointer< RShape > > getExploded() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
QSharedPointer< RShape > getSegmentAt(int i) const
RVector getStartPoint() const
RVector getVertexAt(int i) const
bool hasArrowHead() const
void insertVertex(int index, const RVector &vertex)
void insertVertexAt(const RVector &vertex)
bool isClosed() const
bool isSplineShaped() const
void normalize()
void prependVertex(const RVector &vertex, double bulge=0.0)
void removeLastVertex()
void removeVertex(int index)
bool reverse()
void setArrowHead(bool on)
void setBulgeAt(int i, double b)
void setClosed(bool on)
void setData(RLeaderData &d)
void setDimasz(double v)
void setDimLeaderBlockId(RObject::Id id)
void setDimscale(double v)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setSplineShaped(bool on)
void setVertexAt(int i, const RVector &v)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyArrowHead
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDimasz
static RPropertyTypeId PropertyDimLeaderBlock
static RPropertyTypeId PropertyDimscale
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLength
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertySplineShaped
static RPropertyTypeId PropertyTotalLength
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyVertexNX
static RPropertyTypeId PropertyVertexNY
static RPropertyTypeId PropertyVertexNZ
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RLeaderData data

RLeaderEntity::RLeaderEntity(const RLeaderEntity &other)

RLeaderEntity::RLeaderEntity(RDocument *document, const RLeaderData &data)

virtual RLeaderEntity::~RLeaderEntity()

virtual

void RLeaderEntity::appendVertex(const RVector &vertex, double bulge=0.0)

inline

void RLeaderEntity::clear()

inline

void RLeaderEntity::clearStyleOverrides()

inline

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RLeaderEntity > RLeaderEntity::cloneToLeaderEntity() const

inline const

int RLeaderEntity::countSegments() const

inline const

int RLeaderEntity::countVertices() const

inline const

virtual void RLeaderEntity::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 RLeaderEntity::getBulgeAt(int i) const

inline const

int RLeaderEntity::getClosestSegment(const RVector &point) const

inline const

virtual RLeaderData & RLeaderEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RLeaderData & RLeaderEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RLeaderEntity::getDimasz(bool scale=true) const

inline const

RObject::Id RLeaderEntity::getDimLeaderBlockId() const

inline const

double RLeaderEntity::getDimscale() const

inline const

double RLeaderEntity::getDirection1() const

inline const

double RLeaderEntity::getDirection2() const

inline const

RVector RLeaderEntity::getEndPoint() const

inline const

QList< QSharedPointer< RShape > > RLeaderEntity::getExploded() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RLeaderEntity::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.

QSharedPointer< RShape > RLeaderEntity::getSegmentAt(int i) const

inline const

RVector RLeaderEntity::getStartPoint() const

inline const

RVector RLeaderEntity::getVertexAt(int i) const

inline const

bool RLeaderEntity::hasArrowHead() const

inline const

void RLeaderEntity::insertVertex(int index, const RVector &vertex)

inline

void RLeaderEntity::insertVertexAt(const RVector &vertex)

inline

bool RLeaderEntity::isClosed() const

inline const

bool RLeaderEntity::isSplineShaped() const

inline const

void RLeaderEntity::normalize()

inline

void RLeaderEntity::prependVertex(const RVector &vertex, double bulge=0.0)

inline

void RLeaderEntity::removeLastVertex()

inline

void RLeaderEntity::removeVertex(int index)

inline

bool RLeaderEntity::reverse()

inline

void RLeaderEntity::setArrowHead(bool on)

inline

void RLeaderEntity::setBulgeAt(int i, double b)

inline

void RLeaderEntity::setClosed(bool on)

inline

void RLeaderEntity::setData(RLeaderData &d)

inline

void RLeaderEntity::setDimasz(double v)

inline

void RLeaderEntity::setDimLeaderBlockId(RObject::Id id)

inline

void RLeaderEntity::setDimscale(double v)

inline

virtual bool RLeaderEntity::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 RLeaderEntity::setSplineShaped(bool on)

inline

void RLeaderEntity::setVertexAt(int i, const RVector &v)

inline

static RS::EntityType RLeaderEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RLeaderEntity::getStaticPropertyTypeIds()

static inline

static void RLeaderEntity::init()

static

static RPropertyTypeId RLeaderEntity::PropertyArrowHead

static

static RPropertyTypeId RLeaderEntity::PropertyBlock

static

static RPropertyTypeId RLeaderEntity::PropertyColor

static

static RPropertyTypeId RLeaderEntity::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 RLeaderEntity::PropertyDimasz

static

static RPropertyTypeId RLeaderEntity::PropertyDimLeaderBlock

static

static RPropertyTypeId RLeaderEntity::PropertyDimscale

static

static RPropertyTypeId RLeaderEntity::PropertyDisplayedColor

static

static RPropertyTypeId RLeaderEntity::PropertyDrawOrder

static

static RPropertyTypeId RLeaderEntity::PropertyHandle

static

static RPropertyTypeId RLeaderEntity::PropertyLayer

static

static RPropertyTypeId RLeaderEntity::PropertyLength

static

static RPropertyTypeId RLeaderEntity::PropertyLinetype

static

static RPropertyTypeId RLeaderEntity::PropertyLinetypeScale

static

static RPropertyTypeId RLeaderEntity::PropertyLineweight

static

static RPropertyTypeId RLeaderEntity::PropertyProtected

static

static RPropertyTypeId RLeaderEntity::PropertySplineShaped

static

static RPropertyTypeId RLeaderEntity::PropertyTotalLength

static

static RPropertyTypeId RLeaderEntity::PropertyType

static

static RPropertyTypeId RLeaderEntity::PropertyVertexNX

static

static RPropertyTypeId RLeaderEntity::PropertyVertexNY

static

static RPropertyTypeId RLeaderEntity::PropertyVertexNZ

static

static RPropertyTypeId RLeaderEntity::PropertyWorkingSet

static

virtual void RLeaderEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RLeaderData RLeaderEntity::data

protected