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