0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / Prs3d / Prs3d_Projector.cxx
CommitLineData
b311480e 1// Copyright (c) 1995-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
42cf5bc1 15
16#include <gp_Ax3.hxx>
7fd59977 17#include <gp_Dir.hxx>
42cf5bc1 18#include <gp_Pnt.hxx>
7fd59977 19#include <gp_Trsf.hxx>
42cf5bc1 20#include <HLRAlgo_Projector.hxx>
21#include <Prs3d_Projector.hxx>
22#include <Standard_Type.hxx>
7fd59977 23
25e59720 24IMPLEMENT_STANDARD_RTTIEXT(Prs3d_Projector,Standard_Transient)
92efcf78 25
7fd59977 26Prs3d_Projector::Prs3d_Projector (const HLRAlgo_Projector& HLPr): MyProjector(HLPr)
27{}
28
29
30
31Prs3d_Projector::Prs3d_Projector (const Standard_Boolean Pers,
ee2be2a8 32 const Standard_Real Focus,
33 const Standard_Real DX,
34 const Standard_Real DY,
35 const Standard_Real DZ,
36 const Standard_Real XAt,
37 const Standard_Real YAt,
38 const Standard_Real ZAt,
39 const Standard_Real XUp,
40 const Standard_Real YUp,
41 const Standard_Real ZUp)
7fd59977 42{
43 gp_Pnt At (XAt,YAt,ZAt);
44 gp_Dir Zpers (DX,DY,DZ);
45 gp_Dir Ypers (XUp,YUp,ZUp);
46 gp_Dir Xpers = Ypers.Crossed(Zpers);
47 gp_Ax3 Axe (At, Zpers, Xpers);
48 gp_Trsf T;
49 T.SetTransformation(Axe);
50 MyProjector = HLRAlgo_Projector(T,Pers,Focus);
51}
52
53
54HLRAlgo_Projector Prs3d_Projector::Projector () const
55{
56 return MyProjector;
57}