Skip to content

RFaceEntity

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

Face entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RFaceEntity(RDocument *document, const RFaceData &data)
virtual ~RFaceEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RFaceEntity > cloneToFaceEntity() const
int countVertices() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
virtual RFaceData & getData()
virtual const RFaceData & getData() const
double getDirection1() const
double getDirection2() const
RVector getEndPoint() const
QList< QSharedPointer< RShape > > getExploded() 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.
RFaceData data

RFaceEntity::RFaceEntity(RDocument *document, const RFaceData &data)

virtual RFaceEntity::~RFaceEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RFaceEntity > RFaceEntity::cloneToFaceEntity() const

inline const

int RFaceEntity::countVertices() const

inline const

virtual void RFaceEntity::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 RFaceData & RFaceEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RFaceData & RFaceEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RFaceEntity::getDirection1() const

inline const

double RFaceEntity::getDirection2() const

inline const

RVector RFaceEntity::getEndPoint() const

inline const

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

inline const

double RFaceEntity::getLength() const

inline const

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

inline const

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

inline

RVector RFaceEntity::getVertexAt(int i) const

inline const

bool RFaceEntity::reverse()

inline

virtual bool RFaceEntity::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 RFaceEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

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

inline

static RS::EntityType RFaceEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RFaceEntity::getStaticPropertyTypeIds()

static inline

static void RFaceEntity::init()

static

static RPropertyTypeId RFaceEntity::PropertyBlock

static

static RPropertyTypeId RFaceEntity::PropertyColor

static

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

static

static RPropertyTypeId RFaceEntity::PropertyDrawOrder

static

static RPropertyTypeId RFaceEntity::PropertyHandle

static

static RPropertyTypeId RFaceEntity::PropertyLayer

static

static RPropertyTypeId RFaceEntity::PropertyLength

static

static RPropertyTypeId RFaceEntity::PropertyLinetype

static

static RPropertyTypeId RFaceEntity::PropertyLinetypeScale

static

static RPropertyTypeId RFaceEntity::PropertyLineweight

static

static RPropertyTypeId RFaceEntity::PropertyPoint1X

static

static RPropertyTypeId RFaceEntity::PropertyPoint1Y

static

static RPropertyTypeId RFaceEntity::PropertyPoint1Z

static

static RPropertyTypeId RFaceEntity::PropertyPoint2X

static

static RPropertyTypeId RFaceEntity::PropertyPoint2Y

static

static RPropertyTypeId RFaceEntity::PropertyPoint2Z

static

static RPropertyTypeId RFaceEntity::PropertyPoint3X

static

static RPropertyTypeId RFaceEntity::PropertyPoint3Y

static

static RPropertyTypeId RFaceEntity::PropertyPoint3Z

static

static RPropertyTypeId RFaceEntity::PropertyPoint4X

static

static RPropertyTypeId RFaceEntity::PropertyPoint4Y

static

static RPropertyTypeId RFaceEntity::PropertyPoint4Z

static

static RPropertyTypeId RFaceEntity::PropertyProtected

static

static RPropertyTypeId RFaceEntity::PropertyTotalLength

static

static RPropertyTypeId RFaceEntity::PropertyType

static

static RPropertyTypeId RFaceEntity::PropertyWorkingSet

static

virtual void RFaceEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RFaceData RFaceEntity::data

protected