0030940: BRepFilletAPI_MakeFillet algorithm fails on closed shell
[occt.git] / src / ChFiDS / ChFiDS_ChamfSpine.hxx
1 // Created on: 1995-04-24
2 // Created by: Modelistation
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _ChFiDS_ChamfSpine_HeaderFile
18 #define _ChFiDS_ChamfSpine_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Real.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <ChFiDS_ChamfMethod.hxx>
26 #include <ChFiDS_ChamfMode.hxx>
27 #include <ChFiDS_Spine.hxx>
28
29
30 class ChFiDS_ChamfSpine;
31 DEFINE_STANDARD_HANDLE(ChFiDS_ChamfSpine, ChFiDS_Spine)
32
33 //! Provides  data specific to chamfers
34 //! distances on  each  of faces.
35 class ChFiDS_ChamfSpine : public ChFiDS_Spine
36 {
37
38 public:
39
40   
41   Standard_EXPORT ChFiDS_ChamfSpine();
42   
43   Standard_EXPORT ChFiDS_ChamfSpine(const Standard_Real Tol);
44   
45   Standard_EXPORT void SetDist (const Standard_Real Dis);
46   
47   Standard_EXPORT void GetDist (Standard_Real& Dis) const;
48   
49   Standard_EXPORT void SetDists (const Standard_Real Dis1, const Standard_Real Dis2);
50   
51   Standard_EXPORT void Dists (Standard_Real& Dis1, Standard_Real& Dis2) const;
52   
53   Standard_EXPORT void GetDistAngle (Standard_Real& Dis, Standard_Real& Angle) const;
54   
55   Standard_EXPORT void SetDistAngle (const Standard_Real Dis, const Standard_Real Angle);
56   
57   Standard_EXPORT void SetMode (const ChFiDS_ChamfMode theMode);
58   
59   //! Return the method of chamfers used
60   Standard_EXPORT ChFiDS_ChamfMethod IsChamfer() const;
61
62   //! Return the mode of chamfers used
63   //Standard_EXPORT ChFiDS_ChamfMode Mode() const;
64
65
66
67   DEFINE_STANDARD_RTTIEXT(ChFiDS_ChamfSpine,ChFiDS_Spine)
68
69 protected:
70
71
72
73
74 private:
75
76
77   Standard_Real d1;
78   Standard_Real d2;
79   //Standard_Boolean dison1;
80   Standard_Real angle;
81   ChFiDS_ChamfMethod mChamf;
82
83
84 };
85
86
87
88
89
90
91
92 #endif // _ChFiDS_ChamfSpine_HeaderFile