Quantity_Color aExternalColor = aIsEdge ? aMainColor : Quantity_NOC_YELLOW;
Quantity_Color aInternalColor = aIsEdge ? Quantity_NOC_YELLOW : aMainColor;
- int aRatio = SketcherPrs_Tools::pixelRatio();
+ const double aRatio = SketcherPrs_Tools::pixelRatio();
// Create the presentation as a combination of standard point markers
// The external yellow contour
aFile += iconName();
Handle(Image_AlienPixMap) aPixMap = new Image_AlienPixMap();
if (aPixMap->Load(aFile.c_str())) {
- int aRatio = SketcherPrs_Tools::pixelRatio();
+ const double aRatio = SketcherPrs_Tools::pixelRatio();
if (aRatio > 1) {
Handle(Image_AlienPixMap) aSizedMap = new Image_AlienPixMap();
Standard_Size aWidth = aPixMap->Width() * aRatio;
return aLin2d.project(thePoint);
}
-static int MyPixelRatio = 1;
+static double MyPixelRatio = 1.0;
-void setPixelRatio(int theRatio)
+void setPixelRatio(const double theRatio)
{
MyPixelRatio = theRatio;
}
-int pixelRatio()
+double pixelRatio()
{
return MyPixelRatio;
}
SKETCHERPRS_EXPORT void sendEmptyPresentationError(ModelAPI_Feature* theFeature,
const std::string theError);
- SKETCHERPRS_EXPORT void setPixelRatio(int theRatio);
+ SKETCHERPRS_EXPORT void setPixelRatio(const double theRatio);
- SKETCHERPRS_EXPORT int pixelRatio();
+ SKETCHERPRS_EXPORT double pixelRatio();
};
#endif