dd69b21edb51c755366e4a1cf2c580d516a596c4
[occt.git] / src / VrmlConverter / VrmlConverter_DeflectionCurve.cdl
1 -- Created on: 1997-04-29
2 -- Created by: Alexander BRIVIN
3 -- Copyright (c) 1997-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 class DeflectionCurve from VrmlConverter 
18
19         ---Purpose: DeflectionCurve    -  computes the presentation of
20         --          objects to be seen as  curves,   converts this  one into
21         --          VRML    objects    and    writes (adds)  into
22         --          anOStream.     All  requested properties  of   the
23         --          representation  are specify in  aDrawer.   
24         --          This  kind of the presentation
25         --          is converted into IndexedLineSet ( VRML ).
26         --          The computation will be made according to a maximal
27         --          chordial deviation. 
28
29 uses
30  
31     Length       from Quantity,
32     Curve        from Adaptor3d,
33     Drawer       from VrmlConverter
34
35 is
36
37     Add(myclass; anOStream: in out OStream from Standard; 
38                  aCurve       : in out Curve        from Adaptor3d;
39                  aDrawer      : Drawer       from VrmlConverter);
40
41     ---Purpose: adds to the OStream the drawing of the curve aCurve with  
42     --          respect to the maximal chordial deviation defined
43     --          by the drawer aDrawer.
44     --          The aspect is defined by LineAspect in aDrawer.
45     --          
46
47  
48     Add(myclass; anOStream: in out OStream from Standard; 
49                  aCurve       : in out Curve        from Adaptor3d;
50                  U1, U2       : Real         from Standard;
51                  aDrawer      : Drawer       from VrmlConverter);
52                     
53     ---Purpose: adds to the OStream the drawing of the curve aCurve with  
54     --          respect to the maximal chordial deviation defined
55     --          by the drawer aDrawer.
56     --          The aspect is defined by LineAspect in aDrawer.
57     --          The drawing will be limited between the points of parameter
58     --          U1 and U2.
59
60
61     Add(myclass; anOStream: in out OStream from Standard; 
62                  aCurve       : in out Curve        from Adaptor3d;
63                  aDeflection  : Real         from Standard;
64                  aLimit       : Real         from Standard);
65
66     ---Purpose: adds to the OStream the drawing of the curve aCurve with  
67     --          respect to the maximal chordial deviation aDeflection.
68     --          The aspect is the current aspect
69
70
71     Add(myclass; anOStream:  in out OStream from Standard;
72                  aCurve       : in out Curve        from Adaptor3d;
73                  aDeflection  : Real         from Standard;
74                  aDrawer      : Drawer       from VrmlConverter);
75
76     ---Purpose: adds to the OStream the drawing of the curve aCurve with  
77     --          respect to the maximal chordial deviation aDeflection.
78     --          The aspect is the current aspect
79
80
81     Add(myclass; anOStream: in out OStream from Standard; 
82                  aCurve       : in out Curve        from Adaptor3d;
83                  U1, U2       : Real         from Standard;
84                  aDeflection  : Real         from Standard);
85                  
86     ---Purpose: adds to the OStream the drawing of the curve aCurve with  
87     --          respect to the maximal chordial deviation aDeflection.
88     --          The aspect is the current aspect
89     --          The drawing will be limited between the points of parameter
90     --          U1 and U2.
91
92
93 end DeflectionCurve;