1 // Created on: 1992-11-13
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _V3d_HeaderFile
18 #define _V3d_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <V3d_TypeOfOrientation.hxx>
25 #include <Standard_Real.hxx>
29 //! This package contains the set of commands and services
30 //! of the 3D Viewer. It provides a set of high level commands
31 //! to control the views and viewing modes.
38 //! Determines the orientation vector corresponding
39 //! to the predefined orientation type.
40 Standard_EXPORT static Graphic3d_Vector GetProjAxis (const V3d_TypeOfOrientation Orientation);
42 //! Compute the graphic structure of arrow.
43 //! X0,Y0,Z0 : coordinate of the arrow.
44 //! DX,DY,DZ : Direction of the arrow.
45 //! Alpha : Angle of arrow.
46 //! Lng : Length of arrow.
47 Standard_EXPORT static void ArrowOfRadius (const Handle(Graphic3d_Group)& garrow,
48 const Standard_Real X0, const Standard_Real Y0, const Standard_Real Z0,
49 const Standard_Real DX, const Standard_Real DY, const Standard_Real DZ,
50 const Standard_Real Alpha,
51 const Standard_Real Lng);
53 //! Compute the graphic structure of circle.
54 //! X0,Y0,Z0 : Center of circle.
55 //! VX,VY,VZ : Axis of circle.
56 //! Radius : Radius of circle.
57 Standard_EXPORT static void CircleInPlane (const Handle(Graphic3d_Group)& gcircle,
58 const Standard_Real X0, const Standard_Real Y0, const Standard_Real Z0,
59 const Standard_Real VX, const Standard_Real VY, const Standard_Real VZ,
60 const Standard_Real Radius);
62 Standard_EXPORT static void SwitchViewsinWindow (const Handle(V3d_View)& aPreviousView, const Handle(V3d_View)& aNextView);
66 #endif // _V3d_HeaderFile