0023024: Update headers of OCCT files
[occt.git] / src / gce / gce_MakeMirror.cxx
CommitLineData
b311480e 1// Created on: 1992-09-04
2// Created by: Remi GILET
3// Copyright (c) 1992-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22#include <gce_MakeMirror.ixx>
23#include <gp_Ax3.hxx>
24
25//=========================================================================
26// Creation d une symetrie de gp par rapport a un point. +
27//=========================================================================
28
29gce_MakeMirror::gce_MakeMirror(const gp_Pnt& Point )
30{
31 TheMirror.SetMirror(Point);
32}
33
34//=========================================================================
35// Creation d une symetrie de gp par rapport a une droite. +
36//=========================================================================
37
38gce_MakeMirror::gce_MakeMirror(const gp_Ax1& Axis )
39{
40 TheMirror.SetMirror(Axis);
41}
42
43//=========================================================================
44// Creation d une symetrie de gp par rapport a une droite. +
45//=========================================================================
46
47gce_MakeMirror::gce_MakeMirror(const gp_Lin& Line )
48{
49 TheMirror.SetMirror(gp_Ax1(Line.Location(),Line.Direction()));
50}
51
52//=========================================================================
53// Creation d une symetrie de gp par rapport a une droite definie +
54// par un point et une direction. +
55//=========================================================================
56
57gce_MakeMirror::gce_MakeMirror(const gp_Pnt& Point ,
58 const gp_Dir& Direc )
59{
60 TheMirror.SetMirror(gp_Ax1(Point,Direc));
61}
62
63//=========================================================================
64// Creation d une symetrie 3d de gp par rapport a un plan defini par +
65// un Ax2 (Normale au plan et axe x du plan). +
66//=========================================================================
67
68gce_MakeMirror::gce_MakeMirror(const gp_Ax2& Plane )
69{
70 TheMirror.SetMirror(Plane);
71}
72
73//=========================================================================
74// Creation d une symetrie 3d de gp par rapport a un plan Plane. +
75//=========================================================================
76
77gce_MakeMirror::gce_MakeMirror(const gp_Pln& Plane )
78{
79 TheMirror.SetMirror(Plane.Position().Ax2());
80}
81
82const gp_Trsf& gce_MakeMirror::Value() const
83{
84 return TheMirror;
85}
86
87const gp_Trsf& gce_MakeMirror::Operator() const
88{
89 return TheMirror;
90}
91
92gce_MakeMirror::operator gp_Trsf() const
93{
94 return TheMirror;
95}