Skip to content

RPointEntity

Class in Entity Module
Header: #include <src/entity/RPointEntity.h>
Inherits: REntity

Point entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
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
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RPointData data

RPointEntity::RPointEntity(const RPointEntity &other)

RPointEntity::RPointEntity(RDocument *document, const RPointData &data)

virtual RPointEntity::~RPointEntity()

virtual

virtual QSharedPointer< RObject > RPointEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RPointEntity > RPointEntity::cloneToPointEntity() const

inline const

virtual void RPointEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const

virtual 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.

virtual RPointData & RPointEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RPointData & RPointEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

RVector RPointEntity::getPosition() const

inline const

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.

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.

static RS::EntityType RPointEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RPointEntity::getStaticPropertyTypeIds()

static inline

static void RPointEntity::init()

static

static RPropertyTypeId RPointEntity::PropertyBlock

static

static RPropertyTypeId RPointEntity::PropertyColor

static

static RPropertyTypeId RPointEntity::PropertyCustom

static

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.

static RPropertyTypeId RPointEntity::PropertyDisplayedColor

static

static RPropertyTypeId RPointEntity::PropertyDrawOrder

static

static RPropertyTypeId RPointEntity::PropertyHandle

static

static RPropertyTypeId RPointEntity::PropertyLayer

static

static RPropertyTypeId RPointEntity::PropertyLinetype

static

static RPropertyTypeId RPointEntity::PropertyLinetypeScale

static

static RPropertyTypeId RPointEntity::PropertyLineweight

static

static RPropertyTypeId RPointEntity::PropertyPositionX

static

static RPropertyTypeId RPointEntity::PropertyPositionY

static

static RPropertyTypeId RPointEntity::PropertyPositionZ

static

static RPropertyTypeId RPointEntity::PropertyProtected

static

static RPropertyTypeId RPointEntity::PropertyType

static

static RPropertyTypeId RPointEntity::PropertyWorkingSet

static

virtual void RPointEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RPointData RPointEntity::data

protected