Skip to content

RXLineEntity

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

Infinite line entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RXLineEntity(RDocument *document, const RXLineData &data)
virtual ~RXLineEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RXLineEntity > cloneToXLineEntity() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
double getAngle() const
RVector getBasePoint() const
virtual RXLineData & getData()
virtual const RXLineData & getData() const
double getDirection1() const
double getDirection2() const
RVector getDirectionVector() const
double getLength() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
RVector getSecondPoint() const
RS::Side getSideOfPoint(const RVector &point) const
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
bool hasFixedAngle() const
bool reverse()
void setBasePoint(const RVector &p)
void setDirectionVectorPoint(const RVector &v)
void setFixedAngle(bool on)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setSecondPoint(const RVector &p)
void setShape(const RXLine &l)
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyBasePointX
static RPropertyTypeId PropertyBasePointY
static RPropertyTypeId PropertyBasePointZ
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDirectionX
static RPropertyTypeId PropertyDirectionY
static RPropertyTypeId PropertyDirectionZ
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFixedAngle
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertySecondPointX
static RPropertyTypeId PropertySecondPointY
static RPropertyTypeId PropertySecondPointZ
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RXLineData data

RXLineEntity::RXLineEntity(RDocument *document, const RXLineData &data)

virtual RXLineEntity::~RXLineEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RXLineEntity > RXLineEntity::cloneToXLineEntity() const

inline const

virtual void RXLineEntity::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 RXLineEntity::getAngle() const

inline const

RVector RXLineEntity::getBasePoint() const

inline const

virtual RXLineData & RXLineEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RXLineData & RXLineEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RXLineEntity::getDirection1() const

inline const

double RXLineEntity::getDirection2() const

inline const

RVector RXLineEntity::getDirectionVector() const

inline const

double RXLineEntity::getLength() const

inline const

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

RVector RXLineEntity::getSecondPoint() const

inline const

RS::Side RXLineEntity::getSideOfPoint(const RVector &point) const

inline const

RS::Ending RXLineEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)

inline

bool RXLineEntity::hasFixedAngle() const

inline const

bool RXLineEntity::reverse()

inline

void RXLineEntity::setBasePoint(const RVector &p)

inline

void RXLineEntity::setDirectionVectorPoint(const RVector &v)

inline

void RXLineEntity::setFixedAngle(bool on)

inline

virtual bool RXLineEntity::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 RXLineEntity::setSecondPoint(const RVector &p)

inline

void RXLineEntity::setShape(const RXLine &l)

bool RXLineEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

bool RXLineEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

static RS::EntityType RXLineEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RXLineEntity::getStaticPropertyTypeIds()

static inline

static void RXLineEntity::init()

static

static RPropertyTypeId RXLineEntity::PropertyAngle

static

static RPropertyTypeId RXLineEntity::PropertyBasePointX

static

static RPropertyTypeId RXLineEntity::PropertyBasePointY

static

static RPropertyTypeId RXLineEntity::PropertyBasePointZ

static

static RPropertyTypeId RXLineEntity::PropertyBlock

static

static RPropertyTypeId RXLineEntity::PropertyColor

static

static RPropertyTypeId RXLineEntity::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 RXLineEntity::PropertyDirectionX

static

static RPropertyTypeId RXLineEntity::PropertyDirectionY

static

static RPropertyTypeId RXLineEntity::PropertyDirectionZ

static

static RPropertyTypeId RXLineEntity::PropertyDisplayedColor

static

static RPropertyTypeId RXLineEntity::PropertyDrawOrder

static

static RPropertyTypeId RXLineEntity::PropertyFixedAngle

static

static RPropertyTypeId RXLineEntity::PropertyHandle

static

static RPropertyTypeId RXLineEntity::PropertyLayer

static

static RPropertyTypeId RXLineEntity::PropertyLinetype

static

static RPropertyTypeId RXLineEntity::PropertyLinetypeScale

static

static RPropertyTypeId RXLineEntity::PropertyLineweight

static

static RPropertyTypeId RXLineEntity::PropertyProtected

static

static RPropertyTypeId RXLineEntity::PropertySecondPointX

static

static RPropertyTypeId RXLineEntity::PropertySecondPointY

static

static RPropertyTypeId RXLineEntity::PropertySecondPointZ

static

static RPropertyTypeId RXLineEntity::PropertyType

static

static RPropertyTypeId RXLineEntity::PropertyWorkingSet

static

virtual void RXLineEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RXLineData RXLineEntity::data

protected