b311480e |
1 | -- Created on: 1995-12-01 |
2 | -- Created by: EXPRESS->CDL V0.2 Translator |
3 | -- Copyright (c) 1995-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 | |
23 | class ViewVolume from StepVisual |
24 | |
25 | inherits TShared from MMgt |
26 | |
27 | uses |
28 | |
29 | CentralOrParallel from StepVisual, |
30 | CartesianPoint from StepGeom, |
31 | Real from Standard, |
32 | Boolean from Standard, |
33 | PlanarBox from StepVisual |
34 | is |
35 | |
36 | Create returns mutable ViewVolume; |
37 | ---Purpose: Returns a ViewVolume |
38 | |
39 | Init (me : mutable; |
40 | aProjectionType : CentralOrParallel from StepVisual; |
41 | aProjectionPoint : mutable CartesianPoint from StepGeom; |
42 | aViewPlaneDistance : Real from Standard; |
43 | aFrontPlaneDistance : Real from Standard; |
44 | aFrontPlaneClipping : Boolean from Standard; |
45 | aBackPlaneDistance : Real from Standard; |
46 | aBackPlaneClipping : Boolean from Standard; |
47 | aViewVolumeSidesClipping : Boolean from Standard; |
48 | aViewWindow : mutable PlanarBox from StepVisual) is virtual; |
49 | |
50 | -- Specific Methods for Field Data Access -- |
51 | |
52 | SetProjectionType(me : mutable; aProjectionType : CentralOrParallel); |
53 | ProjectionType (me) returns CentralOrParallel; |
54 | SetProjectionPoint(me : mutable; aProjectionPoint : mutable CartesianPoint); |
55 | ProjectionPoint (me) returns mutable CartesianPoint; |
56 | SetViewPlaneDistance(me : mutable; aViewPlaneDistance : Real); |
57 | ViewPlaneDistance (me) returns Real; |
58 | SetFrontPlaneDistance(me : mutable; aFrontPlaneDistance : Real); |
59 | FrontPlaneDistance (me) returns Real; |
60 | SetFrontPlaneClipping(me : mutable; aFrontPlaneClipping : Boolean); |
61 | FrontPlaneClipping (me) returns Boolean; |
62 | SetBackPlaneDistance(me : mutable; aBackPlaneDistance : Real); |
63 | BackPlaneDistance (me) returns Real; |
64 | SetBackPlaneClipping(me : mutable; aBackPlaneClipping : Boolean); |
65 | BackPlaneClipping (me) returns Boolean; |
66 | SetViewVolumeSidesClipping(me : mutable; aViewVolumeSidesClipping : Boolean); |
67 | ViewVolumeSidesClipping (me) returns Boolean; |
68 | SetViewWindow(me : mutable; aViewWindow : mutable PlanarBox); |
69 | ViewWindow (me) returns mutable PlanarBox; |
70 | |
71 | fields |
72 | |
73 | projectionType : CentralOrParallel from StepVisual; -- an Enumeration |
74 | projectionPoint : CartesianPoint from StepGeom; |
75 | viewPlaneDistance : Real from Standard; |
76 | frontPlaneDistance : Real from Standard; |
77 | frontPlaneClipping : Boolean from Standard; |
78 | backPlaneDistance : Real from Standard; |
79 | backPlaneClipping : Boolean from Standard; |
80 | viewVolumeSidesClipping : Boolean from Standard; |
81 | viewWindow : PlanarBox from StepVisual; |
82 | |
83 | end ViewVolume; |