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