Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:57

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 
0030 class ShapeUpgrade_EdgeDivide;
0031 DEFINE_STANDARD_HANDLE(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
0032 
0033 
0034 class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool
0035 {
0036 
0037 public:
0038 
0039   
0040   //! Empty constructor
0041   Standard_EXPORT ShapeUpgrade_EdgeDivide();
0042   
0043   Standard_EXPORT void Clear();
0044   
0045   //! Sets supporting surface by face
0046     void SetFace (const TopoDS_Face& F);
0047   
0048   Standard_EXPORT virtual Standard_Boolean Compute (const TopoDS_Edge& E);
0049   
0050     Standard_Boolean HasCurve2d() const;
0051   
0052     Standard_Boolean HasCurve3d() const;
0053   
0054     Handle(TColStd_HSequenceOfReal) Knots2d() const;
0055   
0056     Handle(TColStd_HSequenceOfReal) Knots3d() const;
0057   
0058   //! Sets the tool for splitting pcurves.
0059   Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
0060   
0061   //! Sets the tool for splitting 3D curves.
0062   Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
0063   
0064   //! Returns the tool for splitting pcurves.
0065   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
0066   
0067   //! Returns the tool for splitting 3D curves.
0068   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
0069 
0070 
0071 
0072 
0073   DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_EdgeDivide,ShapeUpgrade_Tool)
0074 
0075 protected:
0076 
0077 
0078   TopoDS_Face myFace;
0079   Standard_Boolean myHasCurve2d;
0080   Standard_Boolean myHasCurve3d;
0081   Handle(TColStd_HSequenceOfReal) myKnots2d;
0082   Handle(TColStd_HSequenceOfReal) myKnots3d;
0083 
0084 
0085 private:
0086 
0087 
0088   Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
0089   Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
0090 
0091 
0092 };
0093 
0094 
0095 #include <ShapeUpgrade_EdgeDivide.lxx>
0096 
0097 
0098 
0099 
0100 
0101 #endif // _ShapeUpgrade_EdgeDivide_HeaderFile