RPolyMeshEntity
Class in Entity Module
Header: #include <src/entity/RPolyMeshEntity.h>
Inherits: REntity
Description
Section titled “Description”Polygon mesh entity: an indexed mesh of faces with three or more vertices sharing one list of vertices (see RPolyMeshData).
Stored in DXF/DWG as MESH (AutoCAD 2010 and newer) or polyface mesh (older formats), imported from MESH, polyface meshes and polygon meshes.
Rendering is implemented by a proxy (see RPolyMeshEntityProxy).
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RPolyMeshEntity(RDocument *document, const RPolyMeshData &data) |
|
| virtual | ~RPolyMeshEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RPolyMeshEntity > | cloneToPolyMeshEntity() const |
| int | countFaces() const |
| int | countVertices() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| virtual RPolyMeshData & | getData() |
| virtual const RPolyMeshData & | getData() const |
| QList< int > | getFace(int index) const |
| QList< int > | getFaces() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| QList< RTriangle > | getTriangles() const |
| RVector | getVertexAt(int index) const |
| QList< RVector > | getVertices() const |
| bool | isTriangleMesh() const |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
Static Public Functions
Section titled “Static Public Functions”| static RPolyMeshEntityProxy * | getPolyMeshEntityProxy() |
| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static bool | hasProxy() |
| static void | init() |
| static void | setPolyMeshEntityProxy(RPolyMeshEntityProxy *p) |
Static Public Attributes
Section titled “Static Public Attributes”| static RPropertyTypeId | PropertyBlock |
| static RPropertyTypeId | PropertyColor |
| static RPropertyTypeId | PropertyCustom |
| static RPropertyTypeId | PropertyDisplayedColor |
| static RPropertyTypeId | PropertyDrawOrder |
| static RPropertyTypeId | PropertyFaceCount |
| static RPropertyTypeId | PropertyHandle |
| static RPropertyTypeId | PropertyLayer |
| static RPropertyTypeId | PropertyLinetype |
| static RPropertyTypeId | PropertyLinetypeScale |
| static RPropertyTypeId | PropertyLineweight |
| static RPropertyTypeId | PropertyProtected |
| static RPropertyTypeId | PropertyType |
| static RPropertyTypeId | PropertyVertexCount |
| static RPropertyTypeId | PropertyWorkingSet |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RPolyMeshData | data |
Static Protected Attributes
Section titled “Static Protected Attributes”| static RPolyMeshEntityProxy * | polyMeshEntityProxy |
Member Documentation
Section titled “Member Documentation”RPolyMeshEntity
Section titled “RPolyMeshEntity”RPolyMeshEntity::RPolyMeshEntity(RDocument *document, const RPolyMeshData &data)~RPolyMeshEntity
Section titled “~RPolyMeshEntity”virtual RPolyMeshEntity::~RPolyMeshEntity()virtual
virtual QSharedPointer< RObject > RPolyMeshEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToPolyMeshEntity
Section titled “cloneToPolyMeshEntity”QSharedPointer< RPolyMeshEntity > RPolyMeshEntity::cloneToPolyMeshEntity() constinline const
countFaces
Section titled “countFaces”int RPolyMeshEntity::countFaces() constinline const
countVertices
Section titled “countVertices”int RPolyMeshEntity::countVertices() constinline const
exportEntity
Section titled “exportEntity”virtual void RPolyMeshEntity::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 RPolyMeshData & RPolyMeshEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RPolyMeshData & RPolyMeshEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getFace
Section titled “getFace”QList< int > RPolyMeshEntity::getFace(int index) constinline const
getFaces
Section titled “getFaces”QList< int > RPolyMeshEntity::getFaces() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RPolyMeshEntity::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.
getTriangles
Section titled “getTriangles”QList< RTriangle > RPolyMeshEntity::getTriangles() constinline const
getVertexAt
Section titled “getVertexAt”RVector RPolyMeshEntity::getVertexAt(int index) constinline const
getVertices
Section titled “getVertices”QList< RVector > RPolyMeshEntity::getVertices() constinline const
isTriangleMesh
Section titled “isTriangleMesh”bool RPolyMeshEntity::isTriangleMesh() constinline const
setProperty
Section titled “setProperty”virtual bool RPolyMeshEntity::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.
getPolyMeshEntityProxy
Section titled “getPolyMeshEntityProxy”static RPolyMeshEntityProxy * RPolyMeshEntity::getPolyMeshEntityProxy()static inline
Non-Scriptable: This function is not available in script environments.
getRtti
Section titled “getRtti”static RS::EntityType RPolyMeshEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RPolyMeshEntity::getStaticPropertyTypeIds()static inline
hasProxy
Section titled “hasProxy”static bool RPolyMeshEntity::hasProxy()static inline
static void RPolyMeshEntity::init()static
setPolyMeshEntityProxy
Section titled “setPolyMeshEntityProxy”static void RPolyMeshEntity::setPolyMeshEntityProxy(RPolyMeshEntityProxy *p)static inline
Non-Scriptable: This function is not available in script environments.
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RPolyMeshEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RPolyMeshEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RPolyMeshEntity::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 RPolyMeshEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RPolyMeshEntity::PropertyDrawOrderstatic
PropertyFaceCount
Section titled “PropertyFaceCount”static RPropertyTypeId RPolyMeshEntity::PropertyFaceCountstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RPolyMeshEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RPolyMeshEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RPolyMeshEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RPolyMeshEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RPolyMeshEntity::PropertyLineweightstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RPolyMeshEntity::PropertyProtectedstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RPolyMeshEntity::PropertyTypestatic
PropertyVertexCount
Section titled “PropertyVertexCount”static RPropertyTypeId RPolyMeshEntity::PropertyVertexCountstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RPolyMeshEntity::PropertyWorkingSetstatic
virtual void RPolyMeshEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RPolyMeshData RPolyMeshEntity::dataprotected
polyMeshEntityProxy
Section titled “polyMeshEntityProxy”static RPolyMeshEntityProxy * RPolyMeshEntity::polyMeshEntityProxy = NULLstatic protected