RPointEntity
Class in Entity Module
Header: #include <src/entity/RPointEntity.h>
Inherits: REntity
Description
Section titled “Description”Point entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RPointEntity(const RPointEntity &other) |
|
RPointEntity(RDocument *document, const RPointData &data) |
|
| virtual | ~RPointEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RPointEntity > | cloneToPointEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| virtual RPointData & | getData() |
| virtual const RPointData & | getData() const |
| RVector | getPosition() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| 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 RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
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 | PropertyHandle |
| static RPropertyTypeId | PropertyLayer |
| static RPropertyTypeId | PropertyLinetype |
| static RPropertyTypeId | PropertyLinetypeScale |
| static RPropertyTypeId | PropertyLineweight |
| static RPropertyTypeId | PropertyPositionX |
| static RPropertyTypeId | PropertyPositionY |
| static RPropertyTypeId | PropertyPositionZ |
| static RPropertyTypeId | PropertyProtected |
| static RPropertyTypeId | PropertyType |
| static RPropertyTypeId | PropertyWorkingSet |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RPointData | data |
Member Documentation
Section titled “Member Documentation”RPointEntity
Section titled “RPointEntity”RPointEntity::RPointEntity(const RPointEntity &other)RPointEntity
Section titled “RPointEntity”RPointEntity::RPointEntity(RDocument *document, const RPointData &data)~RPointEntity
Section titled “~RPointEntity”virtual RPointEntity::~RPointEntity()virtual
virtual QSharedPointer< RObject > RPointEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToPointEntity
Section titled “cloneToPointEntity”QSharedPointer< RPointEntity > RPointEntity::cloneToPointEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RPointEntity::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 RPointData & RPointEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RPointData & RPointEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getPosition
Section titled “getPosition”RVector RPointEntity::getPosition() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RPointEntity::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.
setProperty
Section titled “setProperty”virtual bool RPointEntity::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.
getRtti
Section titled “getRtti”static RS::EntityType RPointEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RPointEntity::getStaticPropertyTypeIds()static inline
static void RPointEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RPointEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RPointEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RPointEntity::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 RPointEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RPointEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RPointEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RPointEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RPointEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RPointEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RPointEntity::PropertyLineweightstatic
PropertyPositionX
Section titled “PropertyPositionX”static RPropertyTypeId RPointEntity::PropertyPositionXstatic
PropertyPositionY
Section titled “PropertyPositionY”static RPropertyTypeId RPointEntity::PropertyPositionYstatic
PropertyPositionZ
Section titled “PropertyPositionZ”static RPropertyTypeId RPointEntity::PropertyPositionZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RPointEntity::PropertyProtectedstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RPointEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RPointEntity::PropertyWorkingSetstatic
virtual void RPointEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RPointData RPointEntity::dataprotected