0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / IMeshData / IMeshData_Curve.hxx
CommitLineData
7bd071ed 1// Created on: 2016-04-07
2// Copyright (c) 2016 OPEN CASCADE SAS
3// Created by: Oleg AGASHIN
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _IMeshData_Curve_HeaderFile
17#define _IMeshData_Curve_HeaderFile
18
19#include <IMeshData_ParametersList.hxx>
20#include <Standard_Type.hxx>
21
22class gp_Pnt;
23
24//! Interface class representing discrete 3d curve of edge.
25//! Indexation of points starts from zero.
26class IMeshData_Curve : public IMeshData_ParametersList
27{
28public:
29
30 //! Destructor.
31 Standard_EXPORT virtual ~IMeshData_Curve()
32 {
33 }
34
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;
40
41 //! Adds new discretization point to curve.
42 Standard_EXPORT virtual void AddPoint (
43 const gp_Pnt& thePoint,
44 const Standard_Real theParamOnCurve) = 0;
45
46 //! Returns discretization point with the given index.
47 Standard_EXPORT virtual gp_Pnt& GetPoint (const Standard_Integer theIndex) = 0;
48
49 //! Removes point with the given index.
50 Standard_EXPORT virtual void RemovePoint (const Standard_Integer theIndex) = 0;
51
52 DEFINE_STANDARD_RTTI_INLINE(IMeshData_Curve, IMeshData_ParametersList)
53
54protected:
55
56 //! Constructor.
57 Standard_EXPORT IMeshData_Curve()
58 {
59 }
60};
61
62#endif