0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / LProp3d / LProp3d_CLProps.hxx
CommitLineData
42cf5bc1 1// Created on: 2002-08-02
2// Created by: Alexander KARTOMIN (akm)
3// Copyright (c) 2002-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 _LProp3d_CLProps_HeaderFile
17#define _LProp3d_CLProps_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <Standard_Real.hxx>
24#include <Standard_Integer.hxx>
25#include <gp_Pnt.hxx>
26#include <gp_Vec.hxx>
27#include <gp_Dir.hxx>
28#include <LProp_Status.hxx>
29#include <Standard_Boolean.hxx>
30class Adaptor3d_HCurve;
31class LProp_BadContinuity;
32class Standard_DomainError;
33class Standard_OutOfRange;
34class LProp_NotDefined;
35class gp_Vec;
36class gp_Pnt;
37class gp_Dir;
38class LProp3d_CurveTool;
39
40
41
42class LProp3d_CLProps
43{
44public:
45
46 DEFINE_STANDARD_ALLOC
47
48
49 Standard_EXPORT LProp3d_CLProps(const Handle(Adaptor3d_HCurve)& C, const Standard_Integer N, const Standard_Real Resolution);
50
51 Standard_EXPORT LProp3d_CLProps(const Handle(Adaptor3d_HCurve)& C, const Standard_Real U, const Standard_Integer N, const Standard_Real Resolution);
52
53 Standard_EXPORT LProp3d_CLProps(const Standard_Integer N, const Standard_Real Resolution);
54
55 Standard_EXPORT void SetParameter (const Standard_Real U);
56
57 Standard_EXPORT void SetCurve (const Handle(Adaptor3d_HCurve)& C);
58
59 Standard_EXPORT const gp_Pnt& Value() const;
60
61 Standard_EXPORT const gp_Vec& D1();
62
63 Standard_EXPORT const gp_Vec& D2();
64
65 Standard_EXPORT const gp_Vec& D3();
66
67 Standard_EXPORT Standard_Boolean IsTangentDefined();
68
69 Standard_EXPORT void Tangent (gp_Dir& D);
70
71 Standard_EXPORT Standard_Real Curvature();
72
73 Standard_EXPORT void Normal (gp_Dir& N);
74
75 Standard_EXPORT void CentreOfCurvature (gp_Pnt& P);
76
77
78
79
80protected:
81
82
83
84
85
86private:
87
88
89
90 Handle(Adaptor3d_HCurve) myCurve;
91 Standard_Real myU;
92 Standard_Integer myDerOrder;
93 Standard_Real myCN;
94 Standard_Real myLinTol;
95 gp_Pnt myPnt;
96 gp_Vec myDerivArr[3];
97 gp_Dir myTangent;
98 Standard_Real myCurvature;
99 LProp_Status myTangentStatus;
100 Standard_Integer mySignificantFirstDerivativeOrder;
101
102
103};
104
105
106
107
108
109
110
111#endif // _LProp3d_CLProps_HeaderFile