0023024: Update headers of OCCT files
[occt.git] / src / VrmlConverter / VrmlConverter_Projector.cdl
CommitLineData
b311480e 1-- Created on: 1997-06-06
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
22class Projector from VrmlConverter inherits TShared from MMgt
23
24 ---Purpose:
25 -- defines projector and calculates properties of cameras and lights from Vrml
26 -- ( OrthograpicCamera, PerspectiveCamera, DirectionalLight, PointLight, SpotLight
27 -- and MatrixTransform ) to display all scene shapes with arbitrary locations
28 -- for requested the Projection Vector, High Point Direction and the Focus
29 -- and adds them ( method Add ) to anOSream.
30
31uses
32
33 Projector from HLRAlgo,
34 Array1OfShape from TopTools,
35 Length from Quantity,
36 PerspectiveCamera from Vrml,
37 OrthographicCamera from Vrml,
38 DirectionalLight from Vrml,
39 PointLight from Vrml,
40 SpotLight from Vrml,
41 TypeOfCamera from VrmlConverter,
42 TypeOfLight from VrmlConverter,
43 MatrixTransform from Vrml
44
45is
46
47 Create ( Shapes: Array1OfShape from TopTools;
48 Focus: Length from Quantity;
49 DX, DY, DZ: Length from Quantity; -- Projection Vector
50 XUp, YUp, ZUp: Length from Quantity; -- High Point Direction
51 Camera: TypeOfCamera from VrmlConverter = VrmlConverter_NoCamera;
52 Light: TypeOfLight from VrmlConverter = VrmlConverter_NoLight )
53 returns mutable Projector from VrmlConverter;
54
55
56 SetCamera ( me: mutable; aCamera : TypeOfCamera from VrmlConverter );
57 Camera ( me ) returns TypeOfCamera from VrmlConverter;
58
59 SetLight ( me: mutable; aLight : TypeOfLight from VrmlConverter );
60 Light ( me ) returns TypeOfLight from VrmlConverter;
61
62
63 Add(me; anOStream: in out OStream from Standard);
64 ---Purpose:
65 -- Adds into anOStream if they are defined in Create.
66 -- PerspectiveCamera,
67 -- OrthographicCamera,
68 -- DirectionLight,
69 -- PointLight,
70 -- SpotLight
71 -- with MatrixTransform from VrmlConverter;
72
73
74 Projector(me) returns Projector from HLRAlgo
75 is static;
76
77fields
78
79 myProjector: Projector from HLRAlgo;
80 myPerspectiveCamera: PerspectiveCamera from Vrml;
81 myOrthographicCamera: OrthographicCamera from Vrml;
82 myDirectionalLight: DirectionalLight from Vrml;
83 myPointLight: PointLight from Vrml;
84 mySpotLight: SpotLight from Vrml;
85 myTypeOfCamera: TypeOfCamera from VrmlConverter;
86 myTypeOfLight: TypeOfLight from VrmlConverter;
87 myMatrixTransform: MatrixTransform from Vrml;
88
89end Projector;
90
91