|
enum | PlotPaperUnits { Inches = 0,
Millimeters = 1,
Pixels = 2
} |
|
enum | PlotRotation { Zero = 0,
CounterClockWise = 1,
Inverted = 2,
ClockWise = 3
} |
|
enum | PlotType {
Display = 0,
Extents = 1,
Limits = 2,
View = 3,
Window = 4,
Layout = 5
} |
|
enum | StandardScaleType {
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
} |
|
typedef int | Handle |
|
typedef int | Id |
|
enum | ObjectFlag {
NoFlags = 0x000,
Undone = 0x001,
Protect = 0x002,
Selected = 0x004,
Invisible = 0x008,
WorkingSet = 0x010
} |
|
enum | XYZ { X,
Y,
Z
} |
|
|
virtual RLayout * | clone () 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 |
|
| RLayout () |
|
| RLayout (RDocument *document, const QString &name) |
|
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. More...
|
|
void | setStandardScale (double v) |
|
void | setStandardScaleType (RLayout::StandardScaleType v) |
|
void | setTabOrder (int to) |
|
void | setUseStandardScale (bool v) |
|
virtual | ~RLayout () |
|
void | copyCustomPropertiesFrom (RObject *other, const QString &title=RDEFAULT_QSTRING, bool overwrite=false, const QStringList &ignoreList=RDEFAULT_QSTRINGLIST, const QString &mapKeyFrom=RDEFAULT_QSTRING, const QString &mapKeyTo=RDEFAULT_QSTRING) |
| Copies all custom properties from the given object. More...
|
|
void | dump () const |
|
virtual int | getComplexity () const |
|
virtual bool | getCustomBoolProperty (const QString &title, const QString &key, bool defaultValue) const |
|
virtual double | getCustomDoubleProperty (const QString &title, const QString &key, double defaultValue) const |
|
virtual int | getCustomIntProperty (const QString &title, const QString &key, int defaultValue) const |
|
QMap< QString, QVariantMap > | getCustomProperties () const |
|
virtual QVariant | getCustomProperty (const QString &title, const QString &key, const QVariant &defaultValue=RDEFAULT_QVARIANT) const |
|
QStringList | getCustomPropertyKeys (const QString &title) const |
|
QStringList | getCustomPropertyTitles () const |
|
virtual QSet< RPropertyTypeId > | getCustomPropertyTypeIds () const |
|
RDocument * | getDocument () |
|
const RDocument * | getDocument () const |
|
bool | getFlag (int flag) const |
|
RObject::Handle | getHandle () const |
|
RObject::Id | getId () const |
|
virtual QSet< RPropertyTypeId > | getPropertyTypeIds (RPropertyAttributes::Option option=RPropertyAttributes::NoOptions) const |
|
bool | hasCustomProperties () const |
|
bool | hasCustomProperty (const QString &title, const QRegExp &key) const |
|
bool | hasCustomProperty (const QString &title, const QString &key) const |
|
virtual bool | hasPropertyType (RPropertyTypeId propertyTypeId) |
|
bool | isInvisible () const |
|
bool | isProtected () const |
|
virtual bool | isSelected () const |
|
bool | isUndone () const |
|
virtual bool | isWorkingSet () const |
|
virtual bool | mustAlwaysClone () const |
|
virtual void | removeCustomProperty (const QString &title, const QString &key) |
| Removes the custom property with the given name. More...
|
|
| RObject (const RObject &other) |
|
| RObject (RDocument *document=NULL) |
|
virtual void | setAutoUpdatesBlocked (bool on) |
|
virtual void | setCustomProperties (const RQMapQStringQString &properties) |
|
virtual void | setCustomProperty (const QString &title, const QString &key, const QVariant &value) |
| Sets a custom property with the given name. More...
|
|
void | setDocument (RDocument *document) |
|
void | setFlag (int flag, bool on=true) |
|
void | setInvisible (bool on) |
|
void | setProtected (bool on) |
|
virtual void | setSelected (bool on) |
|
virtual void | setWorkingSet (bool on) |
|
virtual bool | validate () |
|
virtual | ~RObject () |
|
|
static bool | setMember (bool &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
static bool | setMember (double &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
static bool | setMember (int &variable, const QVariant &value, bool condition=true) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
static bool | setMember (QList< double > &variable, const QVariant &value, bool condition) |
|
static bool | setMember (QString &variable, const QVariant &value, bool condition=true) |
| Sets the given property. More...
|
|
static bool | setMemberVector (QList< RVector > &variable, const QVariant &value, RObject::XYZ xyz) |
|
static bool | setMemberX (QList< RVector > &variable, const QVariant &value, bool condition=true) |
|
static bool | setMemberY (QList< RVector > &variable, const QVariant &value, bool condition=true) |
|
static bool | setMemberZ (QList< RVector > &variable, const QVariant &value, bool condition=true) |
|
Represents a layout definition in a drawing.
- Scriptable:\nThis class is available in script environments.\n
- Shared Pointer Support:\nObjects can be used in QSharedPointer.\n
Copyright (c) 2011-2018 by Andrew Mustun.
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.