1 // Created on: 1993-03-10
3 // Copyright (c) 1993-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 //JCV 09/07/92 portage sur C1
19 #include <Geom_Geometry.hxx>
23 #include <gp_Trsf.hxx>
25 #include <Standard_ConstructionError.hxx>
26 #include <Standard_Type.hxx>
28 IMPLEMENT_STANDARD_RTTIEXT(Geom_Geometry,Standard_Transient)
30 typedef Geom_Geometry Geometry;
37 Handle(Geom_Geometry) Geom_Geometry::Copy() const {
39 Handle(Geom_Geometry) G;
40 throw Standard_ConstructionError();
44 void Geom_Geometry::Mirror (const gp_Pnt& P) {
53 void Geom_Geometry::Mirror (const gp_Ax1& A1) {
61 void Geom_Geometry::Mirror (const gp_Ax2& A2) {
69 void Geom_Geometry::Rotate (const gp_Ax1& A1, const Standard_Real Ang) {
72 T.SetRotation (A1, Ang);
77 void Geom_Geometry::Scale (const gp_Pnt& P, const Standard_Real S) {
85 void Geom_Geometry::Translate (const gp_Vec& V) {
93 void Geom_Geometry::Translate (const gp_Pnt& P1, const gp_Pnt& P2) {
100 Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Pnt& P) const
102 Handle(Geom_Geometry) G = Copy();
108 Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Ax1& A1) const
110 Handle(Geom_Geometry) G = Copy();
116 Handle(Geom_Geometry) Geom_Geometry::Mirrored (const gp_Ax2& A2) const
118 Handle(Geom_Geometry) G = Copy();
125 Handle(Geom_Geometry) Geom_Geometry::Rotated (const gp_Ax1& A1, const Standard_Real Ang) const
127 Handle(Geom_Geometry) G = Copy();
134 Handle(Geom_Geometry) Geom_Geometry::Scaled (const gp_Pnt& P, const Standard_Real S) const
136 Handle(Geom_Geometry) G = Copy();
143 Handle(Geom_Geometry) Geom_Geometry::Transformed (const gp_Trsf& T) const
145 Handle(Geom_Geometry) G = Copy();
152 Handle(Geom_Geometry) Geom_Geometry::Translated (const gp_Vec& V) const
154 Handle(Geom_Geometry) G = Copy();
160 Handle(Geom_Geometry) Geom_Geometry::Translated (const gp_Pnt& P1, const gp_Pnt& P2) const
162 Handle(Geom_Geometry) G = Copy();
163 G->Translate (P1, P2);
168 void Geom_Geometry::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
170 OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)