#include <QList>
-static const int AIS_DEFAULT_WIDTH = 2;
-
//#define DEBUG_EMPTY_SHAPE
// multi-rotation/translation operation
/// workaround for zero width. Else, there will be a crash
if (aWidth == 0) { // width returns of TSolid shape is zero
bool isDisplayed = !anIO->GetContext().IsNull();
- aWidth = AIS_DEFAULT_WIDTH;// default width value
+ aWidth = PartSet_Tools::getAISDefaultWidth();// default width value
}
setWidth(aDrawer, aWidth);
}
if (!isAuxiliary) {
aColor = Config_PropManager::color("Visualization", "result_construction_color",
ModelAPI_ResultConstruction::DEFAULT_COLOR());
- aWidth = SketchPlugin_SketchEntity::SKETCH_LINE_WIDTH();
+ aWidth = PartSet_Tools::getAISDefaultWidth();// default width value
aLineStyle = SketchPlugin_SketchEntity::SKETCH_LINE_STYLE();
}
else {
#endif
const double PRECISION_TOLERANCE = 0.000001;
+const int AIS_DEFAULT_WIDTH = 2;
+
+int PartSet_Tools::getAISDefaultWidth()
+{
+ return AIS_DEFAULT_WIDTH;
+}
gp_Pnt PartSet_Tools::convertClickToPoint(QPoint thePoint, Handle(V3d_View) theView)
{
};
public:
+ /// Returns default value of AIS presentation
+ /// \return integer value
+ static int getAISDefaultWidth();
+
/// Converts the 2D screen point to the 3D point on the view according to the point of view
/// \param thePoint a screen point
/// \param theView a 3D view