Skip to content

RLayout

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

Represents a layout definition in a drawing.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

enum PlotPaperUnits { Inches, Millimeters, Pixels }
enum PlotRotation { Zero, CounterClockWise, Inverted, ClockWise }
enum PlotType { Display, Extents, Limits, View, Window, Layout }
enum StandardScaleType { Scale_ScaleToFit, Scale_1_128in_1ft, Scale_1_64in_1ft, Scale_1_32in_1ft, Scale_1_16in_1ft, Scale_3_32in_1ft, Scale_1_8in_1ft, Scale_3_16in_1ft, Scale_1_4in_1ft, Scale_3_8in_1ft, Scale_1_2in_1ft, Scale_3_4in_1ft, Scale_1in_1ft, Scale_3in_1ft, Scale_6in_1ft, Scale_1ft_1ft, Scale_1_1, Scale_1_2, Scale_1_4, Scale_1_5, Scale_1_8, Scale_1_10, Scale_1_16, Scale_1_20, Scale_1_30, Scale_1_40, Scale_1_50, Scale_1_100, Scale_2_1, Scale_4_1, Scale_8_1, Scale_10_1, Scale_100_1, Scale_1000_1, Scale_1and1_2in_1ft }
RLayout()
RLayout(RDocument *document, const QString &name)
virtual ~RLayout()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RLayout > cloneToLayout() const
QString getCanonicalMediaName() const
double getDenominatorCustomScale() const
RVector getInsertionBase() const
RVector getMaxExtents() const
RVector getMaxLimits() const
RVector getMinExtents() const
RVector getMinLimits() const
QString getName() const
double getNumeratorCustomScale() const
RVector getPlotOrigin() const
double getPlotPaperMarginBottomMM() const
double getPlotPaperMarginLeftMM() const
double getPlotPaperMarginRightMM() const
double getPlotPaperMarginTopMM() const
RVector getPlotPaperSize() const
RLayout::PlotPaperUnits getPlotPaperUnits() const
RLayout::PlotRotation getPlotRotation() const
RLayout::PlotType getPlotType() const
RVector getPlotWindowAreaMax() const
RVector getPlotWindowAreaMin() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
double getStandardScale() const
RLayout::StandardScaleType getStandardScaleType() const
int getTabOrder() const
virtual RS::EntityType getType() const
bool getUseStandardScale() const
void setCanonicalMediaName(const QString &v)
void setDenominatorCustomScale(double v)
void setInsertionBase(const RVector &insertionBase)
void setMaxExtents(const RVector &maxExtents)
void setMaxLimits(const RVector &maxLimits)
void setMinExtents(const RVector &minExtents)
void setMinLimits(const RVector &minLimits)
void setName(const QString &n)
void setNumeratorCustomScale(double v)
void setPlotOrigin(const RVector &v)
void setPlotPaperMarginBottomMM(double v)
void setPlotPaperMarginLeftMM(double v)
void setPlotPaperMarginRightMM(double v)
void setPlotPaperMarginTopMM(double v)
void setPlotPaperSize(const RVector &v)
void setPlotPaperUnits(RLayout::PlotPaperUnits v)
void setPlotRotation(RLayout::PlotRotation v)
void setPlotType(RLayout::PlotType v)
void setPlotWindowAreaMax(const RVector &v)
void setPlotWindowAreaMin(const RVector &v)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setStandardScale(double v)
void setStandardScaleType(RLayout::StandardScaleType v)
void setTabOrder(int to)
void setUseStandardScale(bool v)
static RS::EntityType getRtti()
static void init()
static RPropertyTypeId PropertyCanonicalMediaName
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDenominatorCustomScale
static RPropertyTypeId PropertyInsertionBaseX
static RPropertyTypeId PropertyInsertionBaseY
static RPropertyTypeId PropertyInsertionBaseZ
static RPropertyTypeId PropertyMaxExtentsX
static RPropertyTypeId PropertyMaxExtentsY
static RPropertyTypeId PropertyMaxExtentsZ
static RPropertyTypeId PropertyMaxLimitsX
static RPropertyTypeId PropertyMaxLimitsY
static RPropertyTypeId PropertyMaxLimitsZ
static RPropertyTypeId PropertyMinExtentsX
static RPropertyTypeId PropertyMinExtentsY
static RPropertyTypeId PropertyMinExtentsZ
static RPropertyTypeId PropertyMinLimitsX
static RPropertyTypeId PropertyMinLimitsY
static RPropertyTypeId PropertyMinLimitsZ
static RPropertyTypeId PropertyName
static RPropertyTypeId PropertyNumeratorCustomScale
static RPropertyTypeId PropertyPlotOriginX
static RPropertyTypeId PropertyPlotOriginY
static RPropertyTypeId PropertyPlotPaperMarginBottomMM
static RPropertyTypeId PropertyPlotPaperMarginLeftMM
static RPropertyTypeId PropertyPlotPaperMarginRightMM
static RPropertyTypeId PropertyPlotPaperMarginTopMM
static RPropertyTypeId PropertyPlotPaperSizeHeight
static RPropertyTypeId PropertyPlotPaperSizeWidth
static RPropertyTypeId PropertyPlotPaperUnits
static RPropertyTypeId PropertyPlotRotation
static RPropertyTypeId PropertyPlotType
static RPropertyTypeId PropertyPlotWindowAreaMaxX
static RPropertyTypeId PropertyPlotWindowAreaMaxY
static RPropertyTypeId PropertyPlotWindowAreaMinX
static RPropertyTypeId PropertyPlotWindowAreaMinY
static RPropertyTypeId PropertyStandardScale
static RPropertyTypeId PropertyStandardScaleType
static RPropertyTypeId PropertyTabOrder
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyUseStandardScale
virtual void print(QDebug dbg) const
QString canonicalMediaName
double denominatorCustomScale
RVector insertionBase
RVector maxExtents
RVector maxLimits
RVector minExtents
RVector minLimits
QString name
double numeratorCustomScale
RVector plotOrigin
double plotPaperMarginBottomMM
double plotPaperMarginLeftMM
double plotPaperMarginRightMM
double plotPaperMarginTopMM
RVector plotPaperSize
PlotPaperUnits plotPaperUnits
PlotRotation plotRotation
PlotType plotType
RVector plotWindowAreaMax
RVector plotWindowAreaMin
double standardScale
StandardScaleType standardScaleType
int tabOrder
bool useStandardScale

enum PlotPaperUnits
Value Description
Inches = 0
Millimeters = 1
Pixels = 2

enum PlotRotation
Value Description
Zero = 0
CounterClockWise = 1
Inverted = 2
ClockWise = 3

enum PlotType
Value Description
Display = 0
Extents = 1
Limits = 2
View = 3
Window = 4
Layout = 5

enum StandardScaleType
Value Description
Scale_ScaleToFit = 0
Scale_1_128in_1ft = 1
Scale_1_64in_1ft = 2
Scale_1_32in_1ft = 3
Scale_1_16in_1ft = 4
Scale_3_32in_1ft = 5
Scale_1_8in_1ft = 6
Scale_3_16in_1ft = 7
Scale_1_4in_1ft = 8
Scale_3_8in_1ft = 9
Scale_1_2in_1ft = 10
Scale_3_4in_1ft = 11
Scale_1in_1ft = 12
Scale_3in_1ft = 13
Scale_6in_1ft = 14
Scale_1ft_1ft = 15
Scale_1_1 = 16
Scale_1_2 = 17
Scale_1_4 = 18
Scale_1_5 = 19
Scale_1_8 = 20
Scale_1_10 = 21
Scale_1_16 = 22
Scale_1_20 = 23
Scale_1_30 = 24
Scale_1_40 = 25
Scale_1_50 = 26
Scale_1_100 = 27
Scale_2_1 = 28
Scale_4_1 = 29
Scale_8_1 = 30
Scale_10_1 = 31
Scale_100_1 = 32
Scale_1000_1 = 33
Scale_1and1_2in_1ft = 34

RLayout::RLayout()

RLayout::RLayout(RDocument *document, const QString &name)

virtual RLayout::~RLayout()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RLayout > RLayout::cloneToLayout() const

inline const

QString RLayout::getCanonicalMediaName() const

inline const

double RLayout::getDenominatorCustomScale() const

inline const

RVector RLayout::getInsertionBase() const

inline const

RVector RLayout::getMaxExtents() const

inline const

RVector RLayout::getMaxLimits() const

inline const

RVector RLayout::getMinExtents() const

inline const

RVector RLayout::getMinLimits() const

inline const

QString RLayout::getName() const

inline const

double RLayout::getNumeratorCustomScale() const

inline const

RVector RLayout::getPlotOrigin() const

inline const

double RLayout::getPlotPaperMarginBottomMM() const

inline const

double RLayout::getPlotPaperMarginLeftMM() const

inline const

double RLayout::getPlotPaperMarginRightMM() const

inline const

double RLayout::getPlotPaperMarginTopMM() const

inline const

RVector RLayout::getPlotPaperSize() const

inline const

RLayout::PlotPaperUnits RLayout::getPlotPaperUnits() const

inline const

RLayout::PlotRotation RLayout::getPlotRotation() const

inline const

RLayout::PlotType RLayout::getPlotType() const

inline const

RVector RLayout::getPlotWindowAreaMax() const

inline const

RVector RLayout::getPlotWindowAreaMin() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RLayout::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 RLayout::getStandardScale() const

inline const

RLayout::StandardScaleType RLayout::getStandardScaleType() const

inline const

int RLayout::getTabOrder() const

inline const

virtual RS::EntityType RLayout::getType() const

virtual inline const

Returns: The unique entity type, usually the same as RTTI, different for custom entities.

Reimplemented from getType.

bool RLayout::getUseStandardScale() const

inline const

void RLayout::setCanonicalMediaName(const QString &v)

inline

void RLayout::setDenominatorCustomScale(double v)

inline

void RLayout::setInsertionBase(const RVector &insertionBase)

inline

void RLayout::setMaxExtents(const RVector &maxExtents)

inline

void RLayout::setMaxLimits(const RVector &maxLimits)

inline

void RLayout::setMinExtents(const RVector &minExtents)

inline

void RLayout::setMinLimits(const RVector &minLimits)

inline

void RLayout::setName(const QString &n)

void RLayout::setNumeratorCustomScale(double v)

inline

void RLayout::setPlotOrigin(const RVector &v)

inline

void RLayout::setPlotPaperMarginBottomMM(double v)

inline

void RLayout::setPlotPaperMarginLeftMM(double v)

inline

void RLayout::setPlotPaperMarginRightMM(double v)

inline

void RLayout::setPlotPaperMarginTopMM(double v)

inline

void RLayout::setPlotPaperSize(const RVector &v)

inline

void RLayout::setPlotPaperUnits(RLayout::PlotPaperUnits v)

inline

void RLayout::setPlotRotation(RLayout::PlotRotation v)

inline

void RLayout::setPlotType(RLayout::PlotType v)

inline

void RLayout::setPlotWindowAreaMax(const RVector &v)

inline

void RLayout::setPlotWindowAreaMin(const RVector &v)

inline

virtual bool RLayout::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 RLayout::setStandardScale(double v)

inline

void RLayout::setStandardScaleType(RLayout::StandardScaleType v)

inline

void RLayout::setTabOrder(int to)

inline

void RLayout::setUseStandardScale(bool v)

inline

static RS::EntityType RLayout::getRtti()

static inline

static void RLayout::init()

static

static RPropertyTypeId RLayout::PropertyCanonicalMediaName

static

static RPropertyTypeId RLayout::PropertyCustom

static

static RPropertyTypeId RLayout::PropertyDenominatorCustomScale

static

static RPropertyTypeId RLayout::PropertyInsertionBaseX

static

static RPropertyTypeId RLayout::PropertyInsertionBaseY

static

static RPropertyTypeId RLayout::PropertyInsertionBaseZ

static

static RPropertyTypeId RLayout::PropertyMaxExtentsX

static

static RPropertyTypeId RLayout::PropertyMaxExtentsY

static

static RPropertyTypeId RLayout::PropertyMaxExtentsZ

static

static RPropertyTypeId RLayout::PropertyMaxLimitsX

static

static RPropertyTypeId RLayout::PropertyMaxLimitsY

static

static RPropertyTypeId RLayout::PropertyMaxLimitsZ

static

static RPropertyTypeId RLayout::PropertyMinExtentsX

static

static RPropertyTypeId RLayout::PropertyMinExtentsY

static

static RPropertyTypeId RLayout::PropertyMinExtentsZ

static

static RPropertyTypeId RLayout::PropertyMinLimitsX

static

static RPropertyTypeId RLayout::PropertyMinLimitsY

static

static RPropertyTypeId RLayout::PropertyMinLimitsZ

static

static RPropertyTypeId RLayout::PropertyName

static

static RPropertyTypeId RLayout::PropertyNumeratorCustomScale

static

static RPropertyTypeId RLayout::PropertyPlotOriginX

static

static RPropertyTypeId RLayout::PropertyPlotOriginY

static

static RPropertyTypeId RLayout::PropertyPlotPaperMarginBottomMM

static

static RPropertyTypeId RLayout::PropertyPlotPaperMarginLeftMM

static

static RPropertyTypeId RLayout::PropertyPlotPaperMarginRightMM

static

static RPropertyTypeId RLayout::PropertyPlotPaperMarginTopMM

static

static RPropertyTypeId RLayout::PropertyPlotPaperSizeHeight

static

static RPropertyTypeId RLayout::PropertyPlotPaperSizeWidth

static

static RPropertyTypeId RLayout::PropertyPlotPaperUnits

static

static RPropertyTypeId RLayout::PropertyPlotRotation

static

static RPropertyTypeId RLayout::PropertyPlotType

static

static RPropertyTypeId RLayout::PropertyPlotWindowAreaMaxX

static

static RPropertyTypeId RLayout::PropertyPlotWindowAreaMaxY

static

static RPropertyTypeId RLayout::PropertyPlotWindowAreaMinX

static

static RPropertyTypeId RLayout::PropertyPlotWindowAreaMinY

static

static RPropertyTypeId RLayout::PropertyStandardScale

static

static RPropertyTypeId RLayout::PropertyStandardScaleType

static

static RPropertyTypeId RLayout::PropertyTabOrder

static

static RPropertyTypeId RLayout::PropertyType

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 RLayout::PropertyUseStandardScale

static

virtual void RLayout::print(QDebug dbg) const

virtual const protected

Non-Scriptable: This function is not available in script environments.

Reimplemented from print.

QString RLayout::canonicalMediaName

private

double RLayout::denominatorCustomScale

private

RVector RLayout::insertionBase

private

RVector RLayout::maxExtents

private

RVector RLayout::maxLimits

private

RVector RLayout::minExtents

private

RVector RLayout::minLimits

private

QString RLayout::name

private

double RLayout::numeratorCustomScale

private

RVector RLayout::plotOrigin

private

double RLayout::plotPaperMarginBottomMM

private

double RLayout::plotPaperMarginLeftMM

private

double RLayout::plotPaperMarginRightMM

private

double RLayout::plotPaperMarginTopMM

private

RVector RLayout::plotPaperSize

private

PlotPaperUnits RLayout::plotPaperUnits

private

PlotRotation RLayout::plotRotation

private

PlotType RLayout::plotType

private

RVector RLayout::plotWindowAreaMax

private

RVector RLayout::plotWindowAreaMin

private

double RLayout::standardScale

private

StandardScaleType RLayout::standardScaleType

private

int RLayout::tabOrder

private

bool RLayout::useStandardScale

private