Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-06-23
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1993-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 _TopOpeBRepDS_Interference_HeaderFile
0018 #define _TopOpeBRepDS_Interference_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <TopOpeBRepDS_Transition.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <TopOpeBRepDS_Kind.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <Standard_OStream.hxx>
0028 
0029 
0030 class TopOpeBRepDS_Interference;
0031 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_Interference, Standard_Transient)
0032 
0033 //! An interference    is   the   description  of  the
0034 //! attachment of  a new  geometry on a  geometry. For
0035 //! example an intersection point  on an Edge or on  a
0036 //! Curve.
0037 //!
0038 //! The Interference contains the following data :
0039 //!
0040 //! - Transition :  How the interference  separates the
0041 //! existing geometry in INSIDE and OUTSIDE.
0042 //!
0043 //! - SupportType : Type of  the object supporting the
0044 //! interference. (FACE, EDGE, VERTEX, SURFACE, CURVE).
0045 //!
0046 //! - Support :  Index  in the data  structure  of the
0047 //! object supporting the interference.
0048 //!
0049 //! - GeometryType  :   Type  of the  geometry of  the
0050 //! interference (SURFACE, CURVE, POINT).
0051 //!
0052 //! - Geometry : Index  in the data structure  of the
0053 //! geometry.
0054 class TopOpeBRepDS_Interference : public Standard_Transient
0055 {
0056 
0057 public:
0058 
0059   
0060   Standard_EXPORT TopOpeBRepDS_Interference();
0061   
0062   Standard_EXPORT TopOpeBRepDS_Interference(const TopOpeBRepDS_Transition& Transition, const TopOpeBRepDS_Kind SupportType, const Standard_Integer Support, const TopOpeBRepDS_Kind GeometryType, const Standard_Integer Geometry);
0063   
0064   Standard_EXPORT TopOpeBRepDS_Interference(const Handle(TopOpeBRepDS_Interference)& I);
0065   
0066   Standard_EXPORT const TopOpeBRepDS_Transition& Transition() const;
0067   
0068   Standard_EXPORT TopOpeBRepDS_Transition& ChangeTransition();
0069   
0070   Standard_EXPORT void Transition (const TopOpeBRepDS_Transition& T);
0071   
0072   //! return GeometryType + Geometry + SupportType + Support
0073   Standard_EXPORT void GKGSKS (TopOpeBRepDS_Kind& GK, Standard_Integer& G, TopOpeBRepDS_Kind& SK, Standard_Integer& S) const;
0074   
0075   Standard_EXPORT TopOpeBRepDS_Kind SupportType() const;
0076   
0077   Standard_EXPORT Standard_Integer Support() const;
0078   
0079   Standard_EXPORT TopOpeBRepDS_Kind GeometryType() const;
0080   
0081   Standard_EXPORT Standard_Integer Geometry() const;
0082   
0083   Standard_EXPORT void SetGeometry (const Standard_Integer GI);
0084   
0085   Standard_EXPORT void SupportType (const TopOpeBRepDS_Kind ST);
0086   
0087   Standard_EXPORT void Support (const Standard_Integer S);
0088   
0089   Standard_EXPORT void GeometryType (const TopOpeBRepDS_Kind GT);
0090   
0091   Standard_EXPORT void Geometry (const Standard_Integer G);
0092   
0093   Standard_EXPORT Standard_Boolean HasSameSupport (const Handle(TopOpeBRepDS_Interference)& Other) const;
0094   
0095   Standard_EXPORT Standard_Boolean HasSameGeometry (const Handle(TopOpeBRepDS_Interference)& Other) const;
0096 
0097 
0098 
0099 
0100 
0101   DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_Interference,Standard_Transient)
0102 
0103 protected:
0104 
0105 
0106 
0107 
0108 private:
0109 
0110 
0111   TopOpeBRepDS_Transition myTransition;
0112   Standard_Integer mySupport;
0113   Standard_Integer myGeometry;
0114   TopOpeBRepDS_Kind mySupportType;
0115   TopOpeBRepDS_Kind myGeometryType;
0116 
0117 
0118 };
0119 
0120 
0121 
0122 
0123 
0124 
0125 
0126 #endif // _TopOpeBRepDS_Interference_HeaderFile