0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / ShapeCustom / ShapeCustom_TrsfModification.hxx
CommitLineData
42cf5bc1 1// Created on: 1999-03-09
2// Created by: Roman LYGIN
3// Copyright (c) 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 _ShapeCustom_TrsfModification_HeaderFile
18#define _ShapeCustom_TrsfModification_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <BRepTools_TrsfModification.hxx>
24#include <Standard_Boolean.hxx>
25#include <Standard_Real.hxx>
26class gp_Trsf;
27class TopoDS_Face;
28class Geom_Surface;
29class TopLoc_Location;
30class TopoDS_Edge;
31class Geom_Curve;
32class TopoDS_Vertex;
33class gp_Pnt;
34class Geom2d_Curve;
35
36
37class ShapeCustom_TrsfModification;
38DEFINE_STANDARD_HANDLE(ShapeCustom_TrsfModification, BRepTools_TrsfModification)
39
40//! Complements BRepTools_TrsfModification to provide reversible
41//! scaling regarding tolerances.
42//! Uses actual tolerances (attached to the shapes) not ones
43//! returned by BRep_Tool::Tolerance to work with tolerances
44//! lower than Precision::Confusion.
45class ShapeCustom_TrsfModification : public BRepTools_TrsfModification
46{
47
48public:
49
50
51 //! Empty constructor
52 Standard_EXPORT ShapeCustom_TrsfModification(const gp_Trsf& T);
53
54 //! Calls inherited method.
55 //! Sets <Tol> as actual tolerance of <F> multiplied with scale
56 //! factor.
79104795 57 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 58
59 //! Calls inherited method.
60 //! Sets <Tol> as actual tolerance of <E> multiplied with scale
61 //! factor.
79104795 62 Standard_EXPORT Standard_Boolean NewCurve (const TopoDS_Edge& E, Handle(Geom_Curve)& C, TopLoc_Location& L, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 63
64 //! Calls inherited method.
65 //! Sets <Tol> as actual tolerance of <V> multiplied with scale
66 //! factor.
79104795 67 Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 68
69 //! Calls inherited method.
70 //! Sets <Tol> as actual tolerance of <E> multiplied with scale
71 //! factor.
79104795 72 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 73
74 //! Calls inherited method.
75 //! Sets <Tol> as actual tolerance of <V> multiplied with scale
76 //! factor.
79104795 77 Standard_EXPORT Standard_Boolean NewParameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, Standard_Real& P, Standard_Real& Tol) Standard_OVERRIDE;
42cf5bc1 78
79
80
81
92efcf78 82 DEFINE_STANDARD_RTTIEXT(ShapeCustom_TrsfModification,BRepTools_TrsfModification)
42cf5bc1 83
84protected:
85
86
87
88
89private:
90
91
92
93
94};
95
96
97
98
99
100
101
102#endif // _ShapeCustom_TrsfModification_HeaderFile