![]() |
QCAD
Open Source 2D CAD
|
Class namespace for various global enums. More...
#include <RS.h>
Public Types | |
enum | AngleFormat { DegreesDecimal = 0 , DegreesMinutesSeconds = 1 , Gradians = 2 , Radians = 3 , Surveyors = 4 } |
Angle format for printing angles. More... | |
enum | AngleUnit { Deg , Rad , Gra } |
Angle Units. More... | |
enum | BooleanOperation { Intersection , Union , Difference , Xor } |
enum | Easing { Linear = REASING_LINEAR , InQuad = REASING_INQUAD , OutQuad = REASING_OUTQUAD , InOutQuad = REASING_INOUTQUAD , OutInQuad = REASING_OUTINQUAD , InCubic = REASING_INCUBIC , OutCubic = REASING_OUTCUBIC , InOutCubic = REASING_INOUTCUBIC , OutInCubic = REASING_OUTINCUBIC , InQuart = REASING_INQUART , OutQuart = REASING_OUTQUART , InOutQuart = REASING_INOUTQUART , OutInQuart = REASING_OUTINQUART , InQuint = REASING_INQUINT , OutQuint = REASING_OUTQUINT , InOutQuint = REASING_INOUTQUINT , OutInQuint = REASING_OUTINQUINT , InSine = REASING_INSINE , OutSine = REASING_OUTSINE , InOutSine = REASING_INOUTSINE , OutInSine = REASING_OUTINSINE , InExpo = REASING_INEXPO , OutExpo = REASING_OUTEXPO , InOutExpo = REASING_INOUTEXPO , OutInExpo = REASING_OUTINEXPO , InCirc = REASING_INCIRC , OutCirc = REASING_OUTCIRC , InOutCirc = REASING_INOUTCIRC , OutInCirc = REASING_OUTINCIRC , InElastic = REASING_INELASTIC , OutElastic = REASING_OUTELASTIC , InOutElastic = REASING_INOUTELASTIC , OutInElastic = REASING_OUTINELASTIC , InBack = REASING_INBACK , OutBack = REASING_OUTBACK , InOutBack = REASING_INOUTBACK , OutInBack = REASING_OUTINBACK , InBounce = REASING_INBOUNCE , OutBounce = REASING_OUTBOUNCE , InOutBounce = REASING_INOUTBOUNCE , OutInBounce = REASING_OUTINBOUNCE } |
enum | Ending { EndingStart , EndingEnd , EndingNone } |
Entity ending. More... | |
enum | EndType { EndClosedPolygon , EndClosedLine , EndOpenButt , EndOpenSquare , EndOpenRound , EndOpenSingle } |
enum | EntityType { ObjectAll , ObjectUnknown , ObjectLinetype , ObjectLayer , ObjectBlock , ObjectLayout , ObjectLayerState , ObjectView , ObjectUcs , ObjectDocumentVariable , ObjectDimStyle , EntityAll , EntityUnknown , EntityAttribute , EntityAttributeDefinition , EntityBlockRef , EntityBlockRefAttr , EntityPoint , EntityLine , EntityXLine , EntityRay , EntityPolyline , EntityArc , EntityCircle , EntityEllipse , EntitySolid , Entity3dFace , EntityTextBased , EntityText , EntityTrace , EntityFace , EntityDimension , EntityDimLinear , EntityDimAligned , EntityDimRotated , EntityDimRadial , EntityDimDiametric , EntityDimAngular , EntityDimAngular2L , EntityDimAngular3P , EntityDimArcLength , EntityDimOrdinate , EntityHatch , EntityImage , EntityLeader , EntitySpline , EntityViewport , EntityTolerance , EntityWipeout , EntityXRef , EntityCustom = 1000 , EntityUser = 2000 } |
Entity types used for property handling / filtering. More... | |
enum | FillType { EvenOdd , NonZero , Positive , Negative } |
enum | From { FromStart = 0x1 , FromEnd = 0x2 , FromAny = FromStart|FromEnd , AlongPolyline = 0x4 } |
End used to specify from which end of a shape to measure a distance. More... | |
enum | HAlign { HAlignLeft , HAlignCenter , HAlignRight , HAlignAlign , HAlignMid , HAlignFit } |
Horizontal alignments. More... | |
enum | IsoProjectionType { NoProjection = 0x00000000 , Top = 0x00000001 , Bottom = 0x00000002 , Left = 0x00000004 , LeftBack = 0x00000008 , Right = 0x00000010 , RightBack = 0x00000020 , Isometric = 0x00010000 , IsometricTrue = 0x00020000 , Planometric = 0x00040000 , Dimetric = 0x00080000 , Cabinet = 0x00100000 , Cabinet30 = 0x00200000 , Cavalier = 0x00400000 , User1 = 0x01000000 , User2 = 0x02000000 , User3 = 0x04000000 , User4 = 0x08000000 , IsoTop = Top | Isometric , IsoBottom = Bottom | Isometric , IsoLeft = Left | Isometric , IsoLeftBack = LeftBack | Isometric , IsoRight = Right | Isometric , IsoRightBack = RightBack | Isometric } |
Projection type for isometric projections. More... | |
enum | JoinType { JoinBevel , JoinRound , JoinMiter } |
enum | KnownVariable { ANGBASE , ANGDIR , ATTMODE , AUNITS , AUPREC , CECOLOR , CELTSCALE , CHAMFERA , CHAMFERB , CHAMFERC , CHAMFERD , CLAYER , CMLJUST , CMLSCALE , DIMADEC , DIMALT , DIMALTD , DIMALTF , DIMALTRND , DIMALTTD , DIMALTTZ , DIMALTU , DIMALTZ , DIMAPOST , DIMASZ , DIMATFIT , DIMAUNIT , DIMAZIN , DIMBLK , DIMBLK1 , DIMBLK2 , DIMCEN , DIMCLRD , DIMCLRE , DIMCLRT , DIMDEC , DIMDLE , DIMDLI , DIMDSEP , DIMEXE , DIMEXO , DIMFRAC , DIMGAP , DIMJUST , DIMLDRBLK , DIMLFAC , DIMLIM , DIMLUNIT , DIMLWD , DIMLWE , DIMPOST , DIMRND , DIMSAH , DIMSCALE , DIMSD1 , DIMSD2 , DIMSE1 , DIMSE2 , DIMSOXD , DIMTAD , DIMTDEC , DIMTFAC , DIMTIH , DIMTIX , DIMTM , DIMTOFL , DIMTOH , DIMTOL , DIMTOLJ , DIMTP , DIMTSZ , DIMTVP , DIMTXSTY , DIMTXT , DIMTZIN , DIMUPT , DIMZIN , DISPSILH , DWGCODEPAGE , DRAWORDERCTL , ELEVATION , EXTMAX , EXTMIN , FACETRES , FILLETRAD , FILLMODE , IMAGEFRAME , INSBASE , INSUNITS , ISOLINES , LIMCHECK , LIMMAX , LIMMIN , LTSCALE , LUNITS , LUPREC , MAXACTVP , MEASUREMENT , MIRRTEXT , ORTHOMODE , PDMODE , PDSIZE , PELEVATION , PELLIPSE , PEXTMAX , PEXTMIN , PINSBASE , PLIMCHECK , PLIMMAX , PLIMMIN , PLINEGEN , PLINEWID , PROXYGRAPHICS , PSLTSCALE , PUCSNAME , PUCSORG , PUCSXDIR , PUCSYDIR , QTEXTMODE , REGENMODE , SHADEDGE , SHADEDIF , SKETCHINC , SKPOLY , SPLFRAME , SPLINESEGS , SPLINETYPE , SURFTAB1 , SURFTAB2 , SURFTYPE , SURFU , SURFV , TEXTQLTY , TEXTSIZE , TEXTSTYLE , THICKNESS , TILEMODE , TRACEWID , TREEDEPTH , UCSNAME , UCSORG , UCSXDIR , UCSYDIR , UNITMODE , USERI1 , USERI2 , USERI3 , USERI4 , USERI5 , USERR1 , USERR2 , USERR3 , USERR4 , USERR5 , USRTIMER , VISRETAIN , WORLDVIEW , MaxKnownVariable = WORLDVIEW , INVALID = -1 } |
Well established document variables. More... | |
enum | KnownVariableType { VarTypeBool = 1 , VarTypeInt = 2 , VarTypeDouble = 3 , VarTypeColor = 4 , VarTypeUnknown = -1 } |
enum | LinearFormat { Scientific = 1 , Decimal = 2 , Engineering = 3 , ArchitecturalStacked = 4 , FractionalStacked = 5 , Architectural = 6 , Fractional = 7 , WindowsDesktop = 8 } |
Format for length values. More... | |
enum | Measurement { UnknownMeasurement = -1 , Imperial = 0 , Metric = 1 } |
Enum of supported measurement systems. More... | |
enum | MessageType { Print , Debug , Warning , Critical , Command } |
Message type for debugging and displaying user messages. More... | |
enum | MetaType { Bool = QVariant::Bool , Char = QVariant::Char , Double = QVariant::Double , Int = QVariant::Int , UnknownType = QVariant::Invalid , LongLong = QVariant::LongLong , BitArray = QVariant::BitArray , Bitmap = QVariant::Bitmap , Brush = QVariant::Brush , ByteArray = QVariant::ByteArray , Color = QVariant::Color , Cursor = QVariant::Cursor , Date = QVariant::Date , DateTime = QVariant::DateTime , EasingCurve = QVariant::EasingCurve , Font = QVariant::Font , Hash = QVariant::Hash , Icon = QVariant::Icon , Image = QVariant::Image , KeySequence = QVariant::KeySequence , Line = QVariant::Line , LineF = QVariant::LineF , List = QVariant::List , Locale = QVariant::Locale , Map = QVariant::Map , Matrix4x4 = QVariant::Matrix4x4 , Palette = QVariant::Palette , Pen = QVariant::Pen , Pixmap = QVariant::Pixmap , Point = QVariant::Point , PointF = QVariant::PointF , Polygon = QVariant::Polygon , Rect = QVariant::Rect , RectF = QVariant::RectF , Region = QVariant::Region , Size = QVariant::Size , SizeF = QVariant::SizeF , SizePolicy = QVariant::SizePolicy , String = QVariant::String , StringList = QVariant::StringList , TextFormat = QVariant::TextFormat , TextLength = QVariant::TextLength , Time = QVariant::Time , Transform = QVariant::Transform , Url = QVariant::Url , Vector2D = QVariant::Vector2D , Vector3D = QVariant::Vector3D , Vector4D = QVariant::Vector4D , Quaternion = QVariant::Quaternion , UInt = QVariant::UInt , ULongLong = QVariant::ULongLong , UserType = QVariant::UserType } |
enum | Orientation { UnknownOrientation = -1 , Any = 0 , CW = 1 , CCW = 2 } |
enum | OrthoMode { OrthoVertical , OrthoHorizonal , Orthogonal } |
Orthogonal mode, used for snap restrictions. More... | |
enum | ProjectionRenderingHint { RenderTop , RenderSide , RenderFront , RenderThreeD } |
Sets the current rendering hint for exports. More... | |
enum | Side { NoSide = 0 , LeftHand = 1 , RightHand = 2 , BothSides = 3 } |
Side used for side of a point relative to an entity (right hand or left hand side) More... | |
enum | TextDrawingDirection { LeftToRight = 1 , TopToBottom = 3 , ByStyle = 5 } |
Text drawing direction. More... | |
enum | TextLineSpacingStyle { AtLeast = 1 , Exact = 2 } |
Line spacing style for texts. More... | |
enum | Unit { None = 0 , Inch = 1 , Foot = 2 , Mile = 3 , Millimeter = 4 , Centimeter = 5 , Meter = 6 , Kilometer = 7 , Microinch = 8 , Mil = 9 , Yard = 10 , Angstrom = 11 , Nanometer = 12 , Micron = 13 , Decimeter = 14 , Decameter = 15 , Hectometer = 16 , Gigameter = 17 , Astro = 18 , Lightyear = 19 , Parsec = 20 , MaxUnit = Parsec } |
Enum of supported units (values correspond to DXF spec). More... | |
enum | VAlign { VAlignTop , VAlignMiddle , VAlignBase , VAlignBottom } |
Vertical alignments. More... | |
Static Public Member Functions | |
static QString | captured (const QRegularExpression &rx, const QRegularExpressionMatch &match, int nth=0) |
static bool | compare (const QPair< QVariant, RPropertyAttributes > &p1, const QPair< QVariant, RPropertyAttributes > &p2, bool noTolerance=false) |
static bool | compare (const QVariant &v1, const QVariant &v2, bool noTolerance=false) |
static int | compareAlphanumerical (const QString &s1, const QString &s2) |
Alphanumerical, locale aware, case insensitive comparison. | |
static QStringList | compareChunkify (const QString &s) |
static QString | convert (const QByteArray &str, const QString &codecName) |
static QRegularExpression | createRegEpCI (const QString &str, bool regExp2=false) |
static QString | escape (const QString &plain) |
static bool | exactMatch (const QRegularExpression &rx, const QString &string) |
static bool | exactMatch (const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string) |
static bool | exactMatch (const QString &rxStr, const QString &string) |
static QSize | getAvailableGeometry (int screen) |
static QString | getBuildCpuArchitecture () |
static QString | getCpuArchitecture () |
static int | getCpuCores () |
static QStringList | getDirectoryList (const QString &subDirectory) |
static QStringList | getFileList (const QString &subDirectory, const QString &fileExtension) |
Searches for files in various directories under the given subdirectory which match the given file extension. | |
static QString | getFontFamily (const QTextCharFormat &format) |
static QString | getFontFamilyFromFileName (const QString &fileName) |
static QStringList | getFontList () |
static QString | getHostId () |
Copyright (c) 2011-2018 by Andrew Mustun. | |
static int | getIdealThreadCount () |
static QStringList | getLinetypeList (bool metric) |
static int | getMetaType (const QVariant &v) |
static QSizeF | getPageSize (const QString &name) |
static int | getPageSizeId (const QString &name) |
static QStringList | getPatternList (bool metric) |
static int | getScreenCount () |
static QString | getSystemId () |
static QString | getWindowManagerId () |
static int | indexIn (const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string, int from=0) |
static bool | lessThanAlphanumerical (const QString &s1, const QString &s2) |
template<class T > | |
static bool | mapContainsCaseInsensitive (const QMap< QString, T > &map, const QString &key) |
template<class T > | |
static T | mapValueCaseInsensitive (const QMap< QString, T > &map, const QString &key) |
static int | matchedLength (const QRegularExpression &rx, const QRegularExpressionMatch &match) |
static void | setUtf8Codec (QTextStream &ts) |
static bool | showInFileManager (const QString &filePaths) |
static QStringList | sortAlphanumerical (const QStringList &list) |
Alphanumerical sorting. | |
template<class T > | |
static QList< T > | toList (const QSet< T > &set) |
template<class T > | |
static QSet< T > | toSet (const QList< T > &list) |
template<class T > | |
static QList< T > | unique (const QList< T > &list) |
Static Public Attributes | |
static const double | AngleTolerance = 1.0e-9 |
static const QPrinter::Orientation | Landscape = QPrinter::Landscape |
static const Qt::MouseButton | MiddleButton = Qt::MidButton |
static const double | PointTolerance = 1.0e-9 |
Copyright (c) 2011-2018 by Andrew Mustun. | |
static const QPrinter::Orientation | Portrait = QPrinter::Portrait |
Class namespace for various global enums.
Most enums fit in a class, but some are truly global, others cannot be declared in a class because this would result in problems with include files that depend on each other (note that there is no way to forward-declare nested classes or enums).
enum RS::AngleFormat |
Angle format for printing angles.
enum RS::AngleUnit |
enum RS::BooleanOperation |
enum RS::Easing |
enum RS::Ending |
enum RS::EndType |
enum RS::EntityType |
Entity types used for property handling / filtering.
Enumerator | |
---|---|
ObjectAll | |
ObjectUnknown | Unknown object. |
ObjectLinetype | |
ObjectLayer | |
ObjectBlock | |
ObjectLayout | |
ObjectLayerState | |
ObjectView | |
ObjectUcs | |
ObjectDocumentVariable | |
ObjectDimStyle | |
EntityAll | All entities (for filters) |
EntityUnknown | Unknown entity. |
EntityAttribute | Block attribute. |
EntityAttributeDefinition | Block attribute definition. |
EntityBlockRef | Block reference. |
EntityBlockRefAttr | Block reference with attributes. |
EntityPoint | |
EntityLine | Line. |
EntityXLine | XLine. |
EntityRay | Ray. |
EntityPolyline | |
EntityArc | Arc. |
EntityCircle | |
EntityEllipse | |
EntitySolid | Solid. |
Entity3dFace | 3d Face |
EntityTextBased | Any text based entity (text, attribute def, attribute) |
EntityText | Text. |
EntityTrace | Trace. |
EntityFace | Face. |
EntityDimension | Any Dimension. |
EntityDimLinear | Any linear dimension. |
EntityDimAligned | Linear aligned Dimension. |
EntityDimRotated | Linear rotated Dimension. |
EntityDimRadial | Radial Dimension. |
EntityDimDiametric | Diametric Dimension. |
EntityDimAngular | Angular Dimension. |
EntityDimAngular2L | Angular Dimension from 2 lines. |
EntityDimAngular3P | Angular Dimension from 3 points. |
EntityDimArcLength | |
EntityDimOrdinate | Ordinate Dimension. |
EntityHatch | |
EntityImage | |
EntityLeader | |
EntitySpline | |
EntityViewport | Viewport. |
EntityTolerance | Tolerance. |
EntityWipeout | Wipeout. |
EntityXRef | XRef. |
EntityCustom | Custom entity with custom renderer. |
EntityUser | User defined entity. Use this to identify entities that are added in a separate library and resort to C++ RTTI for RTTI. |
enum RS::FillType |
enum RS::From |
enum RS::HAlign |
Projection type for isometric projections.
enum RS::JoinType |
enum RS::KnownVariable |
Well established document variables.
Enumerator | |
---|---|
ANGBASE | |
ANGDIR | |
ATTMODE | |
AUNITS | |
AUPREC | |
CECOLOR | |
CELTSCALE | |
CHAMFERA | |
CHAMFERB | |
CHAMFERC | |
CHAMFERD | |
CLAYER | |
CMLJUST | |
CMLSCALE | |
DIMADEC | Decimal places in angular dimensions. |
DIMALT | |
DIMALTD | |
DIMALTF | |
DIMALTRND | |
DIMALTTD | |
DIMALTTZ | |
DIMALTU | |
DIMALTZ | |
DIMAPOST | |
DIMASZ | |
DIMATFIT | |
DIMAUNIT | Formatting of angular dimensions. |
DIMAZIN | Controls display of leading / trailing zeros for angular dimensions. |
DIMBLK | |
DIMBLK1 | |
DIMBLK2 | |
DIMCEN | |
DIMCLRD | |
DIMCLRE | |
DIMCLRT | |
DIMDEC | Decimal places in linear dimensions. |
DIMDLE | |
DIMDLI | |
DIMDSEP | Decimal separator in dimensions. |
DIMEXE | |
DIMEXO | |
DIMFRAC | |
DIMGAP | Distance between dimension text and dimension lines, negative for box. |
DIMJUST | Vertical position of dimension label. |
DIMLDRBLK | |
DIMLFAC | |
DIMLIM | |
DIMLUNIT | Formatting of linear dimensions. |
DIMLWD | |
DIMLWE | |
DIMPOST | |
DIMRND | |
DIMSAH | |
DIMSCALE | |
DIMSD1 | |
DIMSD2 | |
DIMSE1 | |
DIMSE2 | |
DIMSOXD | |
DIMTAD | Vertical position of dimension label. |
DIMTDEC | |
DIMTFAC | |
DIMTIH | |
DIMTIX | |
DIMTM | |
DIMTOFL | |
DIMTOH | |
DIMTOL | |
DIMTOLJ | |
DIMTP | |
DIMTSZ | Archtick size or 0 for arrows. |
DIMTVP | |
DIMTXSTY | |
DIMTXT | Dimension text size. |
DIMTZIN | |
DIMUPT | |
DIMZIN | Controls display of leading / trailing zeros for linear dimensions. |
DISPSILH | |
DWGCODEPAGE | |
DRAWORDERCTL | |
ELEVATION | |
EXTMAX | |
EXTMIN | |
FACETRES | |
FILLETRAD | |
FILLMODE | |
IMAGEFRAME | |
INSBASE | |
INSUNITS | |
ISOLINES | |
LIMCHECK | |
LIMMAX | |
LIMMIN | |
LTSCALE | |
LUNITS | |
LUPREC | |
MAXACTVP | |
MEASUREMENT | |
MIRRTEXT | |
ORTHOMODE | |
PDMODE | |
PDSIZE | |
PELEVATION | |
PELLIPSE | |
PEXTMAX | |
PEXTMIN | |
PINSBASE | |
PLIMCHECK | |
PLIMMAX | |
PLIMMIN | |
PLINEGEN | |
PLINEWID | |
PROXYGRAPHICS | |
PSLTSCALE | |
PUCSNAME | |
PUCSORG | |
PUCSXDIR | |
PUCSYDIR | |
QTEXTMODE | |
REGENMODE | |
SHADEDGE | |
SHADEDIF | |
SKETCHINC | |
SKPOLY | |
SPLFRAME | |
SPLINESEGS | |
SPLINETYPE | |
SURFTAB1 | |
SURFTAB2 | |
SURFTYPE | |
SURFU | |
SURFV | |
TEXTQLTY | |
TEXTSIZE | |
TEXTSTYLE | |
THICKNESS | |
TILEMODE | |
TRACEWID | |
TREEDEPTH | |
UCSNAME | |
UCSORG | |
UCSXDIR | |
UCSYDIR | |
UNITMODE | |
USERI1 | |
USERI2 | |
USERI3 | |
USERI4 | |
USERI5 | |
USERR1 | |
USERR2 | |
USERR3 | |
USERR4 | |
USERR5 | |
USRTIMER | |
VISRETAIN | |
WORLDVIEW | |
MaxKnownVariable | |
INVALID |
enum RS::LinearFormat |
Format for length values.
enum RS::Measurement |
enum RS::MessageType |
enum RS::MetaType |
enum RS::Orientation |
enum RS::OrthoMode |
enum RS::Side |
Text drawing direction.
Enumerator | |
---|---|
LeftToRight | Left to right. |
TopToBottom | Top to bottom. |
ByStyle | Inherited from associated text style. |
Line spacing style for texts.
Enumerator | |
---|---|
AtLeast | Taller characters will override. |
Exact | Taller characters will not override. |
enum RS::Unit |
Enum of supported units (values correspond to DXF spec).
enum RS::VAlign |
|
static |
|
static |
noTolerance | True strict comparison of doubles. |
Alphanumerical, locale aware, case insensitive comparison.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Searches for files in various directories under the given subdirectory which match the given file extension.
|
inlinestatic |
|
static |
|
static |
|
static |
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.
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
Alphanumerical sorting.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
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.
|
static |