04a22491a8cbbfe1cc1f7d1d488813e53ada2f73
[occt.git] / src / V3d / V3d.hxx
1 // Created on: 1992-11-13
2 // Created by: GG
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _V3d_HeaderFile
18 #define _V3d_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <V3d_TypeOfOrientation.hxx>
25 #include <Standard_Real.hxx>
26
27 class V3d_View;
28
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.
32 class V3d 
33 {
34 public:
35
36   DEFINE_STANDARD_ALLOC
37
38   //! Determines the orientation vector corresponding
39   //! to the predefined orientation type.
40   Standard_EXPORT static Graphic3d_Vector GetProjAxis (const V3d_TypeOfOrientation Orientation);
41
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);
52
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);
61
62   Standard_EXPORT static void SwitchViewsinWindow (const Handle(V3d_View)& aPreviousView, const Handle(V3d_View)& aNextView);
63
64 };
65
66 #endif // _V3d_HeaderFile