#include <BRep_Tool.hxx>
#include <Precision.hxx>
+#include <AIS_Dimension.hxx>
+
+// it is not possible to use 0x2211 as summ symbol because it is not supported by
+// debian Linux platform
+static const Standard_ExtCharacter MyEmptySymbol(' ');
+static const Standard_ExtCharacter MySigmaSymbol(0x03A3);
+
namespace SketcherPrs_Tools {
ObjectPtr getResult(ModelAPI_Feature* theFeature, const std::string& theAttrName)
return thePlane->to3D(aFlyoutPnt->x(), aFlyoutPnt->y());
}
+void setDisplaySpecialSymbol(AIS_Dimension* theDimension, const bool& theToDisplay)
+{
+ if (theToDisplay) {
+ theDimension->SetSpecialSymbol(MySigmaSymbol);
+ theDimension->SetDisplaySpecialSymbol(AIS_DSS_Before);
+ }
+ else {
+ theDimension->SetSpecialSymbol(MyEmptySymbol);
+ theDimension->SetDisplaySpecialSymbol(AIS_DSS_No);
+ }
+}
+
};