Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1994-04-18
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1994-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 _BRepClass3d_SolidPassiveClassifier_HeaderFile
0018 #define _BRepClass3d_SolidPassiveClassifier_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <TopoDS_Face.hxx>
0026 #include <gp_Lin.hxx>
0027 #include <TopAbs_State.hxx>
0028 #include <BRepClass3d_Intersector3d.hxx>
0029 #include <TopAbs_Orientation.hxx>
0030 class Standard_DomainError;
0031 class BRepClass3d_Intersector3d;
0032 class gp_Lin;
0033 class TopoDS_Face;
0034 
0035 
0036 
0037 class BRepClass3d_SolidPassiveClassifier 
0038 {
0039 public:
0040 
0041   DEFINE_STANDARD_ALLOC
0042 
0043   
0044   //! Creates an undefined classifier.
0045   Standard_EXPORT BRepClass3d_SolidPassiveClassifier();
0046   
0047   //! Starts  a  classification process.   The  point to
0048   //! classify is the origin of  the  line <L>.  <P>  is
0049   //! the original length of the segment on <L>  used to
0050   //! compute  intersections.   <Tol> is the   tolerance
0051   //! attached to the intersections.
0052   Standard_EXPORT void Reset (const gp_Lin& L, const Standard_Real P, const Standard_Real Tol);
0053   
0054   //! Updates  the classification process with  the face
0055   //! <F> from the boundary.
0056   Standard_EXPORT void Compare (const TopoDS_Face& F, const TopAbs_Orientation Or);
0057   
0058   //! Returns the current value of the parameter.
0059     Standard_Real Parameter() const;
0060   
0061   //! Returns True if an intersection is computed.
0062   Standard_Boolean HasIntersection() const;
0063   
0064   //! Returns the intersecting algorithm.
0065     BRepClass3d_Intersector3d& Intersector();
0066   
0067   //! Returns the current state of the point.
0068     TopAbs_State State() const;
0069 
0070 
0071 
0072 
0073 protected:
0074 
0075 
0076 
0077 
0078 
0079 private:
0080 
0081 
0082 
0083   Standard_Boolean isSet;
0084   TopoDS_Face myFace;
0085   gp_Lin myLin;
0086   Standard_Real myParam;
0087   Standard_Real myTolerance;
0088   TopAbs_State myState;
0089   Standard_Boolean hasIntersect;
0090   BRepClass3d_Intersector3d myIntersector;
0091 
0092 
0093 };
0094 
0095 #define TheIntersector BRepClass3d_Intersector3d
0096 #define TheIntersector_hxx <BRepClass3d_Intersector3d.hxx>
0097 #define TopClass_Classifier3d BRepClass3d_SolidPassiveClassifier
0098 #define TopClass_Classifier3d_hxx <BRepClass3d_SolidPassiveClassifier.hxx>
0099 
0100 #include <TopClass_Classifier3d.lxx>
0101 
0102 #undef TheIntersector
0103 #undef TheIntersector_hxx
0104 #undef TopClass_Classifier3d
0105 #undef TopClass_Classifier3d_hxx
0106 
0107 
0108 
0109 
0110 #endif // _BRepClass3d_SolidPassiveClassifier_HeaderFile