File indexing completed on 2025-01-18 10:03:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BRepMeshData_Curve_HeaderFile
0017 #define _BRepMeshData_Curve_HeaderFile
0018
0019 #include <IMeshData_Curve.hxx>
0020 #include <Standard_Type.hxx>
0021 #include <NCollection_IncAllocator.hxx>
0022 #include <IMeshData_Types.hxx>
0023
0024
0025 class BRepMeshData_Curve : public IMeshData_Curve
0026 {
0027 public:
0028
0029 DEFINE_INC_ALLOC
0030
0031
0032 Standard_EXPORT BRepMeshData_Curve (const Handle (NCollection_IncAllocator)& theAllocator);
0033
0034
0035 Standard_EXPORT virtual ~BRepMeshData_Curve ();
0036
0037
0038 Standard_EXPORT virtual void InsertPoint(
0039 const Standard_Integer thePosition,
0040 const gp_Pnt& thePoint,
0041 const Standard_Real theParamOnPCurve) Standard_OVERRIDE;
0042
0043
0044 Standard_EXPORT virtual void AddPoint (
0045 const gp_Pnt& thePoint,
0046 const Standard_Real theParamOnCurve) Standard_OVERRIDE;
0047
0048
0049 Standard_EXPORT virtual gp_Pnt& GetPoint (const Standard_Integer theIndex) Standard_OVERRIDE;
0050
0051
0052 Standard_EXPORT virtual void RemovePoint (const Standard_Integer theIndex) Standard_OVERRIDE;
0053
0054
0055 Standard_EXPORT virtual Standard_Real& GetParameter (const Standard_Integer theIndex) Standard_OVERRIDE;
0056
0057
0058 Standard_EXPORT virtual Standard_Integer ParametersNb() const Standard_OVERRIDE;
0059
0060
0061 Standard_EXPORT virtual void Clear(const Standard_Boolean isKeepEndPoints) Standard_OVERRIDE;
0062
0063 DEFINE_STANDARD_RTTIEXT(BRepMeshData_Curve, IMeshData_Curve)
0064
0065 protected:
0066
0067
0068 Standard_EXPORT virtual void removeParameter (const Standard_Integer theIndex) Standard_OVERRIDE;
0069
0070 private:
0071
0072 IMeshData::Model::SequenceOfPnt myPoints;
0073 IMeshData::Model::SequenceOfReal myParameters;
0074 };
0075
0076 #endif