Base::Unit Class Reference

The Unit class. More...

#include <Unit.h>

Public Member Functions

const UnitSignaturegetSignature () const
 get the unit signature More...
 
QString getString () const
 
QString getTypeString () const
 get the type as an string such as "Area", "Length" or "Pressure". More...
 
bool isEmpty () const
 
bool operator!= (const Unit &that) const
 
Unit operator* (const Unit &) const
 
Unitoperator*= (const Unit &that)
 Operators. More...
 
Unit operator/ (const Unit &) const
 
Unitoperator/= (const Unit &that)
 
Unitoperator= (const Unit &)
 
bool operator== (const Unit &) const
 
Unit pow (signed char exp) const
 
 Unit ()
 
 Unit (const QString &expr)
 
 Unit (const Unit &)
 
 Unit (int8_t Length, int8_t Mass=0, int8_t Time=0, int8_t ElectricCurrent=0, int8_t ThermodynamicTemperature=0, int8_t AmountOfSubstance=0, int8_t LuminousIntensity=0, int8_t Angle=0)
 default constructor More...
 
 ~Unit ()
 Destruction. More...
 

Static Public Attributes

static Unit Acceleration
 
static Unit AmountOfSubstance
 
static Unit Angle
 Angle. More...
 
static Unit AngleOfFriction
 
static Unit Area
 
static Unit CompressiveStrength
 
static Unit Density
 
static Unit DynamicViscosity
 
static Unit ElectricalCapacitance
 
static Unit ElectricalConductance
 
static Unit ElectricalConductivity
 
static Unit ElectricalInductance
 
static Unit ElectricalResistance
 
static Unit ElectricCharge
 
static Unit ElectricCurrent
 
static Unit ElectricPotential
 
static Unit Force
 
static Unit Frequency
 
static Unit HeatFlux
 
static Unit KinematicViscosity
 
static Unit Length
 Predefined Unit types. More...
 
static Unit LuminousIntensity
 
static Unit MagneticFieldStrength
 
static Unit MagneticFlux
 
static Unit MagneticFluxDensity
 
static Unit Mass
 Mass unit. More...
 
static Unit Power
 
static Unit Pressure
 
static Unit ShearModulus
 
static Unit SpecificEnergy
 
static Unit SpecificHeat
 
static Unit Stiffness
 
static Unit Stress
 
static Unit Temperature
 
static Unit ThermalConductivity
 
static Unit ThermalExpansionCoefficient
 
static Unit ThermalTransferCoefficient
 
static Unit TimeSpan
 
static Unit UltimateTensileStrength
 
static Unit VacuumPermittivity
 
static Unit Velocity
 
static Unit Volume
 
static Unit VolumetricThermalExpansionCoefficient
 
static Unit Work
 
static Unit YieldStrength
 
static Unit YoungsModulus
 

Protected Attributes

UnitSignature Sig
 

Detailed Description

The Unit class.

Constructor & Destructor Documentation

◆ Unit() [1/4]

Unit::Unit ( int8_t  Length,
int8_t  Mass = 0,
int8_t  Time = 0,
int8_t  ElectricCurrent = 0,
int8_t  ThermodynamicTemperature = 0,
int8_t  AmountOfSubstance = 0,
int8_t  LuminousIntensity = 0,
int8_t  Angle = 0 
)

◆ Unit() [2/4]

◆ Unit() [3/4]

Unit::Unit ( const Unit that)

References Sig.

◆ Unit() [4/4]

◆ ~Unit()

Base::Unit::~Unit ( )

Destruction.

Member Function Documentation

◆ getSignature()

const UnitSignature & Base::Unit::getSignature ( ) const

get the unit signature

◆ getString()

◆ getTypeString()

◆ isEmpty()

◆ operator!=()

bool Base::Unit::operator!= ( const Unit that) const

◆ operator*()

◆ operator*=()

Unit & Base::Unit::operator*= ( const Unit that)

Operators.

◆ operator/()

◆ operator/=()

Unit & Base::Unit::operator/= ( const Unit that)

◆ operator=()

◆ operator==()

◆ pow()

Member Data Documentation

◆ Acceleration

◆ AmountOfSubstance

Unit Unit::AmountOfSubstance
static

◆ Angle

◆ AngleOfFriction

Unit Unit::AngleOfFriction
static

◆ Area

◆ CompressiveStrength

Unit Unit::CompressiveStrength
static

◆ Density

◆ DynamicViscosity

◆ ElectricalCapacitance

◆ ElectricalConductance

◆ ElectricalConductivity

◆ ElectricalInductance

◆ ElectricalResistance

◆ ElectricCharge

◆ ElectricCurrent

Unit Unit::ElectricCurrent
static

◆ ElectricPotential

◆ Force

◆ Frequency

◆ HeatFlux

◆ KinematicViscosity

◆ Length

Unit Unit::Length
static

Predefined Unit types.

Length unit

Referenced by ArchStructure.CommandStructuralSystem::Activated(), PartDesign::Chamfer::Chamfer(), PartGui::FilletRadiusDelegate::createEditor(), PartGui::createLinearDimension(), MeshPartGui::CrossSections::CrossSections(), PartGui::CrossSections::CrossSections(), Gui::PointMarker::customEvent(), PartGui::DlgExtrusion::DlgExtrusion(), PartGui::DlgFilletEdges::DlgFilletEdges(), TechDrawGui::DlgPrefsTechDrawAnnotationImp::DlgPrefsTechDrawAnnotationImp(), TechDrawGui::DlgPrefsTechDrawDimensionsImp::DlgPrefsTechDrawDimensionsImp(), TechDrawGui::DlgPrefsTechDrawGeneralImp::DlgPrefsTechDrawGeneralImp(), TechDrawGui::DlgPrefsTechDrawScaleImp::DlgPrefsTechDrawScaleImp(), PartGui::DlgRevolution::DlgRevolution(), Gui::Dialog::DlgUnitsCalculator::DlgUnitsCalculator(), Gui::TDragger::drag(), TechDraw::DrawViewDimension::DrawViewDimension(), PartGui::dumpLinearResults(), SketcherGui::EditDatumDialog::exec(), App::FeatureTest::FeatureTest(), PartDesign::Fillet::Fillet(), TechDraw::DrawViewDimension::formatValue(), ArchPanel.CommandPanel::getPoint(), getTypeString(), App::PropertyVectorDistance::getUnit(), App::PropertyPosition::getUnit(), App::PropertyDirection::getUnit(), PartGui::Location::Location(), Gui::LocationWidget::LocationWidget(), PartGui::Mirroring::Mirroring(), PartGui::OffsetWidget::OffsetWidget(), Gui::Dialog::Transform::on_applyButton_clicked(), TechDraw::DrawViewDimension::onChanged(), Gui::Dialog::Placement::Placement(), TechDraw::DrawSVGTemplate::processTemplate(), App::PropertyDistance::PropertyDistance(), App::PropertyLength::PropertyLength(), Base::UnitsSchemaCentimeters::schemaTranslate(), Base::UnitsSchemaFemMilliMeterNewton::schemaTranslate(), Base::UnitsSchemaImperial1::schemaTranslate(), Base::UnitsSchemaImperialDecimal::schemaTranslate(), Base::UnitsSchemaImperialBuilding::schemaTranslate(), Base::UnitsSchemaImperialCivil::schemaTranslate(), Base::UnitsSchemaInternal::schemaTranslate(), Base::UnitsSchemaMKS::schemaTranslate(), Base::UnitsSchemaMmMin::schemaTranslate(), SketcherGui::SketcherGeneralWidget::setGridSize(), ArchPanel.CommandPanel::setLength(), Gui::Dialog::Transform::setTransformStrategy(), TechDrawGui::TaskSectionView::setUiEdit(), TechDrawGui::TaskCenterLine::setUiEdit(), TechDrawGui::TaskDetail::setUiFromFeat(), TechDrawGui::TaskSectionView::setUiPrimary(), TechDrawGui::TaskCenterLine::setUiPrimary(), TechDrawGui::TaskCosmeticLine::setUiPrimary(), TechDrawGui::TaskCosVertex::setUiPrimary(), TechDrawGui::TaskLeaderLine::setUiPrimary(), TechDrawGui::TaskRichAnno::setUiPrimary(), PartGui::DlgFilletEdges::setupFillet(), Gui::PropertyEditor::PropertyVectorDistanceItem::setValue(), TechDrawGui::TaskActiveView::TaskActiveView(), TechDrawGui::TaskBalloon::TaskBalloon(), TechDrawGui::TaskDimension::TaskDimension(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), TechDrawGui::TaskProjGroup::TaskProjGroup(), Part::Thickness::Thickness(), Gui::PropertyEditor::PropertyPlacementItem::toolTip(), Gui::PropertyEditor::PropertyVectorDistanceItem::toString(), Gui::PropertyEditor::PropertyPlacementItem::toString(), Unit(), ArchPanel.CommandPanel::update(), Gui::ViewProviderMeasureDistance::updateData(), SketcherGui::PropertyConstraintListItem::value(), and InspectionGui::VisualInspection::VisualInspection().

◆ LuminousIntensity

Unit Unit::LuminousIntensity
static

◆ MagneticFieldStrength

◆ MagneticFlux

◆ MagneticFluxDensity

◆ Mass

◆ Power

◆ Pressure

◆ ShearModulus

Unit Unit::ShearModulus
static

◆ Sig

UnitSignature Base::Unit::Sig
protected

◆ SpecificEnergy

◆ SpecificHeat

◆ Stiffness

◆ Stress

◆ Temperature

◆ ThermalConductivity

◆ ThermalExpansionCoefficient

◆ ThermalTransferCoefficient

◆ TimeSpan

◆ UltimateTensileStrength

Unit Unit::UltimateTensileStrength
static

◆ VacuumPermittivity

Unit Unit::VacuumPermittivity
static

◆ Velocity

◆ Volume

◆ VolumetricThermalExpansionCoefficient

Unit Unit::VolumetricThermalExpansionCoefficient
static

◆ Work

◆ YieldStrength

Unit Unit::YieldStrength
static

◆ YoungsModulus

Unit Unit::YoungsModulus
static

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