File indexing completed on 2025-01-18 10:03:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _CSLib_Class2d_HeaderFile
0018 #define _CSLib_Class2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TColgp_Array1OfPnt2d.hxx>
0025 #include <NCollection_Handle.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 #include <TColgp_SequenceOfPnt2d.hxx>
0028
0029 class gp_Pnt2d;
0030
0031
0032
0033
0034
0035 class CSLib_Class2d
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050 Standard_EXPORT CSLib_Class2d(const TColgp_Array1OfPnt2d& thePnts2d,
0051 const Standard_Real theTolU,
0052 const Standard_Real theTolV,
0053 const Standard_Real theUMin,
0054 const Standard_Real theVMin,
0055 const Standard_Real theUMax,
0056 const Standard_Real theVMax);
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066 Standard_EXPORT CSLib_Class2d(const TColgp_SequenceOfPnt2d& thePnts2d,
0067 const Standard_Real theTolU,
0068 const Standard_Real theTolV,
0069 const Standard_Real theUMin,
0070 const Standard_Real theVMin,
0071 const Standard_Real theUMax,
0072 const Standard_Real theVMax);
0073
0074 Standard_EXPORT Standard_Integer SiDans (const gp_Pnt2d& P) const;
0075
0076 Standard_EXPORT Standard_Integer SiDans_OnMode (const gp_Pnt2d& P, const Standard_Real Tol) const;
0077
0078 Standard_EXPORT Standard_Integer InternalSiDans (const Standard_Real X, const Standard_Real Y) const;
0079
0080 Standard_EXPORT Standard_Integer InternalSiDansOuOn (const Standard_Real X, const Standard_Real Y) const;
0081
0082 protected:
0083
0084
0085 private:
0086
0087
0088 template <class TCol_Containers2d>
0089 void Init(const TCol_Containers2d& TP2d,
0090 const Standard_Real aTolu,
0091 const Standard_Real aTolv,
0092 const Standard_Real umin,
0093 const Standard_Real vmin,
0094 const Standard_Real umax,
0095 const Standard_Real vmax);
0096
0097
0098 const CSLib_Class2d& operator= (const CSLib_Class2d& Other) const;
0099
0100 NCollection_Handle <TColStd_Array1OfReal> MyPnts2dX, MyPnts2dY;
0101 Standard_Real Tolu;
0102 Standard_Real Tolv;
0103 Standard_Integer N;
0104 Standard_Real Umin;
0105 Standard_Real Vmin;
0106 Standard_Real Umax;
0107 Standard_Real Vmax;
0108
0109
0110 };
0111
0112
0113
0114
0115
0116
0117
0118 #endif