summaryrefslogtreecommitdiff
path: root/inc/AdvApp2Var_Patch.hxx
blob: 88899bd762b28cc9bc5e067b30464ea6de6dfd76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _AdvApp2Var_Patch_HeaderFile
#define _AdvApp2Var_Patch_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfReal_HeaderFile
#include <Handle_TColStd_HArray1OfReal.hxx>
#endif
#ifndef _Handle_TColStd_HArray2OfReal_HeaderFile
#include <Handle_TColStd_HArray2OfReal.hxx>
#endif
#ifndef _AdvApp2Var_EvaluatorFunc2Var_HeaderFile
#include <AdvApp2Var_EvaluatorFunc2Var.hxx>
#endif
#ifndef _Handle_TColgp_HArray2OfPnt_HeaderFile
#include <Handle_TColgp_HArray2OfPnt.hxx>
#endif
class TColStd_HArray1OfReal;
class TColStd_HArray2OfReal;
class AdvApp2Var_Context;
class AdvApp2Var_Framework;
class AdvApp2Var_Criterion;
class TColgp_HArray2OfPnt;



class AdvApp2Var_Patch  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   AdvApp2Var_Patch();
  
  Standard_EXPORT   AdvApp2Var_Patch(const Standard_Real U0,const Standard_Real U1,const Standard_Real V0,const Standard_Real V1,const Standard_Integer iu,const Standard_Integer iv);
  
  Standard_EXPORT     Standard_Boolean IsDiscretised() const;
  
  Standard_EXPORT     void Discretise(const AdvApp2Var_Context& Conditions,const AdvApp2Var_Framework& Constraints,const AdvApp2Var_EvaluatorFunc2Var& func) ;
  
  Standard_EXPORT     Standard_Boolean IsApproximated() const;
  
  Standard_EXPORT     Standard_Boolean HasResult() const;
  
  Standard_EXPORT     void MakeApprox(const AdvApp2Var_Context& Conditions,const AdvApp2Var_Framework& Constraints,const Standard_Integer NumDec) ;
  
  Standard_EXPORT     void AddConstraints(const AdvApp2Var_Context& Conditions,const AdvApp2Var_Framework& Constraints) ;
  
  Standard_EXPORT     void AddErrors(const AdvApp2Var_Framework& Constraints) ;
  
  Standard_EXPORT     void ChangeDomain(const Standard_Real a,const Standard_Real b,const Standard_Real c,const Standard_Real d) ;
  
  Standard_EXPORT     void ResetApprox() ;
  
  Standard_EXPORT     void OverwriteApprox() ;
  
  Standard_EXPORT     Standard_Real U0() const;
  
  Standard_EXPORT     Standard_Real U1() const;
  
  Standard_EXPORT     Standard_Real V0() const;
  
  Standard_EXPORT     Standard_Real V1() const;
  
  Standard_EXPORT     Standard_Integer UOrder() const;
  
  Standard_EXPORT     Standard_Integer VOrder() const;
  
  Standard_EXPORT     Standard_Integer CutSense() const;
  
  Standard_EXPORT     Standard_Integer CutSense(const AdvApp2Var_Criterion& Crit,const Standard_Integer NumDec) const;
  
  Standard_EXPORT     Standard_Integer NbCoeffInU() const;
  
  Standard_EXPORT     Standard_Integer NbCoeffInV() const;
  
  Standard_EXPORT     void ChangeNbCoeff(const Standard_Integer NbCoeffU,const Standard_Integer NbCoeffV) ;
  
  Standard_EXPORT     Handle_TColgp_HArray2OfPnt Poles(const Standard_Integer SSPIndex,const AdvApp2Var_Context& Conditions) const;
  
  Standard_EXPORT     Handle_TColStd_HArray1OfReal Coefficients(const Standard_Integer SSPIndex,const AdvApp2Var_Context& Conditions) const;
  
  Standard_EXPORT     Handle_TColStd_HArray1OfReal MaxErrors() const;
  
  Standard_EXPORT     Handle_TColStd_HArray1OfReal AverageErrors() const;
  
  Standard_EXPORT     Handle_TColStd_HArray2OfReal IsoErrors() const;
  
  Standard_EXPORT     Standard_Real CritValue() const;
  
  Standard_EXPORT     void SetCritValue(const Standard_Real dist) ;





protected:





private:

  
  Standard_EXPORT   AdvApp2Var_Patch(const AdvApp2Var_Patch& P);


Standard_Real myU0;
Standard_Real myU1;
Standard_Real myV0;
Standard_Real myV1;
Standard_Integer myOrdInU;
Standard_Integer myOrdInV;
Standard_Integer myNbCoeffInU;
Standard_Integer myNbCoeffInV;
Standard_Boolean myApprIsDone;
Standard_Boolean myHasResult;
Handle_TColStd_HArray1OfReal myEquation;
Handle_TColStd_HArray1OfReal myMaxErrors;
Handle_TColStd_HArray1OfReal myMoyErrors;
Handle_TColStd_HArray2OfReal myIsoErrors;
Standard_Integer myCutSense;
Standard_Boolean myDiscIsDone;
Handle_TColStd_HArray1OfReal mySosoTab;
Handle_TColStd_HArray1OfReal myDisoTab;
Handle_TColStd_HArray1OfReal mySodiTab;
Handle_TColStd_HArray1OfReal myDidiTab;
Standard_Real myCritValue;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif