Salome HOME
Issue #1820 Selection of two points in sketchPlane
[modules/shaper.git] / src / PartSet / PartSet_PreviewPlanes.h
index ac94dc350731dabda12a95f5c536435304abec71..955f5dcf2516489ff81432f3b0c8949c6d012df8 100755 (executable)
@@ -44,10 +44,14 @@ public:
   static bool hasVisualizedSketch(ModuleBase_IWorkshop* theWorkshop);
 
   /// Returns if the preview was displayed
-  /// \param theWorkshop the application workshop
   /// \return boolean value
   bool isPreviewDisplayed() const { return myPreviewDisplayed; }
 
+  /// Returns true if the shape is one of the preview shapes
+  /// \param theShape a shape to be checked
+  /// \return boolean value
+  bool isPreviewShape(std::shared_ptr<GeomAPI_Shape> theShape);
+
   /// Erase preview planes
   /// \param theWorkshop the application workshop
   void erasePreviewPlanes(ModuleBase_IWorkshop* theWorkshop);
@@ -61,8 +65,8 @@ private:
    /// \param theOrigin an origin of the plane
    /// \param theNorm a normal vector of the plane
    /// \param theRGB a color of plane presentation [r, g, b] array
-  AISObjectPtr createPreviewPlane(std::shared_ptr<GeomAPI_Pnt> theOrigin, 
-                                  std::shared_ptr<GeomAPI_Dir> theNorm, 
+  AISObjectPtr createPreviewPlane(std::shared_ptr<GeomAPI_Pnt> theOrigin,
+                                  std::shared_ptr<GeomAPI_Dir> theNorm,
                                   const int theRGB[3]);
 
 private: