20 #ifndef PartSet_PreviewPlanes_H
21 #define PartSet_PreviewPlanes_H
23 #include <GeomAPI_AISObject.h>
25 #include <GeomAPI_Pnt.h>
26 #include <GeomAPI_Dir.h>
27 #include <GeomAPI_AISObject.h>
76 AISObjectPtr createPreviewPlane(std::shared_ptr<GeomAPI_Pnt> theOrigin,
77 std::shared_ptr<GeomAPI_Dir> theNorm,
81 bool myPreviewDisplayed;
83 AISObjectPtr myYZPlane;
84 AISObjectPtr myXZPlane;
85 AISObjectPtr myXYPlane;
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
A class to show/hide sketch preview planes.
Definition: PartSet_PreviewPlanes.h:37
static bool hasVisualizedSketch(ModuleBase_IWorkshop *theWorkshop)
Returns true if there is at least one Sketch visualized in the viewer.
Definition: PartSet_PreviewPlanes.cpp:67
bool isPreviewDisplayed() const
Returns if the preview was displayed.
Definition: PartSet_PreviewPlanes.h:56
bool isPreviewShape(std::shared_ptr< GeomAPI_Shape > theShape)
Returns true if the shape is one of the preview shapes.
Definition: PartSet_PreviewPlanes.cpp:92
PartSet_PreviewPlanes()
Constructor.
Definition: PartSet_PreviewPlanes.cpp:37
static bool hasVisualizedBodies(ModuleBase_IWorkshop *theWorkshop)
Returns true if there is body visualized in the viewer.
Definition: PartSet_PreviewPlanes.cpp:42
void erasePreviewPlanes(ModuleBase_IWorkshop *theWorkshop)
Erase preview planes.
Definition: PartSet_PreviewPlanes.cpp:99
void showPreviewPlanes(ModuleBase_IWorkshop *theWorkshop)
Show preview planes.
Definition: PartSet_PreviewPlanes.cpp:110