RLayout
Class in Core Module
Header: #include <src/core/RLayout.h>
Inherits: RObject
Description
Section titled “Description”Represents a layout definition in a drawing.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Types
Section titled “Public Types”| 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 } |
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) const |
Private Attributes
Section titled “Private Attributes”Member Documentation
Section titled “Member Documentation”PlotPaperUnits
Section titled “PlotPaperUnits”enum PlotPaperUnits| Value | Description |
|---|---|
Inches = 0 |
|
Millimeters = 1 |
|
Pixels = 2 |
PlotRotation
Section titled “PlotRotation”enum PlotRotation| Value | Description |
|---|---|
Zero = 0 |
|
CounterClockWise = 1 |
|
Inverted = 2 |
|
ClockWise = 3 |
PlotType
Section titled “PlotType”enum PlotType| Value | Description |
|---|---|
Display = 0 |
|
Extents = 1 |
|
Limits = 2 |
|
View = 3 |
|
Window = 4 |
|
Layout = 5 |
StandardScaleType
Section titled “StandardScaleType”enum StandardScaleTypeRLayout
Section titled “RLayout”RLayout::RLayout()RLayout
Section titled “RLayout”RLayout::RLayout(RDocument *document, const QString &name)~RLayout
Section titled “~RLayout”virtual RLayout::~RLayout()virtual
virtual QSharedPointer< RObject > RLayout::clone() constvirtual inline const
Reimplemented from clone.
cloneToLayout
Section titled “cloneToLayout”QSharedPointer< RLayout > RLayout::cloneToLayout() constinline const
getCanonicalMediaName
Section titled “getCanonicalMediaName”QString RLayout::getCanonicalMediaName() constinline const
getDenominatorCustomScale
Section titled “getDenominatorCustomScale”double RLayout::getDenominatorCustomScale() constinline const
getInsertionBase
Section titled “getInsertionBase”RVector RLayout::getInsertionBase() constinline const
getMaxExtents
Section titled “getMaxExtents”RVector RLayout::getMaxExtents() constinline const
getMaxLimits
Section titled “getMaxLimits”RVector RLayout::getMaxLimits() constinline const
getMinExtents
Section titled “getMinExtents”RVector RLayout::getMinExtents() constinline const
getMinLimits
Section titled “getMinLimits”RVector RLayout::getMinLimits() constinline const
getName
Section titled “getName”QString RLayout::getName() constinline const
getNumeratorCustomScale
Section titled “getNumeratorCustomScale”double RLayout::getNumeratorCustomScale() constinline const
getPlotOrigin
Section titled “getPlotOrigin”RVector RLayout::getPlotOrigin() constinline const
getPlotPaperMarginBottomMM
Section titled “getPlotPaperMarginBottomMM”double RLayout::getPlotPaperMarginBottomMM() constinline const
getPlotPaperMarginLeftMM
Section titled “getPlotPaperMarginLeftMM”double RLayout::getPlotPaperMarginLeftMM() constinline const
getPlotPaperMarginRightMM
Section titled “getPlotPaperMarginRightMM”double RLayout::getPlotPaperMarginRightMM() constinline const
getPlotPaperMarginTopMM
Section titled “getPlotPaperMarginTopMM”double RLayout::getPlotPaperMarginTopMM() constinline const
getPlotPaperSize
Section titled “getPlotPaperSize”RVector RLayout::getPlotPaperSize() constinline const
getPlotPaperUnits
Section titled “getPlotPaperUnits”RLayout::PlotPaperUnits RLayout::getPlotPaperUnits() constinline const
getPlotRotation
Section titled “getPlotRotation”RLayout::PlotRotation RLayout::getPlotRotation() constinline const
getPlotType
Section titled “getPlotType”RLayout::PlotType RLayout::getPlotType() constinline const
getPlotWindowAreaMax
Section titled “getPlotWindowAreaMax”RVector RLayout::getPlotWindowAreaMax() constinline const
getPlotWindowAreaMin
Section titled “getPlotWindowAreaMin”RVector RLayout::getPlotWindowAreaMin() constinline const
getProperty
Section titled “getProperty”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.
getStandardScale
Section titled “getStandardScale”double RLayout::getStandardScale() constinline const
getStandardScaleType
Section titled “getStandardScaleType”RLayout::StandardScaleType RLayout::getStandardScaleType() constinline const
getTabOrder
Section titled “getTabOrder”int RLayout::getTabOrder() constinline const
getType
Section titled “getType”virtual RS::EntityType RLayout::getType() constvirtual inline const
Returns: The unique entity type, usually the same as RTTI, different for custom entities.
Reimplemented from getType.
getUseStandardScale
Section titled “getUseStandardScale”bool RLayout::getUseStandardScale() constinline const
setCanonicalMediaName
Section titled “setCanonicalMediaName”void RLayout::setCanonicalMediaName(const QString &v)inline
setDenominatorCustomScale
Section titled “setDenominatorCustomScale”void RLayout::setDenominatorCustomScale(double v)inline
setInsertionBase
Section titled “setInsertionBase”void RLayout::setInsertionBase(const RVector &insertionBase)inline
setMaxExtents
Section titled “setMaxExtents”void RLayout::setMaxExtents(const RVector &maxExtents)inline
setMaxLimits
Section titled “setMaxLimits”void RLayout::setMaxLimits(const RVector &maxLimits)inline
setMinExtents
Section titled “setMinExtents”void RLayout::setMinExtents(const RVector &minExtents)inline
setMinLimits
Section titled “setMinLimits”void RLayout::setMinLimits(const RVector &minLimits)inline
setName
Section titled “setName”void RLayout::setName(const QString &n)setNumeratorCustomScale
Section titled “setNumeratorCustomScale”void RLayout::setNumeratorCustomScale(double v)inline
setPlotOrigin
Section titled “setPlotOrigin”void RLayout::setPlotOrigin(const RVector &v)inline
setPlotPaperMarginBottomMM
Section titled “setPlotPaperMarginBottomMM”void RLayout::setPlotPaperMarginBottomMM(double v)inline
setPlotPaperMarginLeftMM
Section titled “setPlotPaperMarginLeftMM”void RLayout::setPlotPaperMarginLeftMM(double v)inline
setPlotPaperMarginRightMM
Section titled “setPlotPaperMarginRightMM”void RLayout::setPlotPaperMarginRightMM(double v)inline
setPlotPaperMarginTopMM
Section titled “setPlotPaperMarginTopMM”void RLayout::setPlotPaperMarginTopMM(double v)inline
setPlotPaperSize
Section titled “setPlotPaperSize”void RLayout::setPlotPaperSize(const RVector &v)inline
setPlotPaperUnits
Section titled “setPlotPaperUnits”void RLayout::setPlotPaperUnits(RLayout::PlotPaperUnits v)inline
setPlotRotation
Section titled “setPlotRotation”void RLayout::setPlotRotation(RLayout::PlotRotation v)inline
setPlotType
Section titled “setPlotType”void RLayout::setPlotType(RLayout::PlotType v)inline
setPlotWindowAreaMax
Section titled “setPlotWindowAreaMax”void RLayout::setPlotWindowAreaMax(const RVector &v)inline
setPlotWindowAreaMin
Section titled “setPlotWindowAreaMin”void RLayout::setPlotWindowAreaMin(const RVector &v)inline
setProperty
Section titled “setProperty”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.
setStandardScale
Section titled “setStandardScale”void RLayout::setStandardScale(double v)inline
setStandardScaleType
Section titled “setStandardScaleType”void RLayout::setStandardScaleType(RLayout::StandardScaleType v)inline
setTabOrder
Section titled “setTabOrder”void RLayout::setTabOrder(int to)inline
setUseStandardScale
Section titled “setUseStandardScale”void RLayout::setUseStandardScale(bool v)inline
getRtti
Section titled “getRtti”static RS::EntityType RLayout::getRtti()static inline
static void RLayout::init()static
PropertyCanonicalMediaName
Section titled “PropertyCanonicalMediaName”static RPropertyTypeId RLayout::PropertyCanonicalMediaNamestatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RLayout::PropertyCustomstatic
PropertyDenominatorCustomScale
Section titled “PropertyDenominatorCustomScale”static RPropertyTypeId RLayout::PropertyDenominatorCustomScalestatic
PropertyInsertionBaseX
Section titled “PropertyInsertionBaseX”static RPropertyTypeId RLayout::PropertyInsertionBaseXstatic
PropertyInsertionBaseY
Section titled “PropertyInsertionBaseY”static RPropertyTypeId RLayout::PropertyInsertionBaseYstatic
PropertyInsertionBaseZ
Section titled “PropertyInsertionBaseZ”static RPropertyTypeId RLayout::PropertyInsertionBaseZstatic
PropertyMaxExtentsX
Section titled “PropertyMaxExtentsX”static RPropertyTypeId RLayout::PropertyMaxExtentsXstatic
PropertyMaxExtentsY
Section titled “PropertyMaxExtentsY”static RPropertyTypeId RLayout::PropertyMaxExtentsYstatic
PropertyMaxExtentsZ
Section titled “PropertyMaxExtentsZ”static RPropertyTypeId RLayout::PropertyMaxExtentsZstatic
PropertyMaxLimitsX
Section titled “PropertyMaxLimitsX”static RPropertyTypeId RLayout::PropertyMaxLimitsXstatic
PropertyMaxLimitsY
Section titled “PropertyMaxLimitsY”static RPropertyTypeId RLayout::PropertyMaxLimitsYstatic
PropertyMaxLimitsZ
Section titled “PropertyMaxLimitsZ”static RPropertyTypeId RLayout::PropertyMaxLimitsZstatic
PropertyMinExtentsX
Section titled “PropertyMinExtentsX”static RPropertyTypeId RLayout::PropertyMinExtentsXstatic
PropertyMinExtentsY
Section titled “PropertyMinExtentsY”static RPropertyTypeId RLayout::PropertyMinExtentsYstatic
PropertyMinExtentsZ
Section titled “PropertyMinExtentsZ”static RPropertyTypeId RLayout::PropertyMinExtentsZstatic
PropertyMinLimitsX
Section titled “PropertyMinLimitsX”static RPropertyTypeId RLayout::PropertyMinLimitsXstatic
PropertyMinLimitsY
Section titled “PropertyMinLimitsY”static RPropertyTypeId RLayout::PropertyMinLimitsYstatic
PropertyMinLimitsZ
Section titled “PropertyMinLimitsZ”static RPropertyTypeId RLayout::PropertyMinLimitsZstatic
PropertyName
Section titled “PropertyName”static RPropertyTypeId RLayout::PropertyNamestatic
PropertyNumeratorCustomScale
Section titled “PropertyNumeratorCustomScale”static RPropertyTypeId RLayout::PropertyNumeratorCustomScalestatic
PropertyPlotOriginX
Section titled “PropertyPlotOriginX”static RPropertyTypeId RLayout::PropertyPlotOriginXstatic
PropertyPlotOriginY
Section titled “PropertyPlotOriginY”static RPropertyTypeId RLayout::PropertyPlotOriginYstatic
PropertyPlotPaperMarginBottomMM
Section titled “PropertyPlotPaperMarginBottomMM”static RPropertyTypeId RLayout::PropertyPlotPaperMarginBottomMMstatic
PropertyPlotPaperMarginLeftMM
Section titled “PropertyPlotPaperMarginLeftMM”static RPropertyTypeId RLayout::PropertyPlotPaperMarginLeftMMstatic
PropertyPlotPaperMarginRightMM
Section titled “PropertyPlotPaperMarginRightMM”static RPropertyTypeId RLayout::PropertyPlotPaperMarginRightMMstatic
PropertyPlotPaperMarginTopMM
Section titled “PropertyPlotPaperMarginTopMM”static RPropertyTypeId RLayout::PropertyPlotPaperMarginTopMMstatic
PropertyPlotPaperSizeHeight
Section titled “PropertyPlotPaperSizeHeight”static RPropertyTypeId RLayout::PropertyPlotPaperSizeHeightstatic
PropertyPlotPaperSizeWidth
Section titled “PropertyPlotPaperSizeWidth”static RPropertyTypeId RLayout::PropertyPlotPaperSizeWidthstatic
PropertyPlotPaperUnits
Section titled “PropertyPlotPaperUnits”static RPropertyTypeId RLayout::PropertyPlotPaperUnitsstatic
PropertyPlotRotation
Section titled “PropertyPlotRotation”static RPropertyTypeId RLayout::PropertyPlotRotationstatic
PropertyPlotType
Section titled “PropertyPlotType”static RPropertyTypeId RLayout::PropertyPlotTypestatic
PropertyPlotWindowAreaMaxX
Section titled “PropertyPlotWindowAreaMaxX”static RPropertyTypeId RLayout::PropertyPlotWindowAreaMaxXstatic
PropertyPlotWindowAreaMaxY
Section titled “PropertyPlotWindowAreaMaxY”static RPropertyTypeId RLayout::PropertyPlotWindowAreaMaxYstatic
PropertyPlotWindowAreaMinX
Section titled “PropertyPlotWindowAreaMinX”static RPropertyTypeId RLayout::PropertyPlotWindowAreaMinXstatic
PropertyPlotWindowAreaMinY
Section titled “PropertyPlotWindowAreaMinY”static RPropertyTypeId RLayout::PropertyPlotWindowAreaMinYstatic
PropertyStandardScale
Section titled “PropertyStandardScale”static RPropertyTypeId RLayout::PropertyStandardScalestatic
PropertyStandardScaleType
Section titled “PropertyStandardScaleType”static RPropertyTypeId RLayout::PropertyStandardScaleTypestatic
PropertyTabOrder
Section titled “PropertyTabOrder”static RPropertyTypeId RLayout::PropertyTabOrderstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RLayout::PropertyTypestatic
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.
PropertyUseStandardScale
Section titled “PropertyUseStandardScale”static RPropertyTypeId RLayout::PropertyUseStandardScalestatic
virtual void RLayout::print(QDebug dbg) constvirtual const protected
Non-Scriptable: This function is not available in script environments.
Reimplemented from print.
canonicalMediaName
Section titled “canonicalMediaName”QString RLayout::canonicalMediaNameprivate
denominatorCustomScale
Section titled “denominatorCustomScale”double RLayout::denominatorCustomScaleprivate
insertionBase
Section titled “insertionBase”RVector RLayout::insertionBaseprivate
maxExtents
Section titled “maxExtents”RVector RLayout::maxExtentsprivate
maxLimits
Section titled “maxLimits”RVector RLayout::maxLimitsprivate
minExtents
Section titled “minExtents”RVector RLayout::minExtentsprivate
minLimits
Section titled “minLimits”RVector RLayout::minLimitsprivate
QString RLayout::nameprivate
numeratorCustomScale
Section titled “numeratorCustomScale”double RLayout::numeratorCustomScaleprivate
plotOrigin
Section titled “plotOrigin”RVector RLayout::plotOriginprivate
plotPaperMarginBottomMM
Section titled “plotPaperMarginBottomMM”double RLayout::plotPaperMarginBottomMMprivate
plotPaperMarginLeftMM
Section titled “plotPaperMarginLeftMM”double RLayout::plotPaperMarginLeftMMprivate
plotPaperMarginRightMM
Section titled “plotPaperMarginRightMM”double RLayout::plotPaperMarginRightMMprivate
plotPaperMarginTopMM
Section titled “plotPaperMarginTopMM”double RLayout::plotPaperMarginTopMMprivate
plotPaperSize
Section titled “plotPaperSize”RVector RLayout::plotPaperSizeprivate
plotPaperUnits
Section titled “plotPaperUnits”PlotPaperUnits RLayout::plotPaperUnitsprivate
plotRotation
Section titled “plotRotation”PlotRotation RLayout::plotRotationprivate
plotType
Section titled “plotType”PlotType RLayout::plotTypeprivate
plotWindowAreaMax
Section titled “plotWindowAreaMax”RVector RLayout::plotWindowAreaMaxprivate
plotWindowAreaMin
Section titled “plotWindowAreaMin”RVector RLayout::plotWindowAreaMinprivate
standardScale
Section titled “standardScale”double RLayout::standardScaleprivate
standardScaleType
Section titled “standardScaleType”StandardScaleType RLayout::standardScaleTypeprivate
tabOrder
Section titled “tabOrder”int RLayout::tabOrderprivate
useStandardScale
Section titled “useStandardScale”bool RLayout::useStandardScaleprivate