#include <SelectMgr_Filter.hxx>
#include <SelectMgr_EntityOwner.hxx>
-#include <gp_Pln.hxx>
+
+#include <GeomAPI_Pln.h>
class ModuleBase_IWorkshop;
public:
/// Constructor
/// \param theWorkshop instance of workshop interface
- Standard_EXPORT ModuleBase_ShapeDocumentFilter(ModuleBase_IWorkshop* theWorkshop): SelectMgr_Filter(),
+ Standard_EXPORT
+ ModuleBase_ShapeDocumentFilter(ModuleBase_IWorkshop* theWorkshop): SelectMgr_Filter(),
myWorkshop(theWorkshop) {}
/// Returns True if the given owner is acceptable for selection
/// \param theOwner the selected owner
- Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
+ Standard_EXPORT virtual
+ Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
- DEFINE_STANDARD_RTTI(ModuleBase_ShapeDocumentFilter)
+ DEFINE_STANDARD_RTTIEXT(ModuleBase_ShapeDocumentFilter, SelectMgr_Filter)
protected:
/// Reference to workshop
Standard_EXPORT ModuleBase_ShapeInPlaneFilter(): SelectMgr_Filter() {}
/// Set working plane
- /// \param thePane plane object
- void setPlane(const gp_Pln& thePane) { myPlane = thePane; }
+ /// \param thePlane a plane object
+ void setPlane(const std::shared_ptr<GeomAPI_Pln>& thePlane) { myPlane = thePlane; }
/// Returns current working plane
- gp_Pln plane() const { return myPlane; }
+ std::shared_ptr<GeomAPI_Pln> plane() const { return myPlane; }
/// Returns True if the given owner is acceptable for selection
/// \param theOwner the selected owner
- Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
+ Standard_EXPORT virtual
+ Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
- DEFINE_STANDARD_RTTI(ModuleBase_ShapeInPlaneFilter)
+ DEFINE_STANDARD_RTTIEXT(ModuleBase_ShapeInPlaneFilter, SelectMgr_Filter)
private:
/// Working plane
- gp_Pln myPlane;
+ std::shared_ptr<GeomAPI_Pln> myPlane;
};
#endif