3e98bbabf732a5b144e919e66c9e72f92f3114b8
[occt.git] / src / HatchGen / HatchGen_ElementGen.cdl
1 -- Created on: 1993-11-10
2 -- Created by: Jean Marc LACHAUME
3 -- Copyright (c) 1993-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 generic class ElementGen from HatchGen (TheElementCurve as any)
18
19 uses
20     Orientation from TopAbs
21
22 is
23
24
25     Create
26     
27         returns ElementGen from HatchGen;
28
29     Create (Other : ElementGen  from HatchGen) 
30     
31         ---Purpose: Magic constructor.
32
33         returns ElementGen from HatchGen ;
34      
35
36     Create (Curve       : TheElementCurve ;
37             Orientation : Orientation from TopAbs = TopAbs_FORWARD)
38     
39         ---Purpose: Creates an element.
40
41         returns ElementGen from HatchGen ;
42
43
44     Curve (me)
45     
46         ---Purpose: Returns the curve associated to the element.
47
48         ---C++: return const &
49
50         returns TheElementCurve
51         is static ;
52
53
54     ChangeCurve (me : in out)
55     
56         ---Purpose: Returns the curve associated to the element.
57
58         ---C++: return &
59
60         returns TheElementCurve
61         is static ;
62
63
64     Orientation (me : in out ; Orientation : Orientation from TopAbs)
65
66         ---Purpose: Sets the orientation of the element.
67
68         is static ;
69
70
71     Orientation (me)
72
73         ---Purpose: Returns the orientation of the element.
74
75         returns Orientation from TopAbs
76         is static ;
77
78
79 fields
80
81     myCurve       : TheElementCurve ;
82     myOrientation : Orientation from TopAbs ;
83
84 end ElementGen from HatchGen ;