Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/TopOpeBRepDS_Interference.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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