-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <Events_Loop.h>
-#include <AIS_Dimension.hxx>
+#include <Locale_Convert.h>
+
+#include <PrsDim_Dimension.hxx>
#include <TCollection_ExtendedString.hxx>
+#include <Standard_Version.hxx>
//#ifndef WNT
// #define COMPILATION_CORRECTION
{
myDoubleValue = theAttributeValue->value();
myHasParameters = theAttributeValue->usedParameters().size() > 0;
- myTextValue = theAttributeValue->text();
+ myTextValue = Locale::Convert::toString(theAttributeValue->text());
}
SketcherPrs_DimensionStyle::SketcherPrs_DimensionStyle()
{
}
-void SketcherPrs_DimensionStyle::updateDimensions(AIS_Dimension* theDimension,
+void SketcherPrs_DimensionStyle::updateDimensions(PrsDim_Dimension* theDimension,
const SketcherPrs_DimensionStyle::DimensionValue& theDimensionValue)
{
if (!theDimension)
theDimensionValue.myTextValue, theDimensionValue.myDoubleValue);
}
-void SketcherPrs_DimensionStyle::updateDimensions(AIS_Dimension* theDimension,
- const bool theHasParameters,
- const std::string& theTextValue,
- const double theDoubleValue)
+void SketcherPrs_DimensionStyle::updateDimensions(PrsDim_Dimension* theDimension,
+ const bool theHasParameters,
+ const std::string& theTextValue,
+ const double theDoubleValue)
{
if (!theDimension)
return;
/// do not show special symbols of dimension:
/// previous implementation did not allow to unite them
theDimension->SetSpecialSymbol(MyEmptySymbol);
+#if OCC_VERSION_HEX > 0x070400
+ theDimension->SetDisplaySpecialSymbol(PrsDim_DisplaySpecialSymbol_No);
+#else
theDimension->SetDisplaySpecialSymbol(AIS_DSS_No);
+#endif
TCollection_ExtendedString aCustomValue;
if (theHasParameters) {