|
||||
File indexing completed on 2025-01-18 10:04:03
0001 // Created on: 1994-05-31 0002 // Created by: Christian CAILLET 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 _IGESSelect_SelectLevelNumber_HeaderFile 0018 #define _IGESSelect_SelectLevelNumber_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IFSelect_SelectExtract.hxx> 0024 #include <Standard_Integer.hxx> 0025 class IFSelect_IntParam; 0026 class Standard_Transient; 0027 class Interface_InterfaceModel; 0028 class TCollection_AsciiString; 0029 0030 0031 class IGESSelect_SelectLevelNumber; 0032 DEFINE_STANDARD_HANDLE(IGESSelect_SelectLevelNumber, IFSelect_SelectExtract) 0033 0034 //! This selection looks at Level Number of IGES Entities : 0035 //! it considers items attached, either to a single level with a 0036 //! given value, or to a level list which contains this value 0037 //! 0038 //! Level = 0 means entities not attached to any level 0039 //! 0040 //! Remark : the class CounterOfLevelNumber gives information 0041 //! about present levels in a file. 0042 class IGESSelect_SelectLevelNumber : public IFSelect_SelectExtract 0043 { 0044 0045 public: 0046 0047 0048 //! Creates a SelectLevelNumber, with no Level criterium : see 0049 //! SetLevelNumber. Empty, this selection filters nothing. 0050 Standard_EXPORT IGESSelect_SelectLevelNumber(); 0051 0052 //! Sets a Parameter as Level criterium 0053 Standard_EXPORT void SetLevelNumber (const Handle(IFSelect_IntParam)& levnum); 0054 0055 //! Returns the Level criterium. NullHandle if not yet set 0056 //! (interpreted as Level = 0 : no level number attached) 0057 Standard_EXPORT Handle(IFSelect_IntParam) LevelNumber() const; 0058 0059 //! Returns True if <ent> is an IGES Entity with Level Number 0060 //! admits the criterium (= value if single level, or one of the 0061 //! attached level numbers = value if level list) 0062 Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; 0063 0064 //! Returns the Selection criterium : 0065 //! "IGES Entity, Level Number admits <nn>" (if nn > 0) or 0066 //! "IGES Entity attached to no Level" (if nn = 0) 0067 Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; 0068 0069 0070 0071 0072 DEFINE_STANDARD_RTTIEXT(IGESSelect_SelectLevelNumber,IFSelect_SelectExtract) 0073 0074 protected: 0075 0076 0077 0078 0079 private: 0080 0081 0082 Handle(IFSelect_IntParam) thelevnum; 0083 0084 0085 }; 0086 0087 0088 0089 0090 0091 0092 0093 #endif // _IGESSelect_SelectLevelNumber_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |