79 virtual QSharedPointer<RObject>
clone()
const {
84 return QSharedPointer<RPointEntity>(
new RPointEntity(*
this));
89 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
91 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
104 return data.getPosition();
123 virtual void print(QDebug dbg)
const;
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Base class for all entity classes.
Definition REntity.h:63
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition REntity.cpp:236
static void init()
Definition REntity.cpp:89
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition REntity.cpp:338
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition REntity.cpp:487
Abstract base class for exporters.
Definition RExporter.h:78
Stores and manages all data that defines the geometry and appearance of a point entity.
Definition RPointData.h:43
Point entity.
Definition RPointEntity.h:38
static RPropertyTypeId PropertyColor
Definition RPointEntity.h:51
static RPropertyTypeId PropertyProtected
Definition RPointEntity.h:43
static RPropertyTypeId PropertyDisplayedColor
Definition RPointEntity.h:52
static RPropertyTypeId PropertyDrawOrder
Definition RPointEntity.h:53
static RPropertyTypeId PropertyType
Definition RPointEntity.h:45
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPointEntity.h:41
static RPropertyTypeId PropertyBlock
Definition RPointEntity.h:46
virtual RPointData & getData()
Definition RPointEntity.h:95
static RPropertyTypeId PropertyPositionZ
Definition RPointEntity.h:56
static RPropertyTypeId PropertyLinetype
Definition RPointEntity.h:48
static RS::EntityType getRtti()
Definition RPointEntity.h:71
static RPropertyTypeId PropertyLinetypeScale
Definition RPointEntity.h:49
static RPropertyTypeId PropertyPositionX
Definition RPointEntity.h:54
static RPropertyTypeId PropertyLineweight
Definition RPointEntity.h:50
RPointData data
Definition RPointEntity.h:126
virtual const RPointData & getData() const
Definition RPointEntity.h:99
virtual QSharedPointer< RObject > clone() const
Definition RPointEntity.h:79
static RPropertyTypeId PropertyWorkingSet
Definition RPointEntity.h:44
QSharedPointer< RPointEntity > cloneToPointEntity() const
Definition RPointEntity.h:83
RVector getPosition() const
Definition RPointEntity.h:103
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RPointEntity.h:75
static RPropertyTypeId PropertyLayer
Definition RPointEntity.h:47
static RPropertyTypeId PropertyHandle
Definition RPointEntity.h:42
static RPropertyTypeId PropertyPositionY
Definition RPointEntity.h:55
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
static QSet< RPropertyTypeId > getPropertyTypeIds(RS::EntityType type, RPropertyAttributes::Option=RPropertyAttributes::NoOptions)
Gets all property type IDs that where registered for the given class.
Definition RPropertyTypeId.cpp:283
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ EntityPoint
Point.
Definition RS.h:248
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADENTITY_EXPORT
Definition entity_global.h:10
#define NULL
Definition opennurbs_system.h:256