0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / Vrml / Vrml_OrthographicCamera.cdl
CommitLineData
b311480e 1-- Created on: 1997-02-12
2-- Created by: Alexander BRIVIN
3-- Copyright (c) 1997-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--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class OrthographicCamera from Vrml
18
19 ---Purpose: specifies a OrthographicCamera node of VRML specifying properties of cameras.
20 -- An orthographic camera defines a parallel projection from a viewpoint. This camera does
21 -- not diminish objects with distance, as a PerspectiveCamera does. The viewing volume for
22 -- an orthographic camera is a rectangular parallelepiped (a box).
23uses
24
25 Vec from gp,
26 SFRotation from Vrml
27
28is
29 -- defaults :
30 Create returns OrthographicCamera from Vrml; -- myPosition(0 0 1)
31 -- myOrientation(0 0 1 0)
32 -- myFocalDistance(5)
33 -- myHeight(2)
34 -- Camera looks along the negative Z-axis
35 Create ( aPosition : Vec from gp;
36 aOrientation : SFRotation from Vrml;
37 aFocalDistance : Real from Standard;
38 aHeight : Real from Standard )
39 returns OrthographicCamera from Vrml;
40
41 SetPosition ( me : in out; aPosition : Vec from gp );
42 Position ( me ) returns Vec from gp;
43
44 SetOrientation ( me : in out; aOrientation : SFRotation from Vrml );
45 Orientation ( me ) returns SFRotation from Vrml;
46
47 SetFocalDistance ( me : in out; aFocalDistance : Real from Standard );
48 FocalDistance ( me ) returns Real from Standard;
49
50 SetHeight ( me : in out; aHeight : Real from Standard );
51 Height ( me ) returns Real from Standard;
52
53 Print ( me; anOStream: in out OStream from Standard) returns OStream from Standard;
54 ---C++: return &
55
56fields
57
58 myPosition : Vec from gp; -- Location of viewpoint
59 myOrientation : SFRotation from Vrml; -- Orientation (rotation with respect to (0,0,-1) vector)
60 myFocalDistance : Real from Standard; -- Distance from viewpoint to point of focus.
61 myHeight : Real from Standard; -- Height of view volume
62
63end OrthographicCamera;
64