0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / BRepBlend / BRepBlend_PointOnRst.hxx
1 // Created on: 1993-12-02
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-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 _BRepBlend_PointOnRst_HeaderFile
18 #define _BRepBlend_PointOnRst_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <IntSurf_Transition.hxx>
25 #include <Standard_Real.hxx>
26 class Adaptor2d_HCurve2d;
27 class Standard_DomainError;
28 class IntSurf_Transition;
29
30
31 //! Definition of an intersection point between a line
32 //! and a restriction on a surface.
33 //! Such a point is contains geometrical informations (see
34 //! the Value method) and logical informations.
35 class BRepBlend_PointOnRst 
36 {
37 public:
38
39   DEFINE_STANDARD_ALLOC
40
41   
42   //! Empty constructor.
43   Standard_EXPORT BRepBlend_PointOnRst();
44   
45   //! Creates the PointOnRst on the arc A, at parameter Param,
46   //! with the transition TLine on the walking line, and
47   //! TArc on the arc A.
48   Standard_EXPORT BRepBlend_PointOnRst(const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Param, const IntSurf_Transition& TLine, const IntSurf_Transition& TArc);
49   
50   //! Sets the values of a point which is on the arc
51   //! A, at parameter Param.
52   Standard_EXPORT void SetArc (const Handle(Adaptor2d_HCurve2d)& A, const Standard_Real Param, const IntSurf_Transition& TLine, const IntSurf_Transition& TArc);
53   
54   //! Returns the arc of restriction containing the
55   //! vertex.
56     const Handle(Adaptor2d_HCurve2d)& Arc() const;
57   
58   //! Returns the transition of the point on the
59   //! line on surface.
60     const IntSurf_Transition& TransitionOnLine() const;
61   
62   //! Returns the transition of the point on the arc
63   //! returned by Arc().
64     const IntSurf_Transition& TransitionOnArc() const;
65   
66   //! Returns the parameter of the point on the
67   //! arc returned by the method Arc().
68     Standard_Real ParameterOnArc() const;
69
70
71
72
73 protected:
74
75
76
77
78
79 private:
80
81
82
83   Handle(Adaptor2d_HCurve2d) arc;
84   IntSurf_Transition traline;
85   IntSurf_Transition traarc;
86   Standard_Real prm;
87
88
89 };
90
91
92 #include <BRepBlend_PointOnRst.lxx>
93
94
95
96
97
98 #endif // _BRepBlend_PointOnRst_HeaderFile