Added App::PropertyPrecision

The purpose of this property and the associated property item is to
properly display floating value of many decimal points, such as
Precision::Confusion()
This commit is contained in:
Zheng, Lei
2017-03-10 04:40:44 +08:00
committed by Yorik van Havre
parent c14a588264
commit 18a7e73bf6
6 changed files with 59 additions and 0 deletions

View File

@@ -1097,6 +1097,27 @@ void PropertyFloatConstraint::setPyObject(PyObject *value)
}
}
//**************************************************************************
// PropertyPrecision
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TYPESYSTEM_SOURCE(App::PropertyPrecision, App::PropertyFloatConstraint);
//**************************************************************************
// Construction/Destruction
//
const PropertyFloatConstraint::Constraints PrecisionStandard = {0.0,DBL_MAX,0.001};
PropertyPrecision::PropertyPrecision()
{
setConstraints(&PrecisionStandard);
}
PropertyPrecision::~PropertyPrecision()
{
}
//**************************************************************************
// PropertyFloatList