0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / IntPatch / IntPatch_ThePathPointOfTheSOnBounds.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-05-06
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1992-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 _IntPatch_ThePathPointOfTheSOnBounds_HeaderFile
18#define _IntPatch_ThePathPointOfTheSOnBounds_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <gp_Pnt.hxx>
25#include <Standard_Real.hxx>
26#include <Standard_Boolean.hxx>
27class Adaptor3d_HVertex;
28class Adaptor2d_HCurve2d;
29class Standard_DomainError;
30class gp_Pnt;
31
32
33
34class IntPatch_ThePathPointOfTheSOnBounds
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41 Standard_EXPORT IntPatch_ThePathPointOfTheSOnBounds();
42
43 Standard_EXPORT IntPatch_ThePathPointOfTheSOnBounds(const gp_Pnt& P, const Standard_Real Tol, const Handle(Adaptor3d_HVertex)& V, const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Parameter);
44
45 Standard_EXPORT IntPatch_ThePathPointOfTheSOnBounds(const gp_Pnt& P, const Standard_Real Tol, const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Parameter);
46
47 void SetValue (const gp_Pnt& P, const Standard_Real Tol, const Handle(Adaptor3d_HVertex)& V, const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Parameter);
48
49 void SetValue (const gp_Pnt& P, const Standard_Real Tol, const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Parameter);
50
51 const gp_Pnt& Value() const;
52
53 Standard_Real Tolerance() const;
54
55 Standard_Boolean IsNew() const;
56
57 const Handle(Adaptor3d_HVertex)& Vertex() const;
58
59 const Handle(Adaptor2d_HCurve2d)& Arc() const;
60
61 Standard_Real Parameter() const;
62
63
64
65
66protected:
67
68
69
70
71
72private:
73
74
75
76 gp_Pnt point;
77 Standard_Real tol;
78 Standard_Boolean isnew;
79 Handle(Adaptor3d_HVertex) vtx;
80 Handle(Adaptor2d_HCurve2d) arc;
81 Standard_Real param;
82
83
84};
85
86#define TheVertex Handle(Adaptor3d_HVertex)
87#define TheVertex_hxx <Adaptor3d_HVertex.hxx>
88#define TheArc Handle(Adaptor2d_HCurve2d)
89#define TheArc_hxx <Adaptor2d_HCurve2d.hxx>
90#define IntStart_PathPoint IntPatch_ThePathPointOfTheSOnBounds
91#define IntStart_PathPoint_hxx <IntPatch_ThePathPointOfTheSOnBounds.hxx>
92
93#include <IntStart_PathPoint.lxx>
94
95#undef TheVertex
96#undef TheVertex_hxx
97#undef TheArc
98#undef TheArc_hxx
99#undef IntStart_PathPoint
100#undef IntStart_PathPoint_hxx
101
102
103
104
105#endif // _IntPatch_ThePathPointOfTheSOnBounds_HeaderFile