0028786: Refactoring of the Warning/Error reporting system of Boolean Operations...
[occt.git] / src / BOPTest / BOPTest_Objects.cxx
index 7c703e8..d4da66d 100644 (file)
@@ -54,6 +54,7 @@ class BOPTest_Session {
     myNonDestructive = Standard_False;
     myFuzzyValue = 0.;
     myGlue = BOPAlgo_GlueOff;
+    myDrawWarnShapes = Standard_False;
   };
   //
   // Clear
@@ -133,6 +134,14 @@ class BOPTest_Session {
     return myGlue;
   };
   //
+  void SetDrawWarnShapes(const Standard_Boolean bDraw) {
+    myDrawWarnShapes = bDraw;
+  };
+  //
+  Standard_Boolean DrawWarnShapes() const {
+    return myDrawWarnShapes;
+  };
+  //
 protected:
   //
   BOPTest_Session(const BOPTest_Session&);
@@ -150,6 +159,7 @@ protected:
   Standard_Boolean myNonDestructive;
   Standard_Real myFuzzyValue;
   BOPAlgo_GlueEnum myGlue;
+  Standard_Boolean myDrawWarnShapes;
 };
 //
 //=======================================================================
@@ -344,6 +354,22 @@ BOPAlgo_GlueEnum BOPTest_Objects::Glue()
   return GetSession().Glue();
 }
 //=======================================================================
+//function : SetDrawWarnShapes
+//purpose  : 
+//=======================================================================
+void BOPTest_Objects::SetDrawWarnShapes(const Standard_Boolean bDraw)
+{
+  GetSession().SetDrawWarnShapes(bDraw);
+}
+//=======================================================================
+//function : DrawWarnShapes
+//purpose  : 
+//=======================================================================
+Standard_Boolean BOPTest_Objects::DrawWarnShapes()
+{
+  return GetSession().DrawWarnShapes();
+}
+//=======================================================================
 //function : Allocator1
 //purpose  : 
 //=======================================================================