Back to home page

EIC code displayed by LXR

 
 

    


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

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 <Prs3d_NListOfSequenceOfPnt.hxx>
0021 
0022 // Computes the wireframe presentation of faces with
0023 // restrictions by displaying a given number of U and/or
0024 // V isoparametric curves. The isoparametric curves are
0025 // drawn with a fixed number of points.
0026 // The presentation includes the restriction curves.
0027 
0028 class StdPrs_WFRestrictedFace : public Prs3d_Root
0029 {
0030 public:
0031   DEFINE_STANDARD_ALLOC
0032 
0033   Standard_EXPORT static void Add
0034                 (const Handle (Prs3d_Presentation)&  thePresentation,
0035                  const Handle(BRepAdaptor_Surface)& theFace,
0036                  const Standard_Boolean              theDrawUIso,
0037                  const Standard_Boolean              theDrawVIso,
0038                  const Standard_Integer              theNbUIso,
0039                  const Standard_Integer              theNbVIso,
0040                  const Handle(Prs3d_Drawer)&         theDrawer,
0041                  Prs3d_NListOfSequenceOfPnt&         theCurves);
0042 
0043   Standard_EXPORT static void Add
0044                  (const Handle (Prs3d_Presentation)&  thePresentation,
0045                   const Handle(BRepAdaptor_Surface)& theFace,
0046                   const Handle (Prs3d_Drawer)&        theDrawer);
0047 
0048   Standard_EXPORT static Standard_Boolean Match
0049                   (const Standard_Real               theX,
0050                    const Standard_Real               theY,
0051                    const Standard_Real               theZ,
0052                    const Standard_Real               theDistance,
0053                    const Handle(BRepAdaptor_Surface)& theFace,
0054                    const Standard_Boolean              theDrawUIso,
0055                    const Standard_Boolean              theDrawVIso,
0056                    const Standard_Real               theDeflection,
0057                    const Standard_Integer              theNbUIso,
0058                    const Standard_Integer              theNbVIso,
0059                    const Handle(Prs3d_Drawer)&         theDrawer);
0060 
0061   Standard_EXPORT static Standard_Boolean Match
0062                    (const Standard_Real               theX,
0063                     const Standard_Real               theY,
0064                     const Standard_Real               theZ,
0065                     const Standard_Real               theDistance,
0066                     const Handle(BRepAdaptor_Surface)& theFace,
0067                     const Handle (Prs3d_Drawer)&        theDrawer);
0068 
0069   Standard_EXPORT static Standard_Boolean MatchUIso
0070                    (const Standard_Real               theX,
0071                     const Standard_Real               theY,
0072                     const Standard_Real               theZ,
0073                     const Standard_Real               theDistance,
0074                     const Handle(BRepAdaptor_Surface)& theFace,
0075                     const Handle (Prs3d_Drawer)&        theDrawer);
0076 
0077   Standard_EXPORT static Standard_Boolean MatchVIso
0078                    (const Standard_Real               theX,
0079                     const Standard_Real               theY,
0080                     const Standard_Real               theZ,
0081                     const Standard_Real               theDistance,
0082                     const Handle(BRepAdaptor_Surface)& theFace,
0083                     const Handle (Prs3d_Drawer)&        theDrawer);
0084   
0085   Standard_EXPORT static void AddUIso
0086                    (const Handle (Prs3d_Presentation)&  thePresentation,
0087                     const Handle(BRepAdaptor_Surface)& theFace,
0088                     const Handle (Prs3d_Drawer)&        theDrawer);
0089 
0090   Standard_EXPORT static void AddVIso
0091                    (const Handle (Prs3d_Presentation)&  thePresentation,
0092                     const Handle(BRepAdaptor_Surface)& theFace,
0093                     const Handle (Prs3d_Drawer)&        theDrawer);
0094 
0095 };
0096 
0097 #endif