]> SALOME platform Git repositories - modules/gui.git/blob - src/OCCViewer/OCCViewer_ClipPlane.cxx
Salome HOME
f94721663250db5690dd92a9c786430be564266f
[modules/gui.git] / src / OCCViewer / OCCViewer_ClipPlane.cxx
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 #include "OCCViewer_ClipPlane.h"
24
25 #include <gp_Pln.hxx>
26
27 /*!
28   Constructor of class OrientedPlane
29  */
30 OrientedPlane::OrientedPlane():
31   Orientation (0),
32   Distance (0.5),
33   Rotation1 (0),
34   Rotation2 (0)
35 {
36 }
37
38 /*!
39   Operator of another OrientedPlane  assignment.
40   @param   other the OrientedPlane to assign.
41   @return  the assigned OrientedPlane.
42 */
43 OrientedPlane& OrientedPlane::operator = ( const OrientedPlane& other )
44 {
45   Orientation = other.Orientation;
46   Distance = other.Distance;
47   Rotation1 = other.Rotation1;
48   Rotation2 = other.Rotation2;
49 }
50
51 OCCViewer_ClipPlane::OCCViewer_ClipPlane() :
52   RelativeMode(),
53   X (0.0), Y (0.0), Z (0.0),
54   Dx(1.0), Dy(1.0), Dz(1.0),
55   Orientation (0),
56   IsInvert (false),
57   PlaneMode (Absolute),
58   IsOn(true)
59 {
60 }
61
62 /*!
63   Operator of another OCCViewer_ClipPlane assignment.
64   @param   other the OCCViewer_ClipPlane to assign.
65   @return  the assigned OCCViewer_ClipPlane.
66 */
67 OCCViewer_ClipPlane& OCCViewer_ClipPlane::operator = ( const OCCViewer_ClipPlane& other )
68 {
69   RelativeMode = other.RelativeMode;
70   X = other.X;
71   Y = other.Y;  
72   Z = other.Z;
73   Dx = other.Dx;
74   Dy = other.Dy;
75   Dz = other.Dz;
76   Orientation = other.Orientation;
77   IsInvert = other.IsInvert;
78   PlaneMode = other.PlaneMode;
79   IsOn = other.IsOn;
80 }