[TD]fix hatch fail due to missing translate method

This commit is contained in:
wandererfan
2023-09-14 11:06:42 -04:00
committed by WandererFan
parent 5ca198e182
commit 84a8800767
8 changed files with 114 additions and 0 deletions

View File

@@ -64,6 +64,7 @@
using namespace TechDraw;
using DU = DrawUtil;
App::PropertyFloatConstraint::Constraints DrawGeomHatch::scaleRange = {
Precision::Confusion(), std::numeric_limits<double>::max(), (0.1)}; // increment by 0.1
@@ -577,6 +578,13 @@ TopoDS_Face DrawGeomHatch::extractFace(DrawViewPart* source, int iface )
return TopoDS::Face(temp);
}
//! get a translated label string from the context (ex TaskActiveView), the base name (ex ActiveView) and
//! the unique name within the document (ex ActiveView001), and use it to update the Label property.
void DrawGeomHatch::translateLabel(std::string context, std::string baseName, std::string uniqueName)
{
Label.setValue(DU::translateArbitrary(context, baseName, uniqueName));
}
//--------------------------------------------------------------------------------------------------
PyObject *DrawGeomHatch::getPyObject()