QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDimStyleData Class Reference

Copyright (c) 2011-2021 by Andrew Mustun. More...

#include <RDimStyleData.h>

Inheritance diagram for RDimStyleData:
RDimStyle

Public Member Functions

void clear ()
 
bool getBool (RS::KnownVariable key) const
 
RColor getColor (RS::KnownVariable key) const
 
double getDouble (RS::KnownVariable key) const
 
int getInt (RS::KnownVariable key) const
 
QVariant getVariant (RS::KnownVariable key) const
 
bool hasOverride (RS::KnownVariable key) const
 
void initFromSettings ()
 
bool isValid () const
 
 RDimStyleData (bool override=false)
 
void removeBool (RS::KnownVariable key)
 
void removeColor (RS::KnownVariable key)
 
void removeDouble (RS::KnownVariable key)
 
void removeInt (RS::KnownVariable key)
 
virtual void setBool (RS::KnownVariable key, bool val)
 
virtual void setColor (RS::KnownVariable key, const RColor &val)
 
virtual void setDouble (RS::KnownVariable key, double val)
 
virtual void setInt (RS::KnownVariable key, int val)
 
void setVariant (RS::KnownVariable key, const QVariant &val)
 
virtual ~RDimStyleData ()
 

Static Public Member Functions

static bool getBoolDefault (RS::KnownVariable key)
 
static RColor getColorDefault (RS::KnownVariable key)
 
static double getDoubleDefault (RS::KnownVariable key)
 
static int getIntDefault (RS::KnownVariable key)
 
static RS::KnownVariableType getVariableType (RS::KnownVariable key)
 
static QVariant getVariantDefault (RS::KnownVariable key)
 
static void init ()
 
static void initDefaults ()
 

Static Public Attributes

static QMap< RS::KnownVariable, RS::KnownVariableTypedimXTypes
 

Protected Attributes

QMap< RS::KnownVariable, bool > mapBool
 
QMap< RS::KnownVariable, RColormapColor
 
QMap< RS::KnownVariable, double > mapDouble
 
QMap< RS::KnownVariable, int > mapInt
 

Static Protected Attributes

static QMap< RS::KnownVariable, QVariant > mapDefaults
 Copyright (c) 2011-2021 by Andrew Mustun.
 

Friends

QDebug operator<< (QDebug dbg, const RDimStyleData &d)
 

Detailed Description

Copyright (c) 2011-2021 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. Dimension style data class.

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Constructor & Destructor Documentation

◆ RDimStyleData()

RDimStyleData::RDimStyleData ( bool override = false)

◆ ~RDimStyleData()

RDimStyleData::~RDimStyleData ( )
virtual

Member Function Documentation

◆ clear()

void RDimStyleData::clear ( )
inline

◆ getBool()

bool RDimStyleData::getBool ( RS::KnownVariable key) const
inline

◆ getBoolDefault()

bool RDimStyleData::getBoolDefault ( RS::KnownVariable key)
static

◆ getColor()

RColor RDimStyleData::getColor ( RS::KnownVariable key) const
inline

◆ getColorDefault()

RColor RDimStyleData::getColorDefault ( RS::KnownVariable key)
static

◆ getDouble()

double RDimStyleData::getDouble ( RS::KnownVariable key) const
inline

◆ getDoubleDefault()

double RDimStyleData::getDoubleDefault ( RS::KnownVariable key)
static

◆ getInt()

int RDimStyleData::getInt ( RS::KnownVariable key) const
inline

◆ getIntDefault()

int RDimStyleData::getIntDefault ( RS::KnownVariable key)
static

◆ getVariableType()

static RS::KnownVariableType RDimStyleData::getVariableType ( RS::KnownVariable key)
inlinestatic

◆ getVariant()

QVariant RDimStyleData::getVariant ( RS::KnownVariable key) const
inline

◆ getVariantDefault()

QVariant RDimStyleData::getVariantDefault ( RS::KnownVariable key)
static

◆ hasOverride()

bool RDimStyleData::hasOverride ( RS::KnownVariable key) const
inline

◆ init()

void RDimStyleData::init ( )
static

◆ initDefaults()

void RDimStyleData::initDefaults ( )
static

◆ initFromSettings()

void RDimStyleData::initFromSettings ( )

◆ isValid()

bool RDimStyleData::isValid ( ) const
inline

◆ removeBool()

void RDimStyleData::removeBool ( RS::KnownVariable key)
inline

◆ removeColor()

void RDimStyleData::removeColor ( RS::KnownVariable key)
inline

◆ removeDouble()

void RDimStyleData::removeDouble ( RS::KnownVariable key)
inline

◆ removeInt()

void RDimStyleData::removeInt ( RS::KnownVariable key)
inline

◆ setBool()

virtual void RDimStyleData::setBool ( RS::KnownVariable key,
bool val )
inlinevirtual

◆ setColor()

virtual void RDimStyleData::setColor ( RS::KnownVariable key,
const RColor & val )
inlinevirtual

◆ setDouble()

virtual void RDimStyleData::setDouble ( RS::KnownVariable key,
double val )
inlinevirtual

◆ setInt()

virtual void RDimStyleData::setInt ( RS::KnownVariable key,
int val )
inlinevirtual

◆ setVariant()

void RDimStyleData::setVariant ( RS::KnownVariable key,
const QVariant & val )
inline

Friends And Related Symbol Documentation

◆ operator<<

QDebug operator<< ( QDebug dbg,
const RDimStyleData & d )
friend

Member Data Documentation

◆ dimXTypes

QMap< RS::KnownVariable, RS::KnownVariableType > RDimStyleData::dimXTypes
static

◆ mapBool

QMap<RS::KnownVariable, bool> RDimStyleData::mapBool
protected

◆ mapColor

QMap<RS::KnownVariable, RColor> RDimStyleData::mapColor
protected

◆ mapDefaults

QMap< RS::KnownVariable, QVariant > RDimStyleData::mapDefaults
staticprotected

Copyright (c) 2011-2021 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.

◆ mapDouble

QMap<RS::KnownVariable, double> RDimStyleData::mapDouble
protected

◆ mapInt

QMap<RS::KnownVariable, int> RDimStyleData::mapInt
protected

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