0024157: Parallelization of assembly part of BO
[occt.git] / src / Vrml / Vrml_DirectionalLight.cdl
CommitLineData
b311480e 1-- Created on: 1997-02-12
2-- Created by: Alexander BRIVIN
3-- Copyright (c) 1997-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class DirectionalLight from Vrml
24
25 ---Purpose:defines a directional light node of VRML specifying
26 -- properties of lights.
27 -- This node defines a directional light source that illuminates
28 -- along rays parallel to a given 3-dimentional vector
29 -- Color is written as an RGB triple.
30 -- Light intensity must be in the range 0.0 to 1.0, inclusive.
31
32uses
33
34 Color from Quantity,
35 Vec from gp
36is
37 -- defaults :
38 Create returns DirectionalLight from Vrml;
39 -- myOnOff(Standard_TRUE)
40 -- myIntensity(1)
41 -- myColor(1 1 1)
42 -- myDirection(0 0 -1)
43
44
45 Create ( aOnOff : Boolean from Standard;
46 aIntensity : Real from Standard;
47 aColor : Color from Quantity;
48 aDirection : Vec from gp )
49 returns DirectionalLight from Vrml;
50
51 SetOnOff ( me : in out; aOnOff : Boolean from Standard );
52 OnOff ( me ) returns Boolean from Standard;
53
54 SetIntensity ( me : in out; aIntensity : Real from Standard );
55 Intensity ( me ) returns Real from Standard;
56
57 SetColor ( me : in out; aColor : Color from Quantity );
58 Color ( me ) returns Color from Quantity;
59
60 SetDirection ( me : in out; aDirection : Vec from gp );
61 Direction ( me ) returns Vec from gp;
62
63 Print ( me; anOStream: in out OStream from Standard) returns OStream from Standard;
64 ---C++: return &
65
66fields
67
68 myOnOff : Boolean from Standard; -- Whether light is on
69 myIntensity : Real from Standard; -- Source intensity (0 to 1)
70 myColor : Color from Quantity; -- RGB source color
71 myDirection : Vec from gp; -- Illumination direction vector
72
73end DirectionalLight;