Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/ApproxInt_MultiLineTool.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1993-03-30
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #include TheMultiLine_hxx
0018 
0019 #include <gp_Pnt.hxx>
0020 #include <NCollection_Array1.hxx>
0021 #include <gp_Pnt2d.hxx>
0022 #include <gp_Vec.hxx>
0023 #include <gp_Vec2d.hxx>
0024 
0025 #include <Approx_Status.hxx>
0026 
0027 //=================================================================================================
0028 
0029 inline int ApproxInt_MultiLineTool::NbP2d(const TheMultiLine& ML)
0030 {
0031   return (ML.NbP2d());
0032 }
0033 
0034 //=================================================================================================
0035 
0036 inline int ApproxInt_MultiLineTool::NbP3d(const TheMultiLine& ML)
0037 {
0038   return (ML.NbP3d());
0039 }
0040 
0041 //=================================================================================================
0042 
0043 inline int ApproxInt_MultiLineTool::FirstPoint(const TheMultiLine& ML)
0044 {
0045   return (ML.FirstPoint());
0046 }
0047 
0048 //=================================================================================================
0049 
0050 inline int ApproxInt_MultiLineTool::LastPoint(const TheMultiLine& ML)
0051 {
0052   return (ML.LastPoint());
0053 }
0054 
0055 //=================================================================================================
0056 
0057 inline void ApproxInt_MultiLineTool::Value(const TheMultiLine&         ML,
0058                                            const int                   Index,
0059                                            NCollection_Array1<gp_Pnt>& TabPnt)
0060 {
0061   ML.Value(Index, TabPnt);
0062 }
0063 
0064 //=================================================================================================
0065 
0066 inline void ApproxInt_MultiLineTool::Value(const TheMultiLine&           ML,
0067                                            const int                     Index,
0068                                            NCollection_Array1<gp_Pnt2d>& TabPnt2d)
0069 {
0070   ML.Value(Index, TabPnt2d);
0071 }
0072 
0073 //=================================================================================================
0074 
0075 inline void ApproxInt_MultiLineTool::Value(const TheMultiLine&           ML,
0076                                            const int                     Index,
0077                                            NCollection_Array1<gp_Pnt>&   TabPnt,
0078                                            NCollection_Array1<gp_Pnt2d>& TabPnt2d)
0079 {
0080   ML.Value(Index, TabPnt, TabPnt2d);
0081 }
0082 
0083 //=================================================================================================
0084 
0085 inline bool ApproxInt_MultiLineTool::Tangency(const TheMultiLine&         ML,
0086                                               const int                   Index,
0087                                               NCollection_Array1<gp_Vec>& TabVec)
0088 {
0089   return (ML.Tangency(Index, TabVec));
0090 }
0091 
0092 //=================================================================================================
0093 
0094 inline bool ApproxInt_MultiLineTool::Tangency(const TheMultiLine&           ML,
0095                                               const int                     Index,
0096                                               NCollection_Array1<gp_Vec2d>& TabVec2d)
0097 {
0098   return (ML.Tangency(Index, TabVec2d));
0099 }
0100 
0101 //=================================================================================================
0102 
0103 inline bool ApproxInt_MultiLineTool::Tangency(const TheMultiLine&           ML,
0104                                               const int                     Index,
0105                                               NCollection_Array1<gp_Vec>&   TabVec,
0106                                               NCollection_Array1<gp_Vec2d>& TabVec2d)
0107 {
0108   return (ML.Tangency(Index, TabVec, TabVec2d));
0109 }
0110 
0111 //=================================================================================================
0112 
0113 inline bool ApproxInt_MultiLineTool::Curvature(const TheMultiLine& // ML
0114                                                ,
0115                                                const int // Index
0116                                                ,
0117                                                NCollection_Array1<gp_Vec>&)
0118 { // TabVec
0119   return false;
0120 }
0121 
0122 //=================================================================================================
0123 
0124 inline bool ApproxInt_MultiLineTool::Curvature(const TheMultiLine& // ML
0125                                                ,
0126                                                const int // Index
0127                                                ,
0128                                                NCollection_Array1<gp_Vec2d>&)
0129 { // TabVec2d
0130   return false;
0131 }
0132 
0133 //=================================================================================================
0134 
0135 inline bool ApproxInt_MultiLineTool::Curvature(const TheMultiLine& // ML
0136                                                ,
0137                                                const int // Index
0138                                                ,
0139                                                NCollection_Array1<gp_Vec>& // TabVec
0140                                                ,
0141                                                NCollection_Array1<gp_Vec2d>&)
0142 { // TabVec2d
0143   return false;
0144 }
0145 
0146 //=================================================================================================
0147 
0148 inline Approx_Status ApproxInt_MultiLineTool::WhatStatus(const TheMultiLine& ML,
0149                                                          const int,
0150                                                          const int)
0151 {
0152   //--  PointsAdded,
0153   //--  NoPointsAdded,
0154   //--  NoApproximation
0155   //--  Approx_PointsAdded
0156   return (ML.WhatStatus());
0157 }
0158 
0159 //=================================================================================================
0160 
0161 inline TheMultiLine ApproxInt_MultiLineTool::MakeMLBetween(const TheMultiLine& ML,
0162                                                            const int           I1,
0163                                                            const int           I2,
0164                                                            const int           NbPMin)
0165 {
0166 
0167   return (ML.MakeMLBetween(I1, I2, NbPMin));
0168 }
0169 
0170 //=================================================================================================
0171 
0172 inline bool ApproxInt_MultiLineTool::MakeMLOneMorePoint(const TheMultiLine& ML,
0173                                                         const int           I1,
0174                                                         const int           I2,
0175                                                         const int           indbad,
0176                                                         TheMultiLine&       OtherLine)
0177 {
0178   return (ML.MakeMLOneMorePoint(I1, I2, indbad, OtherLine));
0179 }
0180 
0181 inline void ApproxInt_MultiLineTool::Dump(const TheMultiLine& ML)
0182 {
0183   ML.Dump();
0184 }
0185 
0186 //=================================================================================================