Added App::PropertyArea (same as PropertyLength but uses Area units)

This commit is contained in:
Yorik van Havre
2016-08-29 19:26:11 -03:00
parent 63e668a4ea
commit 8af437a35a
3 changed files with 26 additions and 0 deletions

View File

@@ -232,6 +232,19 @@ PropertyLength::PropertyLength()
setConstraints(&LengthStandard);
}
//**************************************************************************
//**************************************************************************
// PropertyArea
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TYPESYSTEM_SOURCE(App::PropertyArea, App::PropertyQuantityConstraint);
PropertyArea::PropertyArea()
{
setUnit(Base::Unit::Area);
setConstraints(&LengthStandard);
}
//**************************************************************************
//**************************************************************************
// PropertyAngle