[FEM] add current density constraint
- also add corresponding App::PropertyCurrentDensity - also fix a typo in test_object.py
This commit is contained in:
@@ -20,9 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <cfloat>
|
||||
#endif
|
||||
@@ -88,7 +86,6 @@ Base::Quantity PropertyQuantity::createQuantityFromPy(PyObject *value)
|
||||
return quant;
|
||||
}
|
||||
|
||||
|
||||
void PropertyQuantity::setPyObject(PyObject *value)
|
||||
{
|
||||
// Set the unit if Unit object supplied, else check the unit
|
||||
@@ -140,7 +137,6 @@ const boost::any PropertyQuantity::getPathValue(const ObjectIdentifier & /*path*
|
||||
TYPESYSTEM_SOURCE(App::PropertyQuantityConstraint, App::PropertyQuantity)
|
||||
|
||||
|
||||
|
||||
void PropertyQuantityConstraint::setConstraints(const Constraints* sConstrain)
|
||||
{
|
||||
_ConstStruct = sConstrain;
|
||||
@@ -151,7 +147,6 @@ const char* PropertyQuantityConstraint::getEditorName() const
|
||||
return "Gui::PropertyEditor::PropertyUnitConstraintItem";
|
||||
}
|
||||
|
||||
|
||||
const PropertyQuantityConstraint::Constraints* PropertyQuantityConstraint::getConstraints() const
|
||||
{
|
||||
return _ConstStruct;
|
||||
@@ -253,6 +248,18 @@ PropertyDistance::PropertyDistance()
|
||||
setUnit(Base::Unit::Length);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// PropertyCurrentDensity
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertyCurrentDensity, App::PropertyQuantity)
|
||||
|
||||
PropertyCurrentDensity::PropertyCurrentDensity()
|
||||
{
|
||||
setUnit(Base::Unit::CurrentDensity);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// PropertyElectricPotential
|
||||
|
||||
Reference in New Issue
Block a user