+++ /dev/null
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//static Standard_Real MyXwindowCenter ;
-//static Standard_Real MyYwindowCenter ;
-//static Standard_Real MyWindowWidth ;
-//static Standard_Real MyWindowHeight ;
-static Graphic3d_Vector MyXscreenAxis ;
-static Graphic3d_Vector MyYscreenAxis ;
-static Graphic3d_Vector MyZscreenAxis ;
-static Graphic3d_Vector MyViewReferencePlane ;
-static Graphic3d_Vector MyViewReferenceUp ;
-static Graphic3d_Vector MyViewAxis ;
-static Graphic3d_Vertex MyViewReferencePoint ;
-static Graphic3d_Vertex MyGravityReferencePoint ;
-static Graphic3d_Vertex MyProjReferencePoint ;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-/***********************************************************************
-
- FONCTION :
- ----------
- Classe V3d_View_3.cxx :
-
- HISTORIQUE DES MODIFICATIONS :
- --------------------------------
- 00-09-92 : GG ; Creation.
- 24-12-97 : FMN ; Suppression de GEOMLITE
- 13-06-98 : FMN ; PRO14896: Correction sur la gestion de la perspective (cf Programming Guide)
-
-************************************************************************/
-
-#define IMP020300 //GG Don't use ZFitAll in during Rotation
-// for perf improvment
-
-/*----------------------------------------------------------------------*/
-/*
- * Includes
- */
-
#include <V3d_View.jxx>
-#include <V3d_Static.hxx>
-
-#define Zmargin 1.
/*----------------------------------------------------------------------*/
gp_Dir aReferencePlane (myCamera->Direction().Reversed());
gp_Dir anUp (myCamera->Up());
- if (!ScreenAxis (aReferencePlane, anUp, MyXscreenAxis, MyYscreenAxis, MyZscreenAxis))
+ if (!ScreenAxis (aReferencePlane, anUp, myXscreenAxis, myYscreenAxis, myZscreenAxis))
{
V3d_BadValue::Raise ("V3d_View::Translate, alignment of Eye,At,Up");
}
Standard_Real XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ;
- MyXscreenAxis.Coord (XX,XY,XZ);
- MyYscreenAxis.Coord (YX,YY,YZ);
- MyZscreenAxis.Coord (ZX,ZY,ZZ);
+ myXscreenAxis.Coord (XX,XY,XZ);
+ myYscreenAxis.Coord (YX,YY,YZ);
+ myZscreenAxis.Coord (ZX,ZY,ZZ);
myCamera->SetEye (myCamStartOpEye);
gp_Dir aReferencePlane (myCamera->Direction().Reversed());
gp_Dir anUp (myCamera->Up());
if (!ScreenAxis (aReferencePlane, anUp,
- MyXscreenAxis,MyYscreenAxis,MyZscreenAxis))
+ myXscreenAxis,myYscreenAxis,myZscreenAxis))
V3d_BadValue::Raise ("V3d_View::Translate, alignment of Eye,At,Up");
}
Standard_Real XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ;
- MyXscreenAxis.Coord (XX,XY,XZ);
- MyYscreenAxis.Coord (YX,YY,YZ);
- MyZscreenAxis.Coord (ZX,ZY,ZZ);
+ myXscreenAxis.Coord (XX,XY,XZ);
+ myYscreenAxis.Coord (YX,YY,YZ);
+ myZscreenAxis.Coord (ZX,ZY,ZZ);
myCamera->SetEye (myCamStartOpEye);
myCamera->SetCenter (myCamStartOpCenter);