0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / Extrema / Extrema_POnSurfParams.hxx
CommitLineData
42cf5bc1 1// Created on: 2012-12-06
2// Created by: Sergey KHROMOV
3// Copyright (c) 2004-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _Extrema_POnSurfParams_HeaderFile
17#define _Extrema_POnSurfParams_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <Standard_Real.hxx>
24#include <Extrema_ElementType.hxx>
25#include <Standard_Integer.hxx>
26#include <Extrema_POnSurf.hxx>
27class gp_Pnt;
28
29
30//! Data container for point on surface parameters. These parameters
31//! are required to compute an initial approximation for extrema
32//! computation.
33class Extrema_POnSurfParams : public Extrema_POnSurf
34{
35public:
36
37 DEFINE_STANDARD_ALLOC
38
39
40 //! empty constructor
41 Extrema_POnSurfParams();
42
43 //! Creation of a point on surface with parameter
44 //! values on the surface and a Pnt from gp.
45 Extrema_POnSurfParams(const Standard_Real theU, const Standard_Real theV, const gp_Pnt& thePnt);
46
47 //! Sets the square distance from this point to another one
48 //! (e.g. to the point to be projected).
49 void SetSqrDistance (const Standard_Real theSqrDistance);
50
51 //! Query the square distance from this point to another one.
52 Standard_Real GetSqrDistance() const;
53
54 //! Sets the element type on which this point is situated.
55 void SetElementType (const Extrema_ElementType theElementType);
56
57 //! Query the element type on which this point is situated.
58 Extrema_ElementType GetElementType() const;
59
60 //! Sets the U and V indices of an element that contains
61 //! this point.
62 void SetIndices (const Standard_Integer theIndexU, const Standard_Integer theIndexV);
63
64 //! Query the U and V indices of an element that contains
65 //! this point.
66 void GetIndices (Standard_Integer& theIndexU, Standard_Integer& theIndexV) const;
67
68
69
70
71protected:
72
73
74
75
76
77private:
78
79
80
81 Standard_Real mySqrDistance;
82 Extrema_ElementType myElementType;
83 Standard_Integer myIndexU;
84 Standard_Integer myIndexV;
85
86
87};
88
89
90#include <Extrema_POnSurfParams.lxx>
91
92
93
94
95
96#endif // _Extrema_POnSurfParams_HeaderFile