Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:32

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 <TColStd_HArray1OfReal.hxx>
0026 #include <Standard_Integer.hxx>
0027 class Adaptor3d_Curve;
0028 class VrmlConverter_Drawer;
0029 
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 
0044   DEFINE_STANDARD_ALLOC
0045 
0046   
0047   //! adds to the OStream the drawing of the curve aCurve with
0048   //! respect to the maximal chordial deviation defined
0049   //! by the drawer aDrawer.
0050   //! The aspect is defined by LineAspect in aDrawer.
0051   Standard_EXPORT static void Add (Standard_OStream& anOStream, Adaptor3d_Curve& aCurve, const 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, Adaptor3d_Curve& aCurve, const Standard_Real U1, const Standard_Real U2, const Handle(VrmlConverter_Drawer)& aDrawer);
0060   
0061   //! adds to the OStream the drawing of the curve aCurve with
0062   //! respect to the maximal chordial deviation aDeflection.
0063   //! The aspect is the current aspect
0064   Standard_EXPORT static void Add (Standard_OStream& anOStream, Adaptor3d_Curve& aCurve, const Standard_Real aDeflection, const Standard_Real aLimit);
0065   
0066   //! adds to the OStream the drawing of the curve aCurve with
0067   //! respect to the maximal chordial deviation aDeflection.
0068   //! The aspect is the current aspect
0069   Standard_EXPORT static void Add (Standard_OStream& anOStream, Adaptor3d_Curve& aCurve, const Standard_Real aDeflection, const Handle(VrmlConverter_Drawer)& aDrawer);
0070   
0071   //! adds to the OStream the drawing of the curve aCurve with
0072   //! respect to the maximal chordial deviation aDeflection.
0073   //! The aspect is the current aspect
0074   //! The drawing will be limited between the points of parameter
0075   //! U1 and U2.
0076   Standard_EXPORT static void Add (Standard_OStream& anOStream, Adaptor3d_Curve& aCurve, const Standard_Real U1, const Standard_Real U2, const Standard_Real aDeflection);
0077   
0078   //! adds to the OStream the drawing of the curve aCurve with
0079   //! the array of parameters to retrieve points on curve.
0080   Standard_EXPORT static void Add (Standard_OStream& anOStream, const Adaptor3d_Curve& aCurve, const Handle(TColStd_HArray1OfReal)& aParams, const Standard_Integer aNbNodes, const Handle(VrmlConverter_Drawer)& aDrawer);
0081 
0082 
0083 
0084 
0085 protected:
0086 
0087 
0088 
0089 
0090 
0091 private:
0092 
0093 
0094 
0095 
0096 
0097 };
0098 
0099 
0100 
0101 
0102 
0103 
0104 
0105 #endif // _VrmlConverter_DeflectionCurve_HeaderFile