Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/IMeshData_ParametersList.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 2016-04-07
0002 // Copyright (c) 2016 OPEN CASCADE SAS
0003 // Created by: Oleg AGASHIN
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IMeshData_ParametersList_HeaderFile
0017 #define _IMeshData_ParametersList_HeaderFile
0018 
0019 #include <Standard_Transient.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 //! Interface class representing list of parameters on curve.
0023 class IMeshData_ParametersList : public Standard_Transient
0024 {
0025 public:
0026   //! Destructor.
0027   ~IMeshData_ParametersList() override = default;
0028 
0029   //! Returns parameter with the given index.
0030   Standard_EXPORT virtual double& GetParameter(const int theIndex) = 0;
0031 
0032   //! Returns number of parameters.
0033   Standard_EXPORT virtual int ParametersNb() const = 0;
0034 
0035   //! Clears parameters list.
0036   Standard_EXPORT virtual void Clear(const bool isKeepEndPoints) = 0;
0037 
0038   DEFINE_STANDARD_RTTIEXT(IMeshData_ParametersList, Standard_Transient)
0039 
0040 protected:
0041   //! Constructor.
0042   IMeshData_ParametersList() {}
0043 
0044   //! Removes parameter with the given index.
0045   Standard_EXPORT virtual void removeParameter(const int theIndex) = 0;
0046 };
0047 
0048 #endif