Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-04 08:46:14

0001 // Created on: 2000-05-24
0002 // Created by: data exchange team
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeUpgrade_EdgeDivide_HeaderFile
0017 #define _ShapeUpgrade_EdgeDivide_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <TopoDS_Face.hxx>
0023 #include <TColStd_HSequenceOfReal.hxx>
0024 #include <ShapeUpgrade_Tool.hxx>
0025 class ShapeUpgrade_SplitCurve3d;
0026 class ShapeUpgrade_SplitCurve2d;
0027 class TopoDS_Edge;
0028 
0029 class ShapeUpgrade_EdgeDivide;
0030 DEFINE_STANDARD_HANDLE(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
0031 
0032 class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool
0033 {
0034 
0035 public:
0036   //! Empty constructor
0037   Standard_EXPORT ShapeUpgrade_EdgeDivide();
0038 
0039   Standard_EXPORT void Clear();
0040 
0041   //! Sets supporting surface by face
0042   void SetFace(const TopoDS_Face& F);
0043 
0044   Standard_EXPORT virtual Standard_Boolean Compute(const TopoDS_Edge& E);
0045 
0046   Standard_Boolean HasCurve2d() const;
0047 
0048   Standard_Boolean HasCurve3d() const;
0049 
0050   Handle(TColStd_HSequenceOfReal) Knots2d() const;
0051 
0052   Handle(TColStd_HSequenceOfReal) Knots3d() const;
0053 
0054   //! Sets the tool for splitting pcurves.
0055   Standard_EXPORT void SetSplitCurve2dTool(
0056     const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
0057 
0058   //! Sets the tool for splitting 3D curves.
0059   Standard_EXPORT void SetSplitCurve3dTool(
0060     const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
0061 
0062   //! Returns the tool for splitting pcurves.
0063   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
0064 
0065   //! Returns the tool for splitting 3D curves.
0066   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
0067 
0068   DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
0069 
0070 protected:
0071   TopoDS_Face                     myFace;
0072   Standard_Boolean                myHasCurve2d;
0073   Standard_Boolean                myHasCurve3d;
0074   Handle(TColStd_HSequenceOfReal) myKnots2d;
0075   Handle(TColStd_HSequenceOfReal) myKnots3d;
0076 
0077 private:
0078   Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
0079   Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
0080 };
0081 
0082 #include <ShapeUpgrade_EdgeDivide.lxx>
0083 
0084 #endif // _ShapeUpgrade_EdgeDivide_HeaderFile