/// \param theResult a result object
Standard_EXPORT PartSet_ResultSketchPrs(ResultPtr theResult);
- /// Returns true if the checked type can be accepted for the base selection type
- /// It returns true if they are coicide or if the base type is face and the checked type is wire
- /// @return boolean result
- static Standard_EXPORT bool isValidShapeType(const TopAbs_ShapeEnum& theBaseType,
- const TopAbs_ShapeEnum& theCheckedType);
-
- DEFINE_STANDARD_RTTI(PartSet_ResultSketchPrs)
+ DEFINE_STANDARD_RTTIEXT(PartSet_ResultSketchPrs, ViewerData_AISShape)
protected:
/// Redefinition of virtual function
- Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
+ Standard_EXPORT virtual void Compute(
+ const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
/// Redefinition of virtual function
Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
- const Standard_Integer aMode) ;
+ const Standard_Integer theMode) ;
private:
/// Appens sensitive and owners for wires of the given shape into selection
/// \param theShape a shape
/// \param theTypeOfSelection type of selection: VERTEX, EDGE, WIRE
void appendShapeSelection(const Handle(SelectMgr_Selection)& theSelection,
- const TopoDS_Shape& theShape, const TopAbs_ShapeEnum& theTypeOfSelection);
+ const TopoDS_Shape& theShape,
+ const TopAbs_ShapeEnum& theTypeOfSelection);
/// Sets color/line style/width of the presentation depending on the parameter state
/// \param isAuxiliary a boolean value if the properties are for auxiliary objects