Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/IGESSelect_SelectSubordinate.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: 1996-10-11
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1996-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 _IGESSelect_SelectSubordinate_HeaderFile
0018 #define _IGESSelect_SelectSubordinate_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <IFSelect_SelectExtract.hxx>
0025 class Standard_Transient;
0026 class Interface_InterfaceModel;
0027 class TCollection_AsciiString;
0028 
0029 // resolve name collisions with X11 headers
0030 #ifdef Status
0031   #undef Status
0032 #endif
0033 
0034 //! This selections uses Subordinate Status as sort criterium
0035 //! It is an integer number which can be :
0036 //! 0 Independent
0037 //! 1 Physically Dependent
0038 //! 2 Logically Dependent
0039 //! 3 Both (recorded)
0040 //! + to sort :
0041 //! 4 : 1 or 3  ->  at least Physically
0042 //! 5 : 2 or 3  ->  at least Logically
0043 //! 6 : 1 or 2 or 3 -> any kind of dependence
0044 //! (corresponds to 0 reversed)
0045 class IGESSelect_SelectSubordinate : public IFSelect_SelectExtract
0046 {
0047 
0048 public:
0049   //! Creates a SelectSubordinate with a status to be sorted
0050   Standard_EXPORT IGESSelect_SelectSubordinate(const int status);
0051 
0052   //! Returns the status used for sorting
0053   Standard_EXPORT int Status() const;
0054 
0055   //! Returns True if <ent> is an IGES Entity with Subordinate
0056   //! Status matching the criterium
0057   Standard_EXPORT bool Sort(const int                                    rank,
0058                             const occ::handle<Standard_Transient>&       ent,
0059                             const occ::handle<Interface_InterfaceModel>& model) const override;
0060 
0061   //! Returns the Selection criterium : "IGES Entity, Independent"
0062   //! etc...
0063   Standard_EXPORT TCollection_AsciiString ExtractLabel() const override;
0064 
0065   DEFINE_STANDARD_RTTIEXT(IGESSelect_SelectSubordinate, IFSelect_SelectExtract)
0066 
0067 private:
0068   int thestatus;
0069 };
0070 
0071 #endif // _IGESSelect_SelectSubordinate_HeaderFile