Base: Add moment unit
This commit is contained in:
@@ -2027,6 +2027,7 @@ void Application::initTypes()
|
||||
App::PropertyMagneticFluxDensity ::init();
|
||||
App::PropertyMagnetization ::init();
|
||||
App::PropertyMass ::init();
|
||||
App::PropertyMoment ::init();
|
||||
App::PropertyPressure ::init();
|
||||
App::PropertyPower ::init();
|
||||
App::PropertyShearModulus ::init();
|
||||
|
||||
@@ -555,6 +555,17 @@ PropertyMass::PropertyMass()
|
||||
setUnit(Base::Unit::Mass);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyMoment
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertyMoment, App::PropertyQuantity)
|
||||
|
||||
PropertyMoment::PropertyMoment()
|
||||
{
|
||||
setUnit(Base::Unit::Moment);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyPressure
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -540,6 +540,19 @@ public:
|
||||
~PropertyMass() override = default;
|
||||
};
|
||||
|
||||
/** Moment property
|
||||
* This is a property for representing moment. It is basically a float
|
||||
* property. On the Gui it has a quantity like N*m.
|
||||
*/
|
||||
class AppExport PropertyMoment: public PropertyQuantity
|
||||
{
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
|
||||
public:
|
||||
PropertyMoment();
|
||||
~PropertyMoment() override = default;
|
||||
};
|
||||
|
||||
/** Pressure property
|
||||
* This is a property for representing pressure. It basically a float
|
||||
* property. On the Gui it has a quantity like Pa.
|
||||
|
||||
Reference in New Issue
Block a user