Integration of OCCT 6.5.0 from SVN
[occt.git] / src / AppCont / AppCont_FunctionTool.cdl
diff --git a/src/AppCont/AppCont_FunctionTool.cdl b/src/AppCont/AppCont_FunctionTool.cdl
new file mode 100755 (executable)
index 0000000..11219db
--- /dev/null
@@ -0,0 +1,76 @@
+-- File:       AppCont_FunctionTool.cdl
+-- Created:    Wed Sep  1 15:20:45 1993
+-- Author:     Laurent PAINNOT
+--             <lpa@nonox>
+---Copyright:   Matra Datavision 1993
+
+
+class FunctionTool from AppCont
+
+
+uses Function        from AppCont,
+     Pnt             from gp,
+     Pnt2d           from gp,
+     Vec             from gp,
+     Vec2d           from gp,
+     Array1OfPnt     from TColgp,
+     Array1OfPnt2d   from TColgp,
+     Array1OfVec     from TColgp,
+     Array1OfVec2d   from TColgp
+
+is
+    
+    FirstParameter(myclass; C: Function from AppCont) returns Real;
+       ---Purpose: returns the first parameter of the Function.
+
+    LastParameter(myclass; C: Function from AppCont) returns Real;
+       ---Purpose: returns the last parameter of the Function.
+
+    NbP2d(myclass; C: Function from AppCont) returns Integer;
+       ---Purpose: Returns 0.
+
+
+    NbP3d(myclass; C: Function from AppCont) returns Integer;
+       ---Purpose: Returns 1. (the approximation will be done only for one 
+       --          function.
+
+
+    Value(myclass; C: Function from AppCont; U: Real; tabPt: out Array1OfPnt);
+       ---Purpose: <tabP> is an array of only 1 element, the point value at
+       --          the parameter <U>.
+
+
+    D1(myclass; C: Function from AppCont; U: Real; tabV: out Array1OfVec)
+    returns Boolean;
+       ---Purpose: <tabV> is an array of only 1 element, the derivative 
+       --          value at the parameter <U>.
+
+
+    ----------------------------------------------------------
+    -- the following methods won t be called by the algorithms
+    -- but the description must exist in the tool.
+    ----------------------------------------------------------
+
+
+
+    Value(myclass; C: Function from AppCont;U: Real; 
+         tabPt2d: out Array1OfPnt2d);
+    
+    Value(myclass; C: Function from AppCont; U: Real; 
+         tabPt: out Array1OfPnt;
+         tabPt2d: out Array1OfPnt2d);
+
+
+    D1(myclass;C: Function from AppCont;U: Real; 
+            tabV2d: out Array1OfVec2d)
+    returns Boolean;
+
+
+    D1(myclass; C: Function from AppCont; U: Real; 
+            tabV: out Array1OfVec;
+            tabV2d: out Array1OfVec2d)
+    returns Boolean;
+
+
+end FunctionTool;    
+