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);
/// \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: