Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_ViewVolume.cxx
1 #include <StepVisual_ViewVolume.ixx>
2
3
4 StepVisual_ViewVolume::StepVisual_ViewVolume ()  {}
5
6 void StepVisual_ViewVolume::Init(
7         const StepVisual_CentralOrParallel aProjectionType,
8         const Handle(StepGeom_CartesianPoint)& aProjectionPoint,
9         const Standard_Real aViewPlaneDistance,
10         const Standard_Real aFrontPlaneDistance,
11         const Standard_Boolean aFrontPlaneClipping,
12         const Standard_Real aBackPlaneDistance,
13         const Standard_Boolean aBackPlaneClipping,
14         const Standard_Boolean aViewVolumeSidesClipping,
15         const Handle(StepVisual_PlanarBox)& aViewWindow)
16 {
17         // --- classe own fields ---
18         projectionType = aProjectionType;
19         projectionPoint = aProjectionPoint;
20         viewPlaneDistance = aViewPlaneDistance;
21         frontPlaneDistance = aFrontPlaneDistance;
22         frontPlaneClipping = aFrontPlaneClipping;
23         backPlaneDistance = aBackPlaneDistance;
24         backPlaneClipping = aBackPlaneClipping;
25         viewVolumeSidesClipping = aViewVolumeSidesClipping;
26         viewWindow = aViewWindow;
27 }
28
29
30 void StepVisual_ViewVolume::SetProjectionType(const StepVisual_CentralOrParallel aProjectionType)
31 {
32         projectionType = aProjectionType;
33 }
34
35 StepVisual_CentralOrParallel StepVisual_ViewVolume::ProjectionType() const
36 {
37         return projectionType;
38 }
39
40 void StepVisual_ViewVolume::SetProjectionPoint(const Handle(StepGeom_CartesianPoint)& aProjectionPoint)
41 {
42         projectionPoint = aProjectionPoint;
43 }
44
45 Handle(StepGeom_CartesianPoint) StepVisual_ViewVolume::ProjectionPoint() const
46 {
47         return projectionPoint;
48 }
49
50 void StepVisual_ViewVolume::SetViewPlaneDistance(const Standard_Real aViewPlaneDistance)
51 {
52         viewPlaneDistance = aViewPlaneDistance;
53 }
54
55 Standard_Real StepVisual_ViewVolume::ViewPlaneDistance() const
56 {
57         return viewPlaneDistance;
58 }
59
60 void StepVisual_ViewVolume::SetFrontPlaneDistance(const Standard_Real aFrontPlaneDistance)
61 {
62         frontPlaneDistance = aFrontPlaneDistance;
63 }
64
65 Standard_Real StepVisual_ViewVolume::FrontPlaneDistance() const
66 {
67         return frontPlaneDistance;
68 }
69
70 void StepVisual_ViewVolume::SetFrontPlaneClipping(const Standard_Boolean aFrontPlaneClipping)
71 {
72         frontPlaneClipping = aFrontPlaneClipping;
73 }
74
75 Standard_Boolean StepVisual_ViewVolume::FrontPlaneClipping() const
76 {
77         return frontPlaneClipping;
78 }
79
80 void StepVisual_ViewVolume::SetBackPlaneDistance(const Standard_Real aBackPlaneDistance)
81 {
82         backPlaneDistance = aBackPlaneDistance;
83 }
84
85 Standard_Real StepVisual_ViewVolume::BackPlaneDistance() const
86 {
87         return backPlaneDistance;
88 }
89
90 void StepVisual_ViewVolume::SetBackPlaneClipping(const Standard_Boolean aBackPlaneClipping)
91 {
92         backPlaneClipping = aBackPlaneClipping;
93 }
94
95 Standard_Boolean StepVisual_ViewVolume::BackPlaneClipping() const
96 {
97         return backPlaneClipping;
98 }
99
100 void StepVisual_ViewVolume::SetViewVolumeSidesClipping(const Standard_Boolean aViewVolumeSidesClipping)
101 {
102         viewVolumeSidesClipping = aViewVolumeSidesClipping;
103 }
104
105 Standard_Boolean StepVisual_ViewVolume::ViewVolumeSidesClipping() const
106 {
107         return viewVolumeSidesClipping;
108 }
109
110 void StepVisual_ViewVolume::SetViewWindow(const Handle(StepVisual_PlanarBox)& aViewWindow)
111 {
112         viewWindow = aViewWindow;
113 }
114
115 Handle(StepVisual_PlanarBox) StepVisual_ViewVolume::ViewWindow() const
116 {
117         return viewWindow;
118 }