0025622: CAST analysis: Avoid invocation of virtual Methods of the declared Class...
[occt.git] / src / Adaptor2d / Adaptor2d_GenHCurve2d.cdl
1 -- Created on: 1994-02-23
2 -- Created by: model
3 -- Copyright (c) 1994-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 GenHCurve2d from Adaptor2d 
18     (TheCurve as Curve2d from Adaptor2d)
19                  
20 inherits HCurve2d from Adaptor2d
21      
22         ---Purpose: Generic class used to create a curve2d manipulated
23         --          with Handle from a curve2d described by the class Curve2d. 
24         
25 uses
26
27      Curve2d from Adaptor2d
28
29
30 raises
31     
32     OutOfRange          from Standard,
33     NoSuchObject        from Standard,
34     DomainError         from Standard
35  
36 is
37
38     Create
39         ---Purpose: Creates an empty GenHCurve2d.
40         returns GenHCurve2d from Adaptor2d; 
41     
42
43     Create(C: TheCurve)
44     
45         ---Purpose: Creates a GenHCurve2d from a Curve
46         returns GenHCurve2d from Adaptor2d; 
47
48
49     Set(me: mutable; C: TheCurve)
50     
51         ---Purpose: Sets the field of the GenHCurve2d.
52         is static;
53
54     Curve2d(me)
55     
56         ---Purpose: Returns the curve used to create the GenHCurve2d.
57         --          This is redefined from HCurve2d, cannot be inline.
58         --          
59         ---C++: return const &
60
61         returns Curve2d from Adaptor2d
62         is static;
63
64     ChangeCurve2d(me : mutable)
65     
66         ---Purpose: Returns the curve used to create the GenHCurve.
67         --          
68         ---C++: return &
69         ---C++: inline
70
71         returns TheCurve;
72
73      
74 fields
75
76     myCurve : TheCurve is protected;
77
78 end GenHCurve2d;