Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2000-06-07
0002 // Created by: Galina KULIKOVA
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_FixSmallCurves_HeaderFile
0017 #define _ShapeUpgrade_FixSmallCurves_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Integer.hxx>
0022 #include <TopoDS_Edge.hxx>
0023 #include <TopoDS_Face.hxx>
0024 #include <ShapeUpgrade_Tool.hxx>
0025 #include <Standard_Real.hxx>
0026 #include <ShapeExtend_Status.hxx>
0027 class ShapeUpgrade_SplitCurve3d;
0028 class ShapeUpgrade_SplitCurve2d;
0029 class Geom_Curve;
0030 class Geom2d_Curve;
0031 
0032 // resolve name collisions with X11 headers
0033 #ifdef Status
0034   #undef Status
0035 #endif
0036 
0037 class ShapeUpgrade_FixSmallCurves;
0038 DEFINE_STANDARD_HANDLE(ShapeUpgrade_FixSmallCurves, ShapeUpgrade_Tool)
0039 
0040 
0041 class ShapeUpgrade_FixSmallCurves : public ShapeUpgrade_Tool
0042 {
0043 
0044 public:
0045 
0046   
0047   Standard_EXPORT ShapeUpgrade_FixSmallCurves();
0048   
0049   Standard_EXPORT void Init (const TopoDS_Edge& theEdge, const TopoDS_Face& theFace);
0050   
0051   Standard_EXPORT virtual Standard_Boolean Approx (Handle(Geom_Curve)& Curve3d, Handle(Geom2d_Curve)& Curve2d, Handle(Geom2d_Curve)& Curve2dR, Standard_Real& First, Standard_Real& Last);
0052   
0053   //! Sets the tool for splitting 3D curves.
0054   Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
0055   
0056   //! Sets the tool for splitting pcurves.
0057   Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
0058   
0059   //! Queries the status of last call to Perform
0060   //! OK   :
0061   //! DONE1:
0062   //! DONE2:
0063   //! FAIL1:
0064   Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const;
0065 
0066 
0067 
0068 
0069   DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_FixSmallCurves,ShapeUpgrade_Tool)
0070 
0071 protected:
0072 
0073   
0074   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
0075   
0076   //! Returns the tool for splitting pcurves.
0077   Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
0078 
0079   Standard_Integer myStatus;
0080   Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
0081   Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
0082   TopoDS_Edge myEdge;
0083   TopoDS_Face myFace;
0084 
0085 
0086 private:
0087 
0088 
0089 
0090 
0091 };
0092 
0093 
0094 
0095 
0096 
0097 
0098 
0099 #endif // _ShapeUpgrade_FixSmallCurves_HeaderFile