blob: f27e8a142dbdb705ad84291f548b70422ad4fc9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// File V3d_OrthographicView.cxx
// Created September 1992
// Author GG
// Modified 25-02-98 : FMN ; PERF.27: Optimization of view creation from an existing view
//-Copyright MatraDatavision 1991,1992
//-Version
//-Design
//-Warning
//-References
//-Language C++ 2.1
// for Test method
// for the class
#include <V3d_View.hxx>
#include <V3d_OrthographicView.ixx>
#include <V3d_PerspectiveView.hxx>
//-Declarations
//-Aliases
//-Global data definitions
//-Constructors
V3d_OrthographicView::V3d_OrthographicView (const Handle(V3d_Viewer)& VM):V3d_View (VM) {
MyType = V3d_ORTHOGRAPHIC ;
MyViewMapping.SetProjection(Visual3d_TOP_PARALLEL) ;
SetViewMappingDefault() ;
SetViewOrientationDefault() ;
}
V3d_OrthographicView::V3d_OrthographicView (const Handle(V3d_Viewer)& VM, const Handle(V3d_PerspectiveView)& V):V3d_View (VM,V) {
MyType = V3d_ORTHOGRAPHIC ;
MyViewMapping.SetProjection(Visual3d_TOP_PARALLEL) ;
SetZoom(0.1, Standard_True);
SetViewMappingDefault() ;
SetViewOrientationDefault() ;
}
V3d_OrthographicView::V3d_OrthographicView (const Handle(V3d_Viewer)& VM, const Handle(V3d_OrthographicView)& V):V3d_View (VM,V) {
MyType = V3d_ORTHOGRAPHIC ;
MyViewMapping.SetProjection(Visual3d_TOP_PARALLEL) ;
SetViewMappingDefault() ;
SetViewOrientationDefault() ;
}
Handle(V3d_OrthographicView) V3d_OrthographicView::Copy () const {
return new V3d_OrthographicView(this->Viewer(),this);}
|