Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:17:48

0001 // Copyright (c) 2013-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef StdPrs_WFRestrictedFace_HeaderFile
0015 #define StdPrs_WFRestrictedFace_HeaderFile
0016 
0017 #include <BRepAdaptor_Surface.hxx>
0018 #include <Prs3d_Drawer.hxx>
0019 #include <Prs3d_Root.hxx>
0020 #include <gp_Pnt.hxx>
0021 #include <NCollection_Sequence.hxx>
0022 #include <NCollection_HSequence.hxx>
0023 #include <NCollection_List.hxx>
0024 
0025 // Computes the wireframe presentation of faces with
0026 // restrictions by displaying a given number of U and/or
0027 // V isoparametric curves. The isoparametric curves are
0028 // drawn with a fixed number of points.
0029 // The presentation includes the restriction curves.
0030 
0031 class StdPrs_WFRestrictedFace : public Prs3d_Root
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   Standard_EXPORT static void Add(
0037     const occ::handle<Prs3d_Presentation>&                        thePresentation,
0038     const occ::handle<BRepAdaptor_Surface>&                       theFace,
0039     const bool                                                    theDrawUIso,
0040     const bool                                                    theDrawVIso,
0041     const int                                                     theNbUIso,
0042     const int                                                     theNbVIso,
0043     const occ::handle<Prs3d_Drawer>&                              theDrawer,
0044     NCollection_List<occ::handle<NCollection_HSequence<gp_Pnt>>>& theCurves);
0045 
0046   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>&  thePresentation,
0047                                   const occ::handle<BRepAdaptor_Surface>& theFace,
0048                                   const occ::handle<Prs3d_Drawer>&        theDrawer);
0049 
0050   Standard_EXPORT static bool Match(const double                            theX,
0051                                     const double                            theY,
0052                                     const double                            theZ,
0053                                     const double                            theDistance,
0054                                     const occ::handle<BRepAdaptor_Surface>& theFace,
0055                                     const bool                              theDrawUIso,
0056                                     const bool                              theDrawVIso,
0057                                     const double                            theDeflection,
0058                                     const int                               theNbUIso,
0059                                     const int                               theNbVIso,
0060                                     const occ::handle<Prs3d_Drawer>&        theDrawer);
0061 
0062   Standard_EXPORT static bool Match(const double                            theX,
0063                                     const double                            theY,
0064                                     const double                            theZ,
0065                                     const double                            theDistance,
0066                                     const occ::handle<BRepAdaptor_Surface>& theFace,
0067                                     const occ::handle<Prs3d_Drawer>&        theDrawer);
0068 
0069   Standard_EXPORT static bool MatchUIso(const double                            theX,
0070                                         const double                            theY,
0071                                         const double                            theZ,
0072                                         const double                            theDistance,
0073                                         const occ::handle<BRepAdaptor_Surface>& theFace,
0074                                         const occ::handle<Prs3d_Drawer>&        theDrawer);
0075 
0076   Standard_EXPORT static bool MatchVIso(const double                            theX,
0077                                         const double                            theY,
0078                                         const double                            theZ,
0079                                         const double                            theDistance,
0080                                         const occ::handle<BRepAdaptor_Surface>& theFace,
0081                                         const occ::handle<Prs3d_Drawer>&        theDrawer);
0082 
0083   Standard_EXPORT static void AddUIso(const occ::handle<Prs3d_Presentation>&  thePresentation,
0084                                       const occ::handle<BRepAdaptor_Surface>& theFace,
0085                                       const occ::handle<Prs3d_Drawer>&        theDrawer);
0086 
0087   Standard_EXPORT static void AddVIso(const occ::handle<Prs3d_Presentation>&  thePresentation,
0088                                       const occ::handle<BRepAdaptor_Surface>& theFace,
0089                                       const occ::handle<Prs3d_Drawer>&        theDrawer);
0090 };
0091 
0092 #endif