SHAPER
9.12.0
|
A class to show/hide sketch preview planes. More...
Public Member Functions | |
PartSet_PreviewPlanes () | |
Constructor. More... | |
bool | isPreviewDisplayed () const |
Returns if the preview was displayed. More... | |
bool | isPreviewShape (std::shared_ptr< GeomAPI_Shape > theShape) |
Returns true if the shape is one of the preview shapes. More... | |
void | erasePreviewPlanes (ModuleBase_IWorkshop *theWorkshop) |
Erase preview planes. More... | |
void | showPreviewPlanes (ModuleBase_IWorkshop *theWorkshop) |
Show preview planes. More... | |
Static Public Member Functions | |
static bool | hasVisualizedBodies (ModuleBase_IWorkshop *theWorkshop) |
Returns true if there is body visualized in the viewer. More... | |
static bool | hasVisualizedSketch (ModuleBase_IWorkshop *theWorkshop) |
Returns true if there is at least one Sketch visualized in the viewer. More... | |
A class to show/hide sketch preview planes.
PartSet_PreviewPlanes::PartSet_PreviewPlanes | ( | ) |
Constructor.
|
static |
Returns true if there is body visualized in the viewer.
theWorkshop | the application workshop |
|
static |
Returns true if there is at least one Sketch visualized in the viewer.
theWorkshop | the application workshop |
|
inline |
Returns if the preview was displayed.
bool PartSet_PreviewPlanes::isPreviewShape | ( | std::shared_ptr< GeomAPI_Shape > | theShape | ) |
Returns true if the shape is one of the preview shapes.
theShape | a shape to be checked |
void PartSet_PreviewPlanes::erasePreviewPlanes | ( | ModuleBase_IWorkshop * | theWorkshop | ) |
Erase preview planes.
theWorkshop | the application workshop |
void PartSet_PreviewPlanes::showPreviewPlanes | ( | ModuleBase_IWorkshop * | theWorkshop | ) |
Show preview planes.
theWorkshop | the application workshop |