CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
[occt.git] / src / BRepTools / BRepTools_TrsfModification.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-08-25
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1994-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 _BRepTools_TrsfModification_HeaderFile
18#define _BRepTools_TrsfModification_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <gp_Trsf.hxx>
24#include <BRepTools_Modification.hxx>
25#include <Standard_Boolean.hxx>
26#include <Standard_Real.hxx>
27#include <GeomAbs_Shape.hxx>
42cf5bc1 28class TopoDS_Face;
29class Geom_Surface;
30class TopLoc_Location;
31class TopoDS_Edge;
32class Geom_Curve;
33class TopoDS_Vertex;
34class gp_Pnt;
35class Geom2d_Curve;
36
37
38class BRepTools_TrsfModification;
39DEFINE_STANDARD_HANDLE(BRepTools_TrsfModification, BRepTools_Modification)
40
41//! Describes a modification that uses a gp_Trsf to
42//! change the geometry of a shape. All functions return
43//! true and transform the geometry of the shape.
44class BRepTools_TrsfModification : public BRepTools_Modification
45{
46
47public:
48
49
50 Standard_EXPORT BRepTools_TrsfModification(const gp_Trsf& T);
51
52 //! Provides access to the gp_Trsf associated with this
53 //! modification. The transformation can be changed.
54 Standard_EXPORT gp_Trsf& Trsf();
55
56 //! Returns true if the face F has been modified.
57 //! If the face has been modified:
58 //! - S is the new geometry of the face,
59 //! - L is its new location, and
60 //! - Tol is the new tolerance.
61 //! RevWires is set to true when the modification
62 //! reverses the normal of the surface (the wires have to be reversed).
63 //! RevFace is set to true if the orientation of the
64 //! modified face changes in the shells which contain it.
65 //! For this class, RevFace returns true if the gp_Trsf
66 //! associated with this modification is negative.
79104795 67 Standard_EXPORT Standard_Boolean NewSurface (const TopoDS_Face& F, Handle(Geom_Surface)& S, TopLoc_Location& L, Standard_Real& Tol, Standard_Boolean& RevWires, Standard_Boolean& RevFace) Standard_OVERRIDE;
42cf5bc1 68
69 //! Returns true if the edge E has been modified.
70 //! If the edge has been modified:
71 //! - C is the new geometric support of the edge,
72 //! - L is the new location, and
73 //! - Tol is the new tolerance.
74 //! If the edge has not been modified, this function
75 //! returns false, and the values of C, L and Tol are not significant.
79104795 76 Standard_EXPORT Standard_Boolean NewCurve (const TopoDS_Edge& E, Handle(Geom_Curve)& C, TopLoc_Location& L, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 77
78 //! Returns true if the vertex V has been modified.
79 //! If the vertex has been modified:
80 //! - P is the new geometry of the vertex, and
81 //! - Tol is the new tolerance.
82 //! If the vertex has not been modified this function
83 //! returns false, and the values of P and Tol are not significant.
79104795 84 Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 85
86 //! Returns true if the edge E has a new curve on surface on the face F.
87 //! If a new curve exists:
88 //! - C is the new geometric support of the edge,
89 //! - L is the new location, and
90 //! - Tol the new tolerance.
91 //! If no new curve exists, this function returns false, and
92 //! the values of C, L and Tol are not significant.
79104795 93 Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 94
95 //! Returns true if the Vertex V has a new parameter on the edge E.
96 //! If a new parameter exists:
97 //! - P is the parameter, and
98 //! - Tol is the new tolerance.
99 //! If no new parameter exists, this function returns false,
100 //! and the values of P and Tol are not significant.
79104795 101 Standard_EXPORT Standard_Boolean NewParameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, Standard_Real& P, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 102
103 //! Returns the continuity of <NewE> between <NewF1>
104 //! and <NewF2>.
105 //!
106 //! <NewE> is the new edge created from <E>. <NewF1>
107 //! (resp. <NewF2>) is the new face created from <F1>
108 //! (resp. <F2>).
79104795 109 Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2, const TopoDS_Edge& NewE, const TopoDS_Face& NewF1, const TopoDS_Face& NewF2) Standard_OVERRIDE;
42cf5bc1 110
111
112
113
92efcf78 114 DEFINE_STANDARD_RTTIEXT(BRepTools_TrsfModification,BRepTools_Modification)
42cf5bc1 115
116protected:
117
118
119
120
121private:
122
123
124 gp_Trsf myTrsf;
125
126
127};
128
129
130
131
132
133
134
135#endif // _BRepTools_TrsfModification_HeaderFile