Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:11

0001 // Created on: 2002-04-18
0002 // Created by: Michael KLOKOV
0003 // Copyright (c) 2002-2014 OPEN CASCADE SAS
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 _IntTools_TopolTool_HeaderFile
0017 #define _IntTools_TopolTool_HeaderFile
0018 
0019 #include <Adaptor3d_TopolTool.hxx>
0020 #include <Adaptor3d_Surface.hxx>
0021 
0022 class gp_Pnt2d;
0023 class gp_Pnt;
0024 
0025 
0026 class IntTools_TopolTool;
0027 DEFINE_STANDARD_HANDLE(IntTools_TopolTool, Adaptor3d_TopolTool)
0028 
0029 //! Class redefine methods of TopolTool from Adaptor3d
0030 //! concerning sample points
0031 class IntTools_TopolTool : public Adaptor3d_TopolTool
0032 {
0033 
0034 public:
0035 
0036   
0037 
0038   //! Empty constructor
0039   Standard_EXPORT IntTools_TopolTool();
0040   
0041 
0042   //! Initializes me by surface
0043   Standard_EXPORT IntTools_TopolTool(const Handle(Adaptor3d_Surface)& theSurface);
0044   
0045 
0046   //! Redefined empty initializer
0047   //!
0048   //! Warning:
0049   //! Raises the exception NotImplemented
0050   Standard_EXPORT virtual void Initialize() Standard_OVERRIDE;
0051   
0052 
0053   //! Initializes me by surface
0054   Standard_EXPORT virtual void Initialize (const Handle(Adaptor3d_Surface)& theSurface) Standard_OVERRIDE;
0055   
0056   Standard_EXPORT virtual void ComputeSamplePoints() Standard_OVERRIDE;
0057   
0058 
0059   //! Computes the sample-points for the intersections algorithms
0060   Standard_EXPORT virtual Standard_Integer NbSamplesU() Standard_OVERRIDE;
0061   
0062 
0063   //! Computes the sample-points for the intersections algorithms
0064   Standard_EXPORT virtual Standard_Integer NbSamplesV() Standard_OVERRIDE;
0065   
0066 
0067   //! Computes the sample-points for the intersections algorithms
0068   Standard_EXPORT virtual Standard_Integer NbSamples() Standard_OVERRIDE;
0069   
0070 
0071   //! Returns a 2d point from surface myS
0072   //! and a corresponded 3d point
0073   //! for given index.
0074   //! The index should be from 1 to NbSamples()
0075   Standard_EXPORT virtual void SamplePoint (const Standard_Integer Index, gp_Pnt2d& P2d, gp_Pnt& P3d) Standard_OVERRIDE;
0076   
0077   //! compute the sample-points for the intersections algorithms
0078   //! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
0079   //! is the same as in method ComputeSamplePoints(), but only fill arrays of U
0080   //! and V sample parameters;
0081   //! theDefl is a required deflection
0082   //! theNUmin, theNVmin are minimal nb points for U and V.
0083   Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE;
0084 
0085 
0086 
0087 
0088   DEFINE_STANDARD_RTTIEXT(IntTools_TopolTool,Adaptor3d_TopolTool)
0089 
0090 protected:
0091 
0092 
0093 
0094 
0095 private:
0096 
0097 
0098   Standard_Integer myNbSmplU;
0099   Standard_Integer myNbSmplV;
0100   Standard_Real myU0;
0101   Standard_Real myV0;
0102   Standard_Real myDU;
0103   Standard_Real myDV;
0104 
0105 
0106 };
0107 
0108 
0109 
0110 
0111 
0112 
0113 
0114 #endif // _IntTools_TopolTool_HeaderFile