| 1 | -- File: Adaptor3d_GenHSurface.cdl |
| 2 | -- Created: Mon Feb 14 15:13:04 1994 |
| 3 | -- Author: model |
| 4 | -- <model@topsn2> |
| 5 | ---Copyright: Matra Datavision 1994 |
| 6 | |
| 7 | |
| 8 | generic class GenHSurface from Adaptor3d |
| 9 | (TheSurface as Surface from Adaptor3d) |
| 10 | |
| 11 | inherits HSurface from Adaptor3d |
| 12 | |
| 13 | ---Purpose: Generic class used to create a surface manipulated |
| 14 | -- with Handle from a surface described by the class Surface. |
| 15 | |
| 16 | uses |
| 17 | |
| 18 | Surface from Adaptor3d |
| 19 | |
| 20 | |
| 21 | raises |
| 22 | |
| 23 | OutOfRange from Standard, |
| 24 | NoSuchObject from Standard, |
| 25 | DomainError from Standard |
| 26 | |
| 27 | |
| 28 | is |
| 29 | |
| 30 | Create |
| 31 | |
| 32 | ---Purpose: Creates an empty GenHSurface. |
| 33 | returns mutable GenHSurface from Adaptor3d; |
| 34 | |
| 35 | |
| 36 | Create(S: TheSurface) |
| 37 | |
| 38 | ---Purpose: Creates a GenHSurface from a Surface. |
| 39 | returns mutable GenHSurface from Adaptor3d; |
| 40 | |
| 41 | |
| 42 | Set(me: mutable; S: TheSurface) |
| 43 | |
| 44 | ---Purpose: Sets the field of the GenHSurface. |
| 45 | is static; |
| 46 | |
| 47 | -- |
| 48 | -- Access to the surface |
| 49 | -- |
| 50 | |
| 51 | Surface(me) returns Surface from Adaptor3d; |
| 52 | ---Purpose: Returns a reference to the Surface inside the HSurface. |
| 53 | -- This is redefined from HSurface, cannot be inline. |
| 54 | -- |
| 55 | ---C++: return const & |
| 56 | |
| 57 | ChangeSurface(me : mutable) |
| 58 | |
| 59 | ---Purpose: Returns the surface used to create the GenHSurface. |
| 60 | -- |
| 61 | ---C++: return & |
| 62 | ---C++: inline |
| 63 | |
| 64 | returns TheSurface; |
| 65 | |
| 66 | |
| 67 | fields |
| 68 | |
| 69 | mySurf: TheSurface is protected; |
| 70 | |
| 71 | end GenHSurface; |