1 // Created on: 2016-04-07
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _IMeshData_Curve_HeaderFile
17 #define _IMeshData_Curve_HeaderFile
19 #include <IMeshData_ParametersList.hxx>
20 #include <Standard_Type.hxx>
24 //! Interface class representing discrete 3d curve of edge.
25 //! Indexation of points starts from zero.
26 class IMeshData_Curve : public IMeshData_ParametersList
31 virtual ~IMeshData_Curve()
35 //! Inserts new discretization point at the given position.
36 Standard_EXPORT virtual void InsertPoint(
37 const Standard_Integer thePosition,
38 const gp_Pnt& thePoint,
39 const Standard_Real theParamOnPCurve) = 0;
41 //! Adds new discretization point to curve.
42 Standard_EXPORT virtual void AddPoint (
43 const gp_Pnt& thePoint,
44 const Standard_Real theParamOnCurve) = 0;
46 //! Returns discretization point with the given index.
47 Standard_EXPORT virtual gp_Pnt& GetPoint (const Standard_Integer theIndex) = 0;
49 //! Removes point with the given index.
50 Standard_EXPORT virtual void RemovePoint (const Standard_Integer theIndex) = 0;
52 DEFINE_STANDARD_RTTIEXT(IMeshData_Curve, IMeshData_ParametersList)