QCAD
Open Source 2D CAD
RS Class Reference

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, 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, EntityUser
}
 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, 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  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  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 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. More...
 
static QStringList compareChunkify (const QString &s)
 
static QString getBuildCpuArchitecture ()
 
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. More...
 
static QStringList getFontList ()
 
static QString getHostId ()
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
static int getIdealThreadCount ()
 
static QStringList getLinetypeList (bool metric)
 
static QStringList getPatternList (bool metric)
 
static QString getSystemId ()
 
static QString getWindowManagerId ()
 
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 bool showInFileManager (const QString &filePaths)
 
static QStringList sortAlphanumerical (const QStringList &list)
 Alphanumerical sorting. More...
 

Static Public Attributes

static const double AngleTolerance = 1.0e-9
 
static const double PointTolerance = 1.0e-9
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 

Detailed Description

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).

Scriptable:\nThis class is available in script environments.\n

Member Enumeration Documentation

◆ AngleFormat

Angle format for printing angles.

Enumerator
DegreesDecimal 

Degrees with decimal point (e.g.

24.5<degree symbol>)

DegreesMinutesSeconds 

Degrees, Minutes and Seconds (e.g.

24<degree symbol>30'5'')

Gradians 

Gradians with decimal point (e.g.

390.5)

Radians 

Radians with decimal point (e.g.

1.57)

Surveyors 

Surveyor's units.

◆ AngleUnit

Angle Units.

Enumerator
Deg 

Degrees.

Rad 

Radians.

Gra 

Gradians.

◆ BooleanOperation

Enumerator
Intersection 
Union 
Difference 
Xor 

◆ Easing

enum RS::Easing
Enumerator
Linear 
InQuad 
OutQuad 
InOutQuad 
OutInQuad 
InCubic 
OutCubic 
InOutCubic 
OutInCubic 
InQuart 
OutQuart 
InOutQuart 
OutInQuart 
InQuint 
OutQuint 
InOutQuint 
OutInQuint 
InSine 
OutSine 
InOutSine 
OutInSine 
InExpo 
OutExpo 
InOutExpo 
OutInExpo 
InCirc 
OutCirc 
InOutCirc 
OutInCirc 
InElastic 
OutElastic 
InOutElastic 
OutInElastic 
InBack 
OutBack 
InOutBack 
OutInBack 
InBounce 
OutBounce 
InOutBounce 
OutInBounce 

◆ Ending

enum RS::Ending

Entity ending.

Used for returning which end of an entity is meant.

Enumerator
EndingStart 

Start point.

EndingEnd 

End point.

EndingNone 

Neither.

◆ EndType

Enumerator
EndClosedPolygon 
EndClosedLine 
EndOpenButt 
EndOpenSquare 
EndOpenRound 
EndOpenSingle 

◆ EntityType

Entity types used for property handling / filtering.

Todo:
QCAD 4: rename to objectType
Enumerator
ObjectAll 
ObjectUnknown 

Unknown object.

ObjectLinetype 
ObjectLayer 
ObjectBlock 
ObjectLayout 
ObjectLayerState 
ObjectView 
ObjectUcs 
ObjectDocumentVariable 
EntityAll 

All entities (for filters)

EntityUnknown 

Unknown entity.

EntityAttribute 

Block attribute.

EntityAttributeDefinition 

Block attribute definition.

EntityBlockRef 

Block reference.

EntityBlockRefAttr 

Block reference with attributes.

EntityPoint 

Point.

EntityLine 

Line.

EntityXLine 

XLine.

EntityRay 

Ray.

EntityPolyline 

Polyline.

EntityArc 

Arc.

EntityCircle 

Circle.

EntityEllipse 

Ellipse.

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 

Arc Length Dimension.

EntityDimOrdinate 

Ordinate Dimension.

EntityHatch 

Hatch.

EntityImage 

Image.

EntityLeader 

Leader.

EntitySpline 

Spline.

EntityViewport 

Viewport.

EntityTolerance 

Tolerance.

EntityUser 

User defined entity.

Use this to identify entities that are added in a separate library and resort to C++ RTTI for RTTI.

◆ FillType

Enumerator
EvenOdd 
NonZero 
Positive 
Negative 

◆ From

enum RS::From

End used to specify from which end of a shape to measure a distance.

Enumerator
FromStart 
FromEnd 
FromAny 

Start or end.

AlongPolyline 

◆ HAlign

enum RS::HAlign

Horizontal alignments.

Enumerator
HAlignLeft 

Left.

HAlignCenter 

Centered.

HAlignRight 

Right.

HAlignAlign 

Aligned.

HAlignMid 

Middle (?)

HAlignFit 

Fit.

◆ IsoProjectionType

Projection type for isometric projections.

Enumerator
NoProjection 

No projection (2d x/y)

Top 

Top projection (x/y)

Bottom 

Bottom projection (x/y)

Left 

Front left projection (x/z)

LeftBack 

Back left projection (x/z)

Right 

Front right projection (y/z)

RightBack 

Back right projection (y/z)

Isometric 

Isometric.

IsometricTrue 

Isometric.

Planometric 

Planometric.

Dimetric 

Dimetric.

Cabinet 

Cabinet.

Cabinet30 

Cabinet30.

Cavalier 

Cavalier.

User1 

User defined 1.

User2 

User defined 2.

User3 

User defined 3.

User4 

User defined 4.

IsoTop 
IsoBottom 
IsoLeft 
IsoLeftBack 
IsoRight 
IsoRightBack 

◆ JoinType

Enumerator
JoinBevel 
JoinRound 
JoinMiter 

◆ 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 
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 

◆ LinearFormat

Format for length values.

Enumerator
Scientific 

Scientific (e.g.

2.5E+05)

Decimal 

Decimal (e.g.

9.5)

Engineering 

Engineering (e.g.

7' 11.5")

ArchitecturalStacked 

Architectural stacked (e.g.

7'-9 1/8")

FractionalStacked 

Fractional stacked (e.g.

7 9 1/8)

Architectural 

Architectural (e.g.

?)

Fractional 

Fractional (e.g.

?)

WindowsDesktop 

Not supported.

◆ Measurement

Enum of supported measurement systems.

Enumerator
UnknownMeasurement 
Imperial 

Imperial.

Metric 

Metric.

◆ MessageType

Message type for debugging and displaying user messages.

Enumerator
Print 
Debug 
Warning 
Critical 
Command 

◆ Orientation

Enumerator
UnknownOrientation 
Any 
CW 
CCW 

◆ OrthoMode

Orthogonal mode, used for snap restrictions.

Enumerator
OrthoVertical 
OrthoHorizonal 
Orthogonal 

◆ ProjectionRenderingHint

Sets the current rendering hint for exports.

See also
RExporter::setProjectionRenderingHint
Enumerator
RenderTop 
RenderSide 
RenderFront 
RenderThreeD 

◆ Side

enum RS::Side

Side used for side of a point relative to an entity (right hand or left hand side)

Enumerator
NoSide 
LeftHand 
RightHand 
BothSides 

◆ TextDrawingDirection

Text drawing direction.

Enumerator
LeftToRight 

Left to right.

TopToBottom 

Top to bottom.

ByStyle 

Inherited from associated text style.

◆ TextLineSpacingStyle

Line spacing style for texts.

Enumerator
AtLeast 

Taller characters will override.

Exact 

Taller characters will not override.

◆ Unit

enum RS::Unit

Enum of supported units (values correspond to DXF spec).

Enumerator
None 

No unit (unit from parent)

Inch 

Inch.

Foot 

Foot: 12 Inches.

Mile 

Mile: 1760 Yards = 1609 m.

Millimeter 

Millimeter: 0.001m.

Centimeter 

Centimeter: 0.01m.

Meter 

Meter.

Kilometer 

Kilometer: 1000m.

Microinch 

Microinch: 0.000001.

Mil 

Mil = 0.001 Inch.

Yard 

Yard: 3 Feet.

Angstrom 

Angstrom: 10^-10m

Nanometer 

Nanometer: 10^-9m

Micron 

Micron: 10^-6m

Decimeter 

Decimeter: 0.1m.

Decameter 

Decameter: 10m.

Hectometer 

Hectometer: 100m.

Gigameter 

Gigameter: 1000000m.

Astro 

Astro: 149.6 x 10^9m.

Lightyear 

Lightyear: 9460731798 x 10^6m.

Parsec 

Parsec: 30857 x 10^12.

MaxUnit 

◆ VAlign

enum RS::VAlign

Vertical alignments.

Enumerator
VAlignTop 

Top.

VAlignMiddle 

Middle.

VAlignBase 

Base line.

VAlignBottom 

Bottom.

Member Function Documentation

◆ compare() [1/2]

bool RS::compare ( const QPair< QVariant, RPropertyAttributes > &  p1,
const QPair< QVariant, RPropertyAttributes > &  p2,
bool  noTolerance = false 
)
static

◆ compare() [2/2]

bool RS::compare ( const QVariant &  v1,
const QVariant &  v2,
bool  noTolerance = false 
)
static
Returns
True if the two values are considered to be equal.
Parameters
noToleranceTrue strict comparison of doubles.

◆ compareAlphanumerical()

int RS::compareAlphanumerical ( const QString &  s1,
const QString &  s2 
)
static

Alphanumerical, locale aware, case insensitive comparison.

◆ compareChunkify()

QStringList RS::compareChunkify ( const QString &  s)
static
Returns
List of strings containing either only numbers or non-numbers. E.g. "abc123" -> "abc", "123"

◆ getBuildCpuArchitecture()

QString RS::getBuildCpuArchitecture ( )
static
Returns
x32 or x64, depending on the architecture the binary was built for.

◆ getCpuCores()

int RS::getCpuCores ( )
static
Returns
Number of CPU cores available.

◆ getDirectoryList()

QStringList RS::getDirectoryList ( const QString &  subDirectory)
static
Returns
List of all directories in subdirectory 'subDirectory' in all possible QCAD directories.

◆ getFileList()

QStringList RS::getFileList ( const QString &  subDirectory,
const QString &  fileExtension 
)
static

Searches for files in various directories under the given subdirectory which match the given file extension.

Returns
List of the absolute paths of the files found.

◆ getFontList()

QStringList RS::getFontList ( )
static
Returns
A list of absolute paths to all font files found.

◆ getHostId()

QString RS::getHostId ( )
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.

Returns
Unique combination of system ID (linux, freebsd, netbsd, openbsd, solaris, osx, win) and host name. E.g. "linux_vertigo". Used for test data that may differ on different machines.

◆ getIdealThreadCount()

int RS::getIdealThreadCount ( )
static
Returns
Ideal thread count for multithreading.

◆ getLinetypeList()

QStringList RS::getLinetypeList ( bool  metric)
static
Returns
A list of absolute paths to all pattern files found.

◆ getPatternList()

QStringList RS::getPatternList ( bool  metric)
static
Returns
A list of absolute paths to all pattern files found.

◆ getSystemId()

QString RS::getSystemId ( )
static
Returns
Unique system ID ("linux", "freebsd", "netbsd", "openbsd", "solaris", "osx", "win").

◆ getWindowManagerId()

QString RS::getWindowManagerId ( )
static

◆ lessThanAlphanumerical()

bool RS::lessThanAlphanumerical ( const QString &  s1,
const QString &  s2 
)
static

◆ mapContainsCaseInsensitive()

template<class T >
static bool RS::mapContainsCaseInsensitive ( const QMap< QString, T > &  map,
const QString &  key 
)
inlinestatic

◆ mapValueCaseInsensitive()

template<class T >
static T RS::mapValueCaseInsensitive ( const QMap< QString, T > &  map,
const QString &  key 
)
inlinestatic

◆ showInFileManager()

bool RS::showInFileManager ( const QString &  filePaths)
static

◆ sortAlphanumerical()

QStringList RS::sortAlphanumerical ( const QStringList &  list)
static

Alphanumerical sorting.

Member Data Documentation

◆ AngleTolerance

const double RS::AngleTolerance = 1.0e-9
static

◆ PointTolerance

const double RS::PointTolerance = 1.0e-9
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.


The documentation for this class was generated from the following files: