Skip to content

RImageEntity

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

Point entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFade
static RPropertyTypeId PropertyFileName
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyHeight
static RPropertyTypeId PropertyInsertionPointX
static RPropertyTypeId PropertyInsertionPointY
static RPropertyTypeId PropertyInsertionPointZ
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyScaleFactorX
static RPropertyTypeId PropertyScaleFactorY
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyUX
static RPropertyTypeId PropertyUY
static RPropertyTypeId PropertyVX
static RPropertyTypeId PropertyVY
static RPropertyTypeId PropertyWidth
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RImageData data

RImageEntity::RImageEntity(const RImageEntity &other)

RImageEntity::RImageEntity(RDocument *document, const RImageData &data)

virtual RImageEntity::~RImageEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RImageEntity > RImageEntity::cloneToImageEntity() const

inline const

virtual void RImageEntity::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.

int RImageEntity::getBrightness() const

inline const

int RImageEntity::getContrast() const

inline const

virtual RImageData & RImageEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RImageData & RImageEntity::getData() const

virtual inline const

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

Reimplemented from getData.

int RImageEntity::getFade() const

inline const

QString RImageEntity::getFileName() const

inline const

double RImageEntity::getHeight() const

inline const

RVector RImageEntity::getInsertionPoint() const

inline const

int RImageEntity::getPixelHeight() const

inline const

int RImageEntity::getPixelWidth() const

inline const

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.

RVector RImageEntity::getUVector() const

inline const

RVector RImageEntity::getVVector() const

inline const

double RImageEntity::getWidth() const

inline const

void RImageEntity::setAngle(double a)

inline

void RImageEntity::setFileName(const QString &fn)

inline

void RImageEntity::setHeight(double h, bool keepRatio=false)

inline

void RImageEntity::setInsertionPoint(const RVector &ip)

inline

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.

void RImageEntity::setWidth(double w, bool keepRatio=false)

inline

static RS::EntityType RImageEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RImageEntity::getStaticPropertyTypeIds()

static inline

static void RImageEntity::init()

static

static RPropertyTypeId RImageEntity::PropertyAngle

static

static RPropertyTypeId RImageEntity::PropertyBlock

static

static RPropertyTypeId RImageEntity::PropertyColor

static

static RPropertyTypeId RImageEntity::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 RImageEntity::PropertyDisplayedColor

static

static RPropertyTypeId RImageEntity::PropertyDrawOrder

static

static RPropertyTypeId RImageEntity::PropertyFade

static

static RPropertyTypeId RImageEntity::PropertyFileName

static

static RPropertyTypeId RImageEntity::PropertyHandle

static

static RPropertyTypeId RImageEntity::PropertyHeight

static

static RPropertyTypeId RImageEntity::PropertyInsertionPointX

static

static RPropertyTypeId RImageEntity::PropertyInsertionPointY

static

static RPropertyTypeId RImageEntity::PropertyInsertionPointZ

static

static RPropertyTypeId RImageEntity::PropertyLayer

static

static RPropertyTypeId RImageEntity::PropertyLinetype

static

static RPropertyTypeId RImageEntity::PropertyLinetypeScale

static

static RPropertyTypeId RImageEntity::PropertyLineweight

static

static RPropertyTypeId RImageEntity::PropertyProtected

static

static RPropertyTypeId RImageEntity::PropertyScaleFactorX

static

static RPropertyTypeId RImageEntity::PropertyScaleFactorY

static

static RPropertyTypeId RImageEntity::PropertyType

static

static RPropertyTypeId RImageEntity::PropertyUX

static

static RPropertyTypeId RImageEntity::PropertyUY

static

static RPropertyTypeId RImageEntity::PropertyVX

static

static RPropertyTypeId RImageEntity::PropertyVY

static

static RPropertyTypeId RImageEntity::PropertyWidth

static

static RPropertyTypeId RImageEntity::PropertyWorkingSet

static

virtual void RImageEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RImageData RImageEntity::data

protected