RFaceEntity
Class in Entity Module
Header: #include <src/entity/RFaceEntity.h>
Inherits: REntity
Description
Section titled “Description”Face entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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) constExports 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 Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RFaceData | data |
Member Documentation
Section titled “Member Documentation”RFaceEntity
Section titled “RFaceEntity”RFaceEntity::RFaceEntity(RDocument *document, const RFaceData &data)~RFaceEntity
Section titled “~RFaceEntity”virtual RFaceEntity::~RFaceEntity()virtual
virtual QSharedPointer< RObject > RFaceEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToFaceEntity
Section titled “cloneToFaceEntity”QSharedPointer< RFaceEntity > RFaceEntity::cloneToFaceEntity() constinline const
countVertices
Section titled “countVertices”int RFaceEntity::countVertices() constinline const
exportEntity
Section titled “exportEntity”virtual void RFaceEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constvirtual 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.
getData
Section titled “getData”virtual RFaceData & RFaceEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RFaceData & RFaceEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDirection1
Section titled “getDirection1”double RFaceEntity::getDirection1() constinline const
getDirection2
Section titled “getDirection2”double RFaceEntity::getDirection2() constinline const
getEndPoint
Section titled “getEndPoint”RVector RFaceEntity::getEndPoint() constinline const
getExploded
Section titled “getExploded”QList< QSharedPointer< RShape > > RFaceEntity::getExploded() constinline const
getLength
Section titled “getLength”double RFaceEntity::getLength() constinline const
getProperty
Section titled “getProperty”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.
getStartPoint
Section titled “getStartPoint”RVector RFaceEntity::getStartPoint() constinline const
getTrimEnd
Section titled “getTrimEnd”RS::Ending RFaceEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)inline
getVertexAt
Section titled “getVertexAt”RVector RFaceEntity::getVertexAt(int i) constinline const
reverse
Section titled “reverse”bool RFaceEntity::reverse()inline
setProperty
Section titled “setProperty”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.
trimEndPoint
Section titled “trimEndPoint”bool RFaceEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
trimStartPoint
Section titled “trimStartPoint”bool RFaceEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
getRtti
Section titled “getRtti”static RS::EntityType RFaceEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RFaceEntity::getStaticPropertyTypeIds()static inline
static void RFaceEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RFaceEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RFaceEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RFaceEntity::PropertyCustomstatic
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.
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RFaceEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RFaceEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RFaceEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RFaceEntity::PropertyLayerstatic
PropertyLength
Section titled “PropertyLength”static RPropertyTypeId RFaceEntity::PropertyLengthstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RFaceEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RFaceEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RFaceEntity::PropertyLineweightstatic
PropertyPoint1X
Section titled “PropertyPoint1X”static RPropertyTypeId RFaceEntity::PropertyPoint1Xstatic
PropertyPoint1Y
Section titled “PropertyPoint1Y”static RPropertyTypeId RFaceEntity::PropertyPoint1Ystatic
PropertyPoint1Z
Section titled “PropertyPoint1Z”static RPropertyTypeId RFaceEntity::PropertyPoint1Zstatic
PropertyPoint2X
Section titled “PropertyPoint2X”static RPropertyTypeId RFaceEntity::PropertyPoint2Xstatic
PropertyPoint2Y
Section titled “PropertyPoint2Y”static RPropertyTypeId RFaceEntity::PropertyPoint2Ystatic
PropertyPoint2Z
Section titled “PropertyPoint2Z”static RPropertyTypeId RFaceEntity::PropertyPoint2Zstatic
PropertyPoint3X
Section titled “PropertyPoint3X”static RPropertyTypeId RFaceEntity::PropertyPoint3Xstatic
PropertyPoint3Y
Section titled “PropertyPoint3Y”static RPropertyTypeId RFaceEntity::PropertyPoint3Ystatic
PropertyPoint3Z
Section titled “PropertyPoint3Z”static RPropertyTypeId RFaceEntity::PropertyPoint3Zstatic
PropertyPoint4X
Section titled “PropertyPoint4X”static RPropertyTypeId RFaceEntity::PropertyPoint4Xstatic
PropertyPoint4Y
Section titled “PropertyPoint4Y”static RPropertyTypeId RFaceEntity::PropertyPoint4Ystatic
PropertyPoint4Z
Section titled “PropertyPoint4Z”static RPropertyTypeId RFaceEntity::PropertyPoint4Zstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RFaceEntity::PropertyProtectedstatic
PropertyTotalLength
Section titled “PropertyTotalLength”static RPropertyTypeId RFaceEntity::PropertyTotalLengthstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RFaceEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RFaceEntity::PropertyWorkingSetstatic
virtual void RFaceEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RFaceData RFaceEntity::dataprotected