1 -- Created on: 1993-04-26
2 -- Created by: Jean-Louis Frenkel
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
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:
25 TypeOfFacingModel from Aspect,
26 AspectFillArea3d from Graphic3d,
27 NameOfColor from Quantity,
29 NameOfMaterial from Graphic3d,
30 --NameOfMaterialPhysic from Graphic3d,
31 MaterialAspect from Graphic3d,
32 TypeOfLine from Aspect
36 ---Purpose: Constructs an empty framework to display shading.
37 returns ShadingAspect from Prs3d;
39 SetColor (me: mutable; aColor: Color from Quantity;
40 aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
42 --- Purpose: Change the polygons interior color and material ambient color.
44 SetColor (me: mutable; aColor: NameOfColor from Quantity;
45 aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
47 --- Purpose: Change the polygons interior color and material ambient color.
49 SetMaterial(me: mutable; aMaterial: MaterialAspect from Graphic3d;
50 aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
52 --- Purpose: Change the polygons material aspect.
54 SetMaterial(me: mutable; aMaterial: NameOfMaterial from Graphic3d;
55 aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
58 SetTransparency(me: mutable; aValue: Real from Standard;
59 aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
61 --- Purpose: Change the polygons transparency value.
62 -- Warning : aValue must be in the range 0,1. 0 is the default (NO transparent)
64 SetAspect(me:mutable; Asp : AspectFillArea3d from Graphic3d);
65 --- Purpose: Change the polygons aspect properties.
67 Color (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE)
68 returns Color from Quantity is static;
69 --- Purpose: Returns the polygons color.
70 ---C++: return const &
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.
75 ---C++: return const &
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.
81 Aspect (me) returns AspectFillArea3d from Graphic3d;
82 --- Purpose: Returns the polygons aspect properties.
86 myAspect: AspectFillArea3d from Graphic3d;
88 end ShadingAspect from Prs3d;