Salome HOME
Issue #2131 See preview button does not work
[modules/shaper.git] / src / PartSet / PartSet_ResultSketchPrs.h
index 3b39b34f50780e0ddebcde238a79592bfc2908b9..b374c0a7b04bf624a807c4d1b2964687a0259953 100755 (executable)
@@ -29,21 +29,16 @@ public:
   /// \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
@@ -51,7 +46,8 @@ private:
   /// \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