Skip to content

RLineweight

Class in Core Module
Header: #include <src/core/RLineweight.h>

Scriptable: This class is available in script environments.

Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.

enum Lineweight { Weight000, Weight005, Weight009, Weight013, Weight015, Weight018, Weight020, Weight025, Weight030, Weight035, Weight040, Weight050, Weight053, Weight060, Weight070, Weight080, Weight090, Weight100, Weight106, Weight120, Weight140, Weight158, Weight200, Weight211, WeightByLayer, WeightByBlock, WeightByLwDefault, WeightInvalid }
RLineweight()
static RLineweight::Lineweight getClosestMatch(double lw)
static QIcon getIcon(RLineweight::Lineweight color, const QSize &size=RDEFAULT_QSIZE_ICON)
static QList< QPair< QString, RLineweight::Lineweight > > getList(bool onlyFixed, bool noDefault=false)
static QString getName(RLineweight::Lineweight lineweight)
static void init()
static void init(const QString &cn, RLineweight::Lineweight lineweight)
static QMap< QPair< RLineweight::Lineweight, QPair< int, int > >, QIcon > iconMap
static bool isInitialized
static QList< QPair< QString, RLineweight::Lineweight > > list

enum Lineweight
Value Description
Weight000 = 0
Weight005 = 5
Weight009 = 9
Weight013 = 13
Weight015 = 15
Weight018 = 18
Weight020 = 20
Weight025 = 25
Weight030 = 30
Weight035 = 35
Weight040 = 40
Weight050 = 50
Weight053 = 53
Weight060 = 60
Weight070 = 70
Weight080 = 80
Weight090 = 90
Weight100 = 100
Weight106 = 106
Weight120 = 120
Weight140 = 140
Weight158 = 158
Weight200 = 200
Weight211 = 211
WeightByLayer = -1
WeightByBlock = -2
WeightByLwDefault = -3
WeightInvalid = -4

RLineweight::RLineweight()

static RLineweight::Lineweight RLineweight::getClosestMatch(double lw)

static

static QIcon RLineweight::getIcon(RLineweight::Lineweight color, const QSize &size=RDEFAULT_QSIZE_ICON)

static

static QList< QPair< QString, RLineweight::Lineweight > > RLineweight::getList(bool onlyFixed, bool noDefault=false)

static

static QString RLineweight::getName(RLineweight::Lineweight lineweight)

static

static void RLineweight::init()

static private

static void RLineweight::init(const QString &cn, RLineweight::Lineweight lineweight)

static private

static QMap< QPair< RLineweight::Lineweight, QPair< int, int > >, QIcon > RLineweight::iconMap

static private

static bool RLineweight::isInitialized = false

static private

static QList< QPair< QString, RLineweight::Lineweight > > RLineweight::list

static private

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.