Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntTools / IntTools_TopolTool.cdl
1 -- File:        IntTools_TopolTool.cdl
2 -- Created:     Thu Apr 18 11:39:53 2002
3 -- Author:      Michael KLOKOV
4 --              <mkk@kurox>
5 ---Copyright:    Matra Datavision 2002
6
7 class TopolTool from IntTools inherits TopolTool from Adaptor3d
8
9         ---Purpose: Class redefine methods of TopolTool from Adaptor3d
10         ---         concerning sample points
11         ---
12 uses
13     Pnt   from gp,
14     Pnt2d from gp,
15     HSurface from Adaptor3d, 
16     HArray1OfReal  from  TColStd
17
18 raises DomainError from Standard
19
20 is
21     Create returns mutable TopolTool from IntTools;
22         ---Purpose:
23         --- Empty constructor
24         ---
25
26     Create(theSurface: HSurface from Adaptor3d)
27         returns mutable TopolTool from IntTools;
28         ---Purpose:
29         --- Initializes me by surface
30         ---
31
32     Initialize(me: mutable)
33         is redefined;
34         ---Purpose:
35         --- Redefined empty initializer
36         ---
37         --  Warning:
38         --- Raises the exception NotImplemented
39         ---
40     
41     Initialize(me: mutable; theSurface: HSurface from Adaptor3d)
42         is redefined;
43         ---Purpose:
44         --- Initializes me by surface
45         ---
46
47     --- sample points  tools
48
49     ComputeSamplePoints(me: mutable)
50         is redefined;
51         ---Purpose:
52         --- 
53         ---
54     
55     NbSamplesU(me: mutable) 
56         returns Integer from Standard
57         is redefined;
58         ---Purpose: 
59         --- Computes the sample-points for the intersections algorithms
60         ---
61     
62     NbSamplesV(me: mutable) 
63         returns Integer from Standard
64         is redefined;
65         ---Purpose: 
66         --- Computes the sample-points for the intersections algorithms
67         ---
68     
69     NbSamples(me: mutable)
70         returns Integer from Standard
71         is redefined;
72         ---Purpose: 
73         --- Computes the sample-points for the intersections algorithms
74         ---
75
76     SamplePoint(me: mutable; Index: Integer from Standard;
77                              P2d  : out Pnt2d   from gp;
78                              P3d  : out Pnt     from gp)
79         is redefined;
80         ---Purpose:
81         --- Returns a 2d point from surface myS
82         --- and a corresponded 3d point
83         --- for given index.
84         --- The index should be from 1 to NbSamples()
85         ---
86
87     --modified by NIZNHY-IFV Sep 28 16:01:38 2005 f
88     SamplePnts(me: mutable; theDefl:  Real  from  Standard; theNUmin, theNVmin: Integer from Standard)
89         ---Purpose: compute the sample-points for the intersections algorithms
90         -- by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
91         -- is the same as in method ComputeSamplePoints(), but only fill arrays of U
92         -- and V sample parameters;
93         -- theDefl is a requred deflection
94         -- theNUmin, theNVmin are minimal nb points for U and V.
95     is redefined;
96     
97 fields
98     --myS         : HSurface from Adaptor3d;  now inherits myS from Adaptor3d_TopolTool
99     myNbSmplU   : Integer  from Standard;
100     myNbSmplV   : Integer  from Standard;
101     myU0        : Real     from Standard;
102     myV0        : Real     from Standard;
103     myDU        : Real     from Standard;
104     myDV        : Real     from Standard;
105      
106 end TopolTool from IntTools;