0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / IntSurf / IntSurf_PathPointTool.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-09-25
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 _IntSurf_PathPointTool_HeaderFile
18#define _IntSurf_PathPointTool_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>
27#include <gp_Vec.hxx>
28#include <gp_Dir2d.hxx>
29#include <Standard_Integer.hxx>
30class Standard_OutOfRange;
31class StdFail_UndefinedDerivative;
32class IntSurf_PathPoint;
33
34
35
36class IntSurf_PathPointTool
37{
38public:
39
40 DEFINE_STANDARD_ALLOC
41
42
43 //! Returns the 3d coordinates of the starting point.
44 static gp_Pnt Value3d (const IntSurf_PathPoint& PStart);
45
46 //! Returns the <U, V> parameters which are associated
47 //! with <P>
48 //! it's the parameters which start the marching algorithm
49 static void Value2d (const IntSurf_PathPoint& PStart, Standard_Real& U, Standard_Real& V);
50
51 //! Returns True if the point is a point on a non-oriented
52 //! arc, which means that the intersection line does not
53 //! stop at such a point but just go through such a point.
54 //! IsPassingPnt is True when IsOnArc is True
55 static Standard_Boolean IsPassingPnt (const IntSurf_PathPoint& PStart);
56
57 //! Returns True if the surfaces are tangent at this point.
58 //! IsTangent can be True when IsOnArc is True
59 //! if IsPassingPnt is True and IsTangent is True,this point
60 //! is a stopped point.
61 static Standard_Boolean IsTangent (const IntSurf_PathPoint& PStart);
62
63 //! returns the tangent at the intersection in 3d space
64 //! associated to <P>
65 //! an exception is raised if IsTangent is true.
66 static gp_Vec Direction3d (const IntSurf_PathPoint& PStart);
67
68 //! returns the tangent at the intersection in the
69 //! parametric space of the parametrized surface.This tangent
70 //! is associated to the value2d
71 //! la tangente a un sens signifiant (indique le sens de chemin
72 //! ement)
73 //! an exception is raised if IsTangent is true.
74 static gp_Dir2d Direction2d (const IntSurf_PathPoint& PStart);
75
76 //! Returns the multiplicity of the point i-e
77 //! the number of auxillar parameters associated to the
78 //! point which the principal parameters are given by Value2d
79 static Standard_Integer Multiplicity (const IntSurf_PathPoint& PStart);
80
81 //! Parametric coordinates associated to the multiplicity.
82 //! An exception is raised if Mult<=0 or Mult>multiplicity.
83 static void Parameters (const IntSurf_PathPoint& PStart, const Standard_Integer Mult, Standard_Real& U, Standard_Real& V);
84
85
86
87
88protected:
89
90
91
92
93
94private:
95
96
97
98
99
100};
101
102
103#include <IntSurf_PathPointTool.lxx>
104
105
106
107
108
109#endif // _IntSurf_PathPointTool_HeaderFile