RImageEntity
Class in Entity Module
Header: #include <src/entity/RImageEntity.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”RImageEntity(const RImageEntity &other) |
|
RImageEntity(RDocument *document, const RImageData &data) |
|
| virtual | ~RImageEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RImageEntity > | cloneToImageEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| int | getBrightness() const |
| int | getContrast() const |
| virtual RImageData & | getData() |
| virtual const RImageData & | getData() const |
| int | getFade() const |
| QString | getFileName() const |
| double | getHeight() const |
| RVector | getInsertionPoint() const |
| int | getPixelHeight() const |
| int | getPixelWidth() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| RVector | getUVector() const |
| RVector | getVVector() const |
| double | getWidth() const |
| void | setAngle(double a) |
| void | setFileName(const QString &fn) |
| void | setHeight(double h, bool keepRatio=false) |
| void | setInsertionPoint(const RVector &ip) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setWidth(double w, bool keepRatio=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”| RImageData | data |
Member Documentation
Section titled “Member Documentation”RImageEntity
Section titled “RImageEntity”RImageEntity::RImageEntity(const RImageEntity &other)RImageEntity
Section titled “RImageEntity”RImageEntity::RImageEntity(RDocument *document, const RImageData &data)~RImageEntity
Section titled “~RImageEntity”virtual RImageEntity::~RImageEntity()virtual
virtual QSharedPointer< RObject > RImageEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToImageEntity
Section titled “cloneToImageEntity”QSharedPointer< RImageEntity > RImageEntity::cloneToImageEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RImageEntity::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.
getBrightness
Section titled “getBrightness”int RImageEntity::getBrightness() constinline const
getContrast
Section titled “getContrast”int RImageEntity::getContrast() constinline const
getData
Section titled “getData”virtual RImageData & RImageEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RImageData & RImageEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getFade
Section titled “getFade”int RImageEntity::getFade() constinline const
getFileName
Section titled “getFileName”QString RImageEntity::getFileName() constinline const
getHeight
Section titled “getHeight”double RImageEntity::getHeight() constinline const
getInsertionPoint
Section titled “getInsertionPoint”RVector RImageEntity::getInsertionPoint() constinline const
getPixelHeight
Section titled “getPixelHeight”int RImageEntity::getPixelHeight() constinline const
getPixelWidth
Section titled “getPixelWidth”int RImageEntity::getPixelWidth() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RImageEntity::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.
getUVector
Section titled “getUVector”RVector RImageEntity::getUVector() constinline const
getVVector
Section titled “getVVector”RVector RImageEntity::getVVector() constinline const
getWidth
Section titled “getWidth”double RImageEntity::getWidth() constinline const
setAngle
Section titled “setAngle”void RImageEntity::setAngle(double a)inline
setFileName
Section titled “setFileName”void RImageEntity::setFileName(const QString &fn)inline
setHeight
Section titled “setHeight”void RImageEntity::setHeight(double h, bool keepRatio=false)inline
setInsertionPoint
Section titled “setInsertionPoint”void RImageEntity::setInsertionPoint(const RVector &ip)inline
setProperty
Section titled “setProperty”virtual bool RImageEntity::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.
setWidth
Section titled “setWidth”void RImageEntity::setWidth(double w, bool keepRatio=false)inline
getRtti
Section titled “getRtti”static RS::EntityType RImageEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RImageEntity::getStaticPropertyTypeIds()static inline
static void RImageEntity::init()static
PropertyAngle
Section titled “PropertyAngle”static RPropertyTypeId RImageEntity::PropertyAnglestatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RImageEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RImageEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RImageEntity::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 RImageEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RImageEntity::PropertyDrawOrderstatic
PropertyFade
Section titled “PropertyFade”static RPropertyTypeId RImageEntity::PropertyFadestatic
PropertyFileName
Section titled “PropertyFileName”static RPropertyTypeId RImageEntity::PropertyFileNamestatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RImageEntity::PropertyHandlestatic
PropertyHeight
Section titled “PropertyHeight”static RPropertyTypeId RImageEntity::PropertyHeightstatic
PropertyInsertionPointX
Section titled “PropertyInsertionPointX”static RPropertyTypeId RImageEntity::PropertyInsertionPointXstatic
PropertyInsertionPointY
Section titled “PropertyInsertionPointY”static RPropertyTypeId RImageEntity::PropertyInsertionPointYstatic
PropertyInsertionPointZ
Section titled “PropertyInsertionPointZ”static RPropertyTypeId RImageEntity::PropertyInsertionPointZstatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RImageEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RImageEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RImageEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RImageEntity::PropertyLineweightstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RImageEntity::PropertyProtectedstatic
PropertyScaleFactorX
Section titled “PropertyScaleFactorX”static RPropertyTypeId RImageEntity::PropertyScaleFactorXstatic
PropertyScaleFactorY
Section titled “PropertyScaleFactorY”static RPropertyTypeId RImageEntity::PropertyScaleFactorYstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RImageEntity::PropertyTypestatic
PropertyUX
Section titled “PropertyUX”static RPropertyTypeId RImageEntity::PropertyUXstatic
PropertyUY
Section titled “PropertyUY”static RPropertyTypeId RImageEntity::PropertyUYstatic
PropertyVX
Section titled “PropertyVX”static RPropertyTypeId RImageEntity::PropertyVXstatic
PropertyVY
Section titled “PropertyVY”static RPropertyTypeId RImageEntity::PropertyVYstatic
PropertyWidth
Section titled “PropertyWidth”static RPropertyTypeId RImageEntity::PropertyWidthstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RImageEntity::PropertyWorkingSetstatic
virtual void RImageEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RImageData RImageEntity::dataprotected