|
||||
File indexing completed on 2025-01-18 10:04:57
0001 // Created on: 1999-05-13 0002 // Created by: data exchange team 0003 // Copyright (c) 1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _ShapeUpgrade_ConvertCurve2dToBezier_HeaderFile 0018 #define _ShapeUpgrade_ConvertCurve2dToBezier_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <TColGeom2d_HSequenceOfCurve.hxx> 0024 #include <ShapeUpgrade_SplitCurve2d.hxx> 0025 0026 0027 class ShapeUpgrade_ConvertCurve2dToBezier; 0028 DEFINE_STANDARD_HANDLE(ShapeUpgrade_ConvertCurve2dToBezier, ShapeUpgrade_SplitCurve2d) 0029 0030 //! converts/splits a 2d curve to a list of beziers 0031 class ShapeUpgrade_ConvertCurve2dToBezier : public ShapeUpgrade_SplitCurve2d 0032 { 0033 0034 public: 0035 0036 //! Empty constructor. 0037 Standard_EXPORT ShapeUpgrade_ConvertCurve2dToBezier(); 0038 0039 //! Converts curve into a list of beziers, and stores the 0040 //! splitting parameters on original curve. 0041 Standard_EXPORT virtual void Compute() Standard_OVERRIDE; 0042 0043 //! Splits a list of beziers computed by Compute method according 0044 //! the split values and splitting parameters. 0045 Standard_EXPORT virtual void Build (const Standard_Boolean Segment) Standard_OVERRIDE; 0046 0047 //! Returns the list of split parameters in original curve parametrisation. 0048 Standard_EXPORT Handle(TColStd_HSequenceOfReal) SplitParams() const; 0049 0050 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_ConvertCurve2dToBezier,ShapeUpgrade_SplitCurve2d) 0051 0052 private: 0053 0054 //! Returns the list of bezier curves correspondent to original 0055 //! curve. 0056 Standard_EXPORT Handle(TColGeom2d_HSequenceOfCurve) Segments() const; 0057 0058 Handle(TColGeom2d_HSequenceOfCurve) mySegments; 0059 Handle(TColStd_HSequenceOfReal) mySplitParams; 0060 0061 }; 0062 0063 #endif // _ShapeUpgrade_ConvertCurve2dToBezier_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |