7fd59977 |
1 | // File: ApproxInt_ApproxInt_MultiLineTool.lxx |
2 | // Created: Tue Mar 30 17:05:43 1993 |
3 | // Author: Laurent BUCHARD |
4 | // <lbr@topsn3> |
5 | |
6 | |
7 | #include TheMultiLine_hxx |
8 | |
9 | #include <TColgp_Array1OfPnt.hxx> |
10 | #include <TColgp_Array1OfPnt2d.hxx> |
11 | #include <TColgp_Array1OfVec.hxx> |
12 | #include <TColgp_Array1OfVec2d.hxx> |
13 | |
14 | #include <Approx_Status.hxx> |
15 | |
16 | //================================================================================ |
17 | inline Standard_Integer ApproxInt_MultiLineTool::NbP2d(const TheMultiLine& ML) { |
18 | return(ML.NbP2d()); |
19 | } |
20 | //-------------------------------------------------------------------------------- |
21 | inline Standard_Integer ApproxInt_MultiLineTool::NbP3d(const TheMultiLine& ML) { |
22 | return(ML.NbP3d()); |
23 | } |
24 | //-------------------------------------------------------------------------------- |
25 | inline Standard_Integer ApproxInt_MultiLineTool::FirstPoint(const TheMultiLine& ML) { |
26 | return(ML.FirstPoint()); |
27 | } |
28 | //-------------------------------------------------------------------------------- |
29 | inline Standard_Integer ApproxInt_MultiLineTool::LastPoint(const TheMultiLine& ML) { |
30 | return(ML.LastPoint()); |
31 | } |
32 | //-------------------------------------------------------------------------------- |
33 | inline void ApproxInt_MultiLineTool::Value( const TheMultiLine& ML |
34 | ,const Standard_Integer Index |
35 | ,TColgp_Array1OfPnt& TabPnt) { |
36 | ML.Value(Index,TabPnt); |
37 | } |
38 | //-------------------------------------------------------------------------------- |
39 | inline void ApproxInt_MultiLineTool::Value( const TheMultiLine& ML |
40 | ,const Standard_Integer Index |
41 | ,TColgp_Array1OfPnt2d& TabPnt2d) { |
42 | ML.Value(Index,TabPnt2d); |
43 | } |
44 | //-------------------------------------------------------------------------------- |
45 | inline void ApproxInt_MultiLineTool::Value( const TheMultiLine& ML |
46 | ,const Standard_Integer Index |
47 | ,TColgp_Array1OfPnt& TabPnt |
48 | ,TColgp_Array1OfPnt2d& TabPnt2d) { |
49 | ML.Value(Index,TabPnt,TabPnt2d); |
50 | } |
51 | //-------------------------------------------------------------------------------- |
52 | inline Standard_Boolean ApproxInt_MultiLineTool::Tangency( const TheMultiLine& ML |
53 | ,const Standard_Integer Index |
54 | ,TColgp_Array1OfVec& TabVec) { |
55 | return(ML.Tangency(Index,TabVec)); |
56 | } |
57 | //-------------------------------------------------------------------------------- |
58 | inline Standard_Boolean ApproxInt_MultiLineTool::Tangency( const TheMultiLine& ML |
59 | ,const Standard_Integer Index |
60 | ,TColgp_Array1OfVec2d& TabVec2d) { |
61 | return(ML.Tangency(Index,TabVec2d)); |
62 | } |
63 | //-------------------------------------------------------------------------------- |
64 | inline Standard_Boolean ApproxInt_MultiLineTool::Tangency( const TheMultiLine& ML |
65 | ,const Standard_Integer Index |
66 | ,TColgp_Array1OfVec& TabVec |
67 | ,TColgp_Array1OfVec2d& TabVec2d) { |
68 | return(ML.Tangency(Index,TabVec,TabVec2d)); |
69 | } |
70 | |
71 | //-------------------------------------------------------------------------------- |
72 | inline Standard_Boolean ApproxInt_MultiLineTool::Curvature( const TheMultiLine& //ML |
73 | ,const Standard_Integer //Index |
74 | ,TColgp_Array1OfVec& ) { //TabVec |
75 | return Standard_False; |
76 | } |
77 | //-------------------------------------------------------------------------------- |
78 | inline Standard_Boolean ApproxInt_MultiLineTool::Curvature( const TheMultiLine& //ML |
79 | ,const Standard_Integer //Index |
80 | ,TColgp_Array1OfVec2d& ) { //TabVec2d |
81 | return Standard_False; |
82 | } |
83 | //-------------------------------------------------------------------------------- |
84 | inline Standard_Boolean ApproxInt_MultiLineTool::Curvature( const TheMultiLine& //ML |
85 | ,const Standard_Integer //Index |
86 | ,TColgp_Array1OfVec& //TabVec |
87 | ,TColgp_Array1OfVec2d& ) { //TabVec2d |
88 | return Standard_False; |
89 | } |
90 | //-------------------------------------------------------------------------------- |
91 | inline Approx_Status ApproxInt_MultiLineTool::WhatStatus(const TheMultiLine& ML |
92 | ,const Standard_Integer |
93 | ,const Standard_Integer) { |
94 | //-- PointsAdded, |
95 | //-- NoPointsAdded, |
96 | //-- NoApproximation |
97 | //-- Approx_PointsAdded |
98 | return(ML.WhatStatus()); |
99 | } |
100 | //-------------------------------------------------------------------------------- |
101 | inline TheMultiLine ApproxInt_MultiLineTool::MakeMLBetween(const TheMultiLine& ML, |
102 | const Standard_Integer I1, |
103 | const Standard_Integer I2, |
104 | const Standard_Integer NbPMin) { |
105 | |
106 | return(ML.MakeMLBetween(I1,I2,NbPMin)); |
107 | } |
108 | //================================================================================ |