|
||||
File indexing completed on 2025-01-18 10:04:02
0001 // Created on: 1994-08-25 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_ChangeLevelNumber_HeaderFile 0018 #define _IGESSelect_ChangeLevelNumber_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IGESSelect_ModelModifier.hxx> 0024 class IFSelect_IntParam; 0025 class IFSelect_ContextModif; 0026 class IGESData_IGESModel; 0027 class Interface_CopyTool; 0028 class TCollection_AsciiString; 0029 0030 0031 class IGESSelect_ChangeLevelNumber; 0032 DEFINE_STANDARD_HANDLE(IGESSelect_ChangeLevelNumber, IGESSelect_ModelModifier) 0033 0034 //! Changes Level Number (as null or single) to a new single value 0035 //! Entities attached to a LevelListEntity are ignored 0036 //! Entities considered can be, either all Entities but those 0037 //! attached to a LevelListEntity, or Entities attached to a 0038 //! specific Level Number (0 for not defined). 0039 //! 0040 //! Remark : this concerns the Directory Part only. The Level List 0041 //! Entities themselves (their content) are not affected. 0042 class IGESSelect_ChangeLevelNumber : public IGESSelect_ModelModifier 0043 { 0044 0045 public: 0046 0047 0048 //! Creates a ChangeLevelNumber, not yet defined 0049 //! (see SetOldNumber and SetNewNumber) 0050 Standard_EXPORT IGESSelect_ChangeLevelNumber(); 0051 0052 //! Returns True if OldNumber is defined : then, only entities 0053 //! attached to the value of OldNumber will be considered. Else, 0054 //! all entities but those attached to a Level List will be. 0055 Standard_EXPORT Standard_Boolean HasOldNumber() const; 0056 0057 //! Returns the parameter for OldNumber. If not defined (Null 0058 //! Handle), it will be interpreted as "all level numbers" 0059 Standard_EXPORT Handle(IFSelect_IntParam) OldNumber() const; 0060 0061 //! Sets a parameter for OldNumber 0062 Standard_EXPORT void SetOldNumber (const Handle(IFSelect_IntParam)& param); 0063 0064 //! Returns the parameter for NewNumber. If not defined (Null 0065 //! Handle), it will be interpreted as "new value 0" 0066 Standard_EXPORT Handle(IFSelect_IntParam) NewNumber() const; 0067 0068 //! Sets a parameter for NewNumber 0069 Standard_EXPORT void SetNewNumber (const Handle(IFSelect_IntParam)& param); 0070 0071 //! Specific action : considers selected target entities : 0072 //! If OldNumber is not defined, all entities but those attached 0073 //! to a Level List 0074 //! If OldNumber is defined (value not negative), entities with a 0075 //! defined Level Number (can be zero) 0076 //! Attaches all these entities to value given by NewNumber, or 0077 //! zero if not defined 0078 Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE; 0079 0080 //! Returns a text which is 0081 //! "Changes Level Number <old> to <new>" , or 0082 //! "Changes all Levels Numbers positive and zero to <new>" 0083 Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE; 0084 0085 0086 0087 0088 DEFINE_STANDARD_RTTIEXT(IGESSelect_ChangeLevelNumber,IGESSelect_ModelModifier) 0089 0090 protected: 0091 0092 0093 0094 0095 private: 0096 0097 0098 Handle(IFSelect_IntParam) theold; 0099 Handle(IFSelect_IntParam) thenew; 0100 0101 0102 }; 0103 0104 0105 0106 0107 0108 0109 0110 #endif // _IGESSelect_ChangeLevelNumber_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |