42cf5bc1 |
1 | // Created on: 1998-04-09 |
2 | // Created by: Andre LIEUTIER |
3 | // Copyright (c) 1998-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 _NLPlate_HGPPConstraint_HeaderFile |
18 | #define _NLPlate_HGPPConstraint_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <gp_XY.hxx> |
24 | #include <Standard_Integer.hxx> |
25e59720 |
25 | #include <Standard_Transient.hxx> |
42cf5bc1 |
26 | #include <Standard_Boolean.hxx> |
27 | #include <Standard_Real.hxx> |
28 | class gp_XY; |
29 | class gp_XYZ; |
30 | class Plate_D1; |
31 | class Plate_D2; |
32 | class Plate_D3; |
33 | |
34 | |
35 | class NLPlate_HGPPConstraint; |
25e59720 |
36 | DEFINE_STANDARD_HANDLE(NLPlate_HGPPConstraint, Standard_Transient) |
42cf5bc1 |
37 | |
38 | //! define a PinPoint geometric Constraint used to load a Non Linear Plate |
25e59720 |
39 | class NLPlate_HGPPConstraint : public Standard_Transient |
42cf5bc1 |
40 | { |
41 | |
42 | public: |
43 | |
44 | |
d533dafb |
45 | NLPlate_HGPPConstraint() : myActiveOrder(0) {} |
46 | |
42cf5bc1 |
47 | Standard_EXPORT virtual void SetUVFreeSliding (const Standard_Boolean UVFree); |
48 | |
49 | Standard_EXPORT virtual void SetIncrementalLoadAllowed (const Standard_Boolean ILA); |
50 | |
51 | Standard_EXPORT virtual void SetActiveOrder (const Standard_Integer ActiveOrder); |
52 | |
53 | Standard_EXPORT virtual void SetUV (const gp_XY& UV); |
54 | |
55 | Standard_EXPORT virtual void SetOrientation (const Standard_Integer Orient = 0); |
56 | |
57 | Standard_EXPORT virtual void SetG0Criterion (const Standard_Real TolDist); |
58 | |
59 | Standard_EXPORT virtual void SetG1Criterion (const Standard_Real TolAng); |
60 | |
61 | Standard_EXPORT virtual void SetG2Criterion (const Standard_Real TolCurv); |
62 | |
63 | Standard_EXPORT virtual void SetG3Criterion (const Standard_Real TolG3); |
64 | |
65 | Standard_EXPORT virtual Standard_Boolean UVFreeSliding() const; |
66 | |
67 | Standard_EXPORT virtual Standard_Boolean IncrementalLoadAllowed() const; |
68 | |
69 | Standard_EXPORT virtual Standard_Integer ActiveOrder() const = 0; |
70 | |
71 | Standard_EXPORT virtual const gp_XY& UV() const; |
72 | |
73 | Standard_EXPORT virtual Standard_Integer Orientation(); |
74 | |
75 | Standard_EXPORT virtual Standard_Boolean IsG0() const = 0; |
76 | |
77 | Standard_EXPORT virtual const gp_XYZ& G0Target() const; |
78 | |
79 | Standard_EXPORT virtual const Plate_D1& G1Target() const; |
80 | |
81 | Standard_EXPORT virtual const Plate_D2& G2Target() const; |
82 | |
83 | Standard_EXPORT virtual const Plate_D3& G3Target() const; |
84 | |
85 | Standard_EXPORT virtual Standard_Real G0Criterion() const; |
86 | |
87 | Standard_EXPORT virtual Standard_Real G1Criterion() const; |
88 | |
89 | Standard_EXPORT virtual Standard_Real G2Criterion() const; |
90 | |
91 | Standard_EXPORT virtual Standard_Real G3Criterion() const; |
92 | |
93 | |
94 | |
95 | |
25e59720 |
96 | DEFINE_STANDARD_RTTIEXT(NLPlate_HGPPConstraint,Standard_Transient) |
42cf5bc1 |
97 | |
98 | protected: |
99 | |
100 | |
101 | gp_XY myUV; |
102 | Standard_Integer myActiveOrder; |
103 | |
104 | |
105 | private: |
106 | |
107 | |
108 | |
109 | |
110 | }; |
111 | |
112 | |
113 | |
114 | |
115 | |
116 | |
117 | |
118 | #endif // _NLPlate_HGPPConstraint_HeaderFile |