Skip to content

RTraceEntity

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

Trace entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RTraceEntity(RDocument *document, const RTraceData &data)
virtual ~RTraceEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RTraceEntity > cloneToTraceEntity() const
int countVertices() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
virtual RTraceData & getData()
virtual const RTraceData & getData() const
double getDirection1() const
double getDirection2() const
RVector getEndPoint() const
double getLength() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
RVector getStartPoint() const
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
RVector getVertexAt(int i) const
bool reverse()
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
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 PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
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 PropertyPoint1X
static RPropertyTypeId PropertyPoint1Y
static RPropertyTypeId PropertyPoint1Z
static RPropertyTypeId PropertyPoint2X
static RPropertyTypeId PropertyPoint2Y
static RPropertyTypeId PropertyPoint2Z
static RPropertyTypeId PropertyPoint3X
static RPropertyTypeId PropertyPoint3Y
static RPropertyTypeId PropertyPoint3Z
static RPropertyTypeId PropertyPoint4X
static RPropertyTypeId PropertyPoint4Y
static RPropertyTypeId PropertyPoint4Z
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyTotalLength
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RTraceData data

RTraceEntity::RTraceEntity(RDocument *document, const RTraceData &data)

virtual RTraceEntity::~RTraceEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RTraceEntity > RTraceEntity::cloneToTraceEntity() const

inline const

int RTraceEntity::countVertices() const

inline const

virtual void RTraceEntity::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.

virtual RTraceData & RTraceEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RTraceData & RTraceEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RTraceEntity::getDirection1() const

inline const

double RTraceEntity::getDirection2() const

inline const

RVector RTraceEntity::getEndPoint() const

inline const

double RTraceEntity::getLength() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RTraceEntity::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 RTraceEntity::getStartPoint() const

inline const

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

inline

RVector RTraceEntity::getVertexAt(int i) const

inline const

bool RTraceEntity::reverse()

inline

virtual bool RTraceEntity::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.

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

inline

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

inline

static RS::EntityType RTraceEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RTraceEntity::getStaticPropertyTypeIds()

static inline

static void RTraceEntity::init()

static

static RPropertyTypeId RTraceEntity::PropertyBlock

static

static RPropertyTypeId RTraceEntity::PropertyColor

static

static RPropertyTypeId RTraceEntity::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 RTraceEntity::PropertyDisplayedColor

static

static RPropertyTypeId RTraceEntity::PropertyDrawOrder

static

static RPropertyTypeId RTraceEntity::PropertyHandle

static

static RPropertyTypeId RTraceEntity::PropertyLayer

static

static RPropertyTypeId RTraceEntity::PropertyLength

static

static RPropertyTypeId RTraceEntity::PropertyLinetype

static

static RPropertyTypeId RTraceEntity::PropertyLinetypeScale

static

static RPropertyTypeId RTraceEntity::PropertyLineweight

static

static RPropertyTypeId RTraceEntity::PropertyPoint1X

static

static RPropertyTypeId RTraceEntity::PropertyPoint1Y

static

static RPropertyTypeId RTraceEntity::PropertyPoint1Z

static

static RPropertyTypeId RTraceEntity::PropertyPoint2X

static

static RPropertyTypeId RTraceEntity::PropertyPoint2Y

static

static RPropertyTypeId RTraceEntity::PropertyPoint2Z

static

static RPropertyTypeId RTraceEntity::PropertyPoint3X

static

static RPropertyTypeId RTraceEntity::PropertyPoint3Y

static

static RPropertyTypeId RTraceEntity::PropertyPoint3Z

static

static RPropertyTypeId RTraceEntity::PropertyPoint4X

static

static RPropertyTypeId RTraceEntity::PropertyPoint4Y

static

static RPropertyTypeId RTraceEntity::PropertyPoint4Z

static

static RPropertyTypeId RTraceEntity::PropertyProtected

static

static RPropertyTypeId RTraceEntity::PropertyTotalLength

static

static RPropertyTypeId RTraceEntity::PropertyType

static

static RPropertyTypeId RTraceEntity::PropertyWorkingSet

static

virtual void RTraceEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RTraceData RTraceEntity::data

protected