b311480e |
1 | -- Created on: 1993-04-26 |
2 | -- Created by: Jean-Louis Frenkel |
3 | -- Copyright (c) 1993-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. |
b311480e |
16 | |
7fd59977 |
17 | class ShadingAspect from Prs3d inherits BasicAspect from Prs3d |
18 | ---Purpose: A framework to define the display of shading. |
19 | -- The attributes which make up this definition include: |
20 | -- - fill aspect |
21 | -- - color, and |
22 | -- - material |
23 | uses |
24 | |
25 | TypeOfFacingModel from Aspect, |
26 | AspectFillArea3d from Graphic3d, |
27 | NameOfColor from Quantity, |
28 | Color from Quantity, |
29 | NameOfMaterial from Graphic3d, |
30 | --NameOfMaterialPhysic from Graphic3d, |
31 | MaterialAspect from Graphic3d, |
32 | TypeOfLine from Aspect |
33 | |
34 | is |
35 | Create |
36 | ---Purpose: Constructs an empty framework to display shading. |
6e33d3ce |
37 | returns ShadingAspect from Prs3d; |
1a75746e |
38 | |
39 | Create( theAspect: AspectFillArea3d from Graphic3d ) |
40 | returns ShadingAspect from Prs3d; |
7fd59977 |
41 | |
42 | SetColor (me: mutable; aColor: Color from Quantity; |
43 | aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) |
44 | is static; |
45 | --- Purpose: Change the polygons interior color and material ambient color. |
46 | |
47 | SetColor (me: mutable; aColor: NameOfColor from Quantity; |
48 | aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) |
49 | is static; |
50 | --- Purpose: Change the polygons interior color and material ambient color. |
51 | |
52 | SetMaterial(me: mutable; aMaterial: MaterialAspect from Graphic3d; |
53 | aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) |
54 | is static; |
55 | --- Purpose: Change the polygons material aspect. |
56 | |
57 | SetMaterial(me: mutable; aMaterial: NameOfMaterial from Graphic3d; |
58 | aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) |
59 | is static; |
60 | |
61 | SetTransparency(me: mutable; aValue: Real from Standard; |
62 | aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) |
63 | is static; |
64 | --- Purpose: Change the polygons transparency value. |
65 | -- Warning : aValue must be in the range 0,1. 0 is the default (NO transparent) |
66 | |
7fd59977 |
67 | Color (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) |
68 | returns Color from Quantity is static; |
69 | --- Purpose: Returns the polygons color. |
e0608a8d |
70 | ---C++: return const & |
7fd59977 |
71 | |
72 | Material (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) |
73 | returns MaterialAspect from Graphic3d is static; |
74 | --- Purpose: Returns the polygons material aspect. |
e0608a8d |
75 | ---C++: return const & |
7fd59977 |
76 | |
77 | Transparency (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) |
78 | returns Real from Standard is static; |
79 | --- Purpose: Returns the polygons transparency value. |
80 | |
81 | Aspect (me) returns AspectFillArea3d from Graphic3d; |
82 | --- Purpose: Returns the polygons aspect properties. |
1a75746e |
83 | |
84 | SetAspect( me: mutable; theAspect: AspectFillArea3d from Graphic3d ); |
7fd59977 |
85 | |
86 | fields |
87 | |
88 | myAspect: AspectFillArea3d from Graphic3d; |
89 | |
90 | end ShadingAspect from Prs3d; |