-- Created on: 1993-04-26 -- Created by: Jean-Louis Frenkel -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. -- GG : GER61351 17/11/1999 Change SetColor() with a compatible Quantity_Color instead -- the restricted NameOfColor. -- Parameters the color model rule (not especially the front & back side) -- Add the SetTransparency() method. -- Add the Color(),Material() and Transparency() methods class ShadingAspect from Prs3d inherits BasicAspect from Prs3d ---Purpose: A framework to define the display of shading. -- The attributes which make up this definition include: -- - fill aspect -- - color, and -- - material uses TypeOfFacingModel from Aspect, AspectFillArea3d from Graphic3d, NameOfColor from Quantity, Color from Quantity, NameOfMaterial from Graphic3d, --NameOfMaterialPhysic from Graphic3d, MaterialAspect from Graphic3d, TypeOfLine from Aspect is Create ---Purpose: Constructs an empty framework to display shading. returns mutable ShadingAspect from Prs3d; SetColor (me: mutable; aColor: Color from Quantity; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) is static; --- Purpose: Change the polygons interior color and material ambient color. SetColor (me: mutable; aColor: NameOfColor from Quantity; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) is static; --- Purpose: Change the polygons interior color and material ambient color. SetMaterial(me: mutable; aMaterial: MaterialAspect from Graphic3d; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) is static; --- Purpose: Change the polygons material aspect. SetMaterial(me: mutable; aMaterial: NameOfMaterial from Graphic3d; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) is static; SetTransparency(me: mutable; aValue: Real from Standard; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE) is static; --- Purpose: Change the polygons transparency value. -- Warning : aValue must be in the range 0,1. 0 is the default (NO transparent) SetAspect(me:mutable; Asp : AspectFillArea3d from Graphic3d); --- Purpose: Change the polygons aspect properties. Color (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) returns Color from Quantity is static; --- Purpose: Returns the polygons color. Material (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) returns MaterialAspect from Graphic3d is static; --- Purpose: Returns the polygons material aspect. Transparency (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE) returns Real from Standard is static; --- Purpose: Returns the polygons transparency value. Aspect (me) returns AspectFillArea3d from Graphic3d; --- Purpose: Returns the polygons aspect properties. fields myAspect: AspectFillArea3d from Graphic3d; end ShadingAspect from Prs3d;