Skip to content

RViewportEntity

Class in Core Module
Header: #include <src/core/RViewportEntity.h>
Inherits: REntity

Viewport entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RViewportEntity(RDocument *document, const RViewportData &data)
virtual ~RViewportEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RViewportEntity > cloneToViewportEntity() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
RVector getCenter() const
virtual RViewportData & getData()
virtual const RViewportData & getData() const
QList< RObject::Id > getFrozenLayerIds() const
double getHeight() const
RVector getPosition() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
double getRotation() const
double getScale() const
int getStatus() const
RVector getViewCenter() const
RVector getViewOffset() const
int getViewportId() const
RVector getViewTarget() const
double getWidth() const
bool isOff() const
bool isOverall() const
void setCenter(const RVector &c)
void setData(RViewportData &d)
void setFrozenLayerIds(const QList< RObject::Id > &ids)
void setHeight(double h)
void setOff(bool v)
void setOverall(bool on)
void setPosition(const RVector &p)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setRotation(double r)
void setScale(double s)
void setStatus(int s)
void setViewCenter(const RVector &c)
void setViewportId(int id)
void setViewTarget(const RVector &t)
void setWidth(double w)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyCenterX
static RPropertyTypeId PropertyCenterY
static RPropertyTypeId PropertyCenterZ
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFrozenLayerIds
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyHeight
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyOn
static RPropertyTypeId PropertyOverall
static RPropertyTypeId PropertyRotation
static RPropertyTypeId PropertyScale
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyViewCenterX
static RPropertyTypeId PropertyViewCenterY
static RPropertyTypeId PropertyViewTargetX
static RPropertyTypeId PropertyViewTargetY
static RPropertyTypeId PropertyViewTargetZ
static RPropertyTypeId PropertyWidth
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RViewportData data

RViewportEntity::RViewportEntity(RDocument *document, const RViewportData &data)

virtual RViewportEntity::~RViewportEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RViewportEntity > RViewportEntity::cloneToViewportEntity() const

inline const

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

RVector RViewportEntity::getCenter() const

inline const

virtual RViewportData & RViewportEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RViewportData & RViewportEntity::getData() const

virtual inline const

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

Reimplemented from getData.

QList< RObject::Id > RViewportEntity::getFrozenLayerIds() const

inline const

double RViewportEntity::getHeight() const

inline const

RVector RViewportEntity::getPosition() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RViewportEntity::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.

double RViewportEntity::getRotation() const

inline const

double RViewportEntity::getScale() const

inline const

int RViewportEntity::getStatus() const

inline const

RVector RViewportEntity::getViewCenter() const

inline const

RVector RViewportEntity::getViewOffset() const

inline const

int RViewportEntity::getViewportId() const

inline const

RVector RViewportEntity::getViewTarget() const

inline const

double RViewportEntity::getWidth() const

inline const

bool RViewportEntity::isOff() const

inline const

bool RViewportEntity::isOverall() const

inline const

void RViewportEntity::setCenter(const RVector &c)

inline

void RViewportEntity::setData(RViewportData &d)

void RViewportEntity::setFrozenLayerIds(const QList< RObject::Id > &ids)

inline

void RViewportEntity::setHeight(double h)

inline

void RViewportEntity::setOff(bool v)

inline

void RViewportEntity::setOverall(bool on)

inline

void RViewportEntity::setPosition(const RVector &p)

inline

virtual bool RViewportEntity::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 RViewportEntity::setRotation(double r)

inline

void RViewportEntity::setScale(double s)

inline

void RViewportEntity::setStatus(int s)

inline

void RViewportEntity::setViewCenter(const RVector &c)

inline

void RViewportEntity::setViewportId(int id)

inline

void RViewportEntity::setViewTarget(const RVector &t)

inline

void RViewportEntity::setWidth(double w)

inline

static RS::EntityType RViewportEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RViewportEntity::getStaticPropertyTypeIds()

static inline

static void RViewportEntity::init()

static

static RPropertyTypeId RViewportEntity::PropertyBlock

static

static RPropertyTypeId RViewportEntity::PropertyCenterX

static

static RPropertyTypeId RViewportEntity::PropertyCenterY

static

static RPropertyTypeId RViewportEntity::PropertyCenterZ

static

static RPropertyTypeId RViewportEntity::PropertyColor

static

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

static

static RPropertyTypeId RViewportEntity::PropertyDrawOrder

static

static RPropertyTypeId RViewportEntity::PropertyFrozenLayerIds

static

static RPropertyTypeId RViewportEntity::PropertyHandle

static

static RPropertyTypeId RViewportEntity::PropertyHeight

static

static RPropertyTypeId RViewportEntity::PropertyLayer

static

static RPropertyTypeId RViewportEntity::PropertyLinetype

static

static RPropertyTypeId RViewportEntity::PropertyLinetypeScale

static

static RPropertyTypeId RViewportEntity::PropertyLineweight

static

static RPropertyTypeId RViewportEntity::PropertyOn

static

static RPropertyTypeId RViewportEntity::PropertyOverall

static

static RPropertyTypeId RViewportEntity::PropertyRotation

static

static RPropertyTypeId RViewportEntity::PropertyScale

static

static RPropertyTypeId RViewportEntity::PropertyType

static

static RPropertyTypeId RViewportEntity::PropertyViewCenterX

static

static RPropertyTypeId RViewportEntity::PropertyViewCenterY

static

static RPropertyTypeId RViewportEntity::PropertyViewTargetX

static

static RPropertyTypeId RViewportEntity::PropertyViewTargetY

static

static RPropertyTypeId RViewportEntity::PropertyViewTargetZ

static

static RPropertyTypeId RViewportEntity::PropertyWidth

static

virtual void RViewportEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RViewportData RViewportEntity::data

protected