|
|
|||
File indexing completed on 2026-09-18 09:22:23
0001 // Created on: 1997-04-29 0002 // Created by: Alexander BRIVIN 0003 // Copyright (c) 1997-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 _VrmlConverter_DeflectionCurve_HeaderFile 0018 #define _VrmlConverter_DeflectionCurve_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Standard_OStream.hxx> 0025 #include <NCollection_Array1.hxx> 0026 #include <NCollection_HArray1.hxx> 0027 #include <Standard_Integer.hxx> 0028 class Adaptor3d_Curve; 0029 class VrmlConverter_Drawer; 0030 0031 //! DeflectionCurve - computes the presentation of 0032 //! objects to be seen as curves, converts this one into 0033 //! VRML objects and writes (adds) into 0034 //! anOStream. All requested properties of the 0035 //! representation are specify in aDrawer. 0036 //! This kind of the presentation 0037 //! is converted into IndexedLineSet (VRML). 0038 //! The computation will be made according to a maximal 0039 //! chordial deviation. 0040 class VrmlConverter_DeflectionCurve 0041 { 0042 public: 0043 DEFINE_STANDARD_ALLOC 0044 0045 //! adds to the OStream the drawing of the curve aCurve with 0046 //! respect to the maximal chordial deviation defined 0047 //! by the drawer aDrawer. 0048 //! The aspect is defined by LineAspect in aDrawer. 0049 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0050 Adaptor3d_Curve& aCurve, 0051 const occ::handle<VrmlConverter_Drawer>& aDrawer); 0052 0053 //! adds to the OStream the drawing of the curve aCurve with 0054 //! respect to the maximal chordial deviation defined 0055 //! by the drawer aDrawer. 0056 //! The aspect is defined by LineAspect in aDrawer. 0057 //! The drawing will be limited between the points of parameter 0058 //! U1 and U2. 0059 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0060 Adaptor3d_Curve& aCurve, 0061 const double U1, 0062 const double U2, 0063 const occ::handle<VrmlConverter_Drawer>& aDrawer); 0064 0065 //! adds to the OStream the drawing of the curve aCurve with 0066 //! respect to the maximal chordial deviation aDeflection. 0067 //! The aspect is the current aspect 0068 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0069 Adaptor3d_Curve& aCurve, 0070 const double aDeflection, 0071 const double aLimit); 0072 0073 //! adds to the OStream the drawing of the curve aCurve with 0074 //! respect to the maximal chordial deviation aDeflection. 0075 //! The aspect is the current aspect 0076 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0077 Adaptor3d_Curve& aCurve, 0078 const double aDeflection, 0079 const occ::handle<VrmlConverter_Drawer>& aDrawer); 0080 0081 //! adds to the OStream the drawing of the curve aCurve with 0082 //! respect to the maximal chordial deviation aDeflection. 0083 //! The aspect is the current aspect 0084 //! The drawing will be limited between the points of parameter 0085 //! U1 and U2. 0086 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0087 Adaptor3d_Curve& aCurve, 0088 const double U1, 0089 const double U2, 0090 const double aDeflection); 0091 0092 //! adds to the OStream the drawing of the curve aCurve with 0093 //! the array of parameters to retrieve points on curve. 0094 Standard_EXPORT static void Add(Standard_OStream& anOStream, 0095 const Adaptor3d_Curve& aCurve, 0096 const occ::handle<NCollection_HArray1<double>>& aParams, 0097 const int aNbNodes, 0098 const occ::handle<VrmlConverter_Drawer>& aDrawer); 0099 }; 0100 0101 #endif // _VrmlConverter_DeflectionCurve_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|