b311480e |
1 | -- Created on: 1994-03-28 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1994-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class Point from DrawTrSurf inherits Drawable3D from Draw |
18 | |
19 | ---Purpose: A drawable point. |
20 | |
21 | uses |
22 | Pnt from gp, |
23 | Pnt2d from gp, |
24 | MarkerShape from Draw, |
25 | Color from Draw, |
26 | Display from Draw, |
27 | Drawable3D from Draw, |
28 | Interpretor from Draw |
29 | |
30 | is |
31 | |
32 | Create( P : Pnt from gp; |
33 | Shape : MarkerShape from Draw; |
34 | Col : Color from Draw) |
6e33d3ce |
35 | returns Point from DrawTrSurf; |
7fd59977 |
36 | |
37 | Create( P : Pnt2d from gp; |
38 | Shape : MarkerShape from Draw; |
39 | Col : Color from Draw) |
6e33d3ce |
40 | returns Point from DrawTrSurf; |
7fd59977 |
41 | |
42 | DrawOn (me; dis : in out Display from Draw); |
43 | |
44 | Is3D(me) returns Boolean |
45 | ---Purpose: Is a 3D object. (Default True). |
46 | is redefined; |
47 | |
48 | Point(me) returns Pnt from gp |
49 | is static; |
50 | |
51 | Point(me : mutable; P : Pnt from gp) |
52 | is static; |
53 | |
54 | Point2d(me) returns Pnt2d from gp |
55 | is static; |
56 | |
57 | Point2d(me : mutable; P : Pnt2d from gp) |
58 | is static; |
59 | |
60 | Color(me : mutable; aColor : Color from Draw) |
61 | is static; |
62 | |
63 | Color (me) returns Color from Draw |
64 | is static; |
65 | |
66 | Shape(me : mutable; S : MarkerShape from Draw) |
67 | is static; |
68 | |
69 | Shape(me) returns MarkerShape from Draw |
70 | is static; |
71 | |
6e33d3ce |
72 | Copy(me) returns Drawable3D from Draw |
7fd59977 |
73 | ---Purpose: For variable copy. |
74 | is redefined; |
75 | |
76 | Dump(me; S : in out OStream) |
77 | ---Purpose: For variable dump. |
78 | is redefined; |
79 | |
80 | Whatis(me; I : in out Interpretor from Draw) |
81 | ---Purpose: For variable whatis command. |
82 | is redefined; |
83 | |
84 | fields |
85 | |
86 | myPoint : Pnt from gp; |
87 | is3D : Boolean; |
88 | myShape : MarkerShape from Draw; |
89 | myColor : Color from Draw; |
90 | |
91 | end Point; |
92 | |
93 | |