Salome HOME
8b5906f03a0986979d47d0a56c09b66b8835f657
[modules/gui.git] / src / OCCViewer / OCCViewer_ClipPlane.h
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef _OCCViewer_ClipPlane_HeaderFile
24 #define _OCCViewer_ClipPlane_HeaderFile
25
26 #include "OCCViewer.h"
27
28 #include <Graphic3d_ClipPlane.hxx>
29 #include <vector>
30
31 enum ClipPlaneMode { Absolute, Relative };
32
33 /*!
34   \class OrientedPlane
35   \brief Parameters of clipping plane in relative mode
36 */
37 class OCCVIEWER_EXPORT OrientedPlane {
38
39  public:
40   OrientedPlane();
41   OrientedPlane& operator =(const OrientedPlane& other);
42
43  public:
44   Standard_Integer Orientation;
45   Standard_Real Distance;
46   Standard_Real Rotation1;
47   Standard_Real Rotation2;  
48 };
49
50 class OCCVIEWER_EXPORT OCCViewer_ClipPlane
51 {
52   
53  public:
54   OCCViewer_ClipPlane();
55   OCCViewer_ClipPlane& operator =(const OCCViewer_ClipPlane& other);
56   
57  public:
58   OrientedPlane RelativeMode;
59   Standard_Real X;
60   Standard_Real Y;
61   Standard_Real Z;
62   Standard_Real Dx;
63   Standard_Real Dy;
64   Standard_Real Dz;
65   Standard_Integer Orientation;
66   bool IsInvert;
67   bool IsOn;
68   ClipPlaneMode PlaneMode;
69
70 };
71
72 typedef std::vector<OCCViewer_ClipPlane> ClipPlanesList;
73
74 #endif