Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:03

0001 // Created on: 1999-02-26
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 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_SetLabel_HeaderFile
0018 #define _IGESSelect_SetLabel_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <IGESSelect_ModelModifier.hxx>
0025 class IFSelect_ContextModif;
0026 class IGESData_IGESModel;
0027 class Interface_CopyTool;
0028 class TCollection_AsciiString;
0029 
0030 
0031 class IGESSelect_SetLabel;
0032 DEFINE_STANDARD_HANDLE(IGESSelect_SetLabel, IGESSelect_ModelModifier)
0033 
0034 //! Sets/Clears Short Label of Entities, those designated by the
0035 //! Selection. No Selection means all the file
0036 //!
0037 //! May enforce, else it sets only if no label is yet set
0038 //! Mode : 0 to clear (always enforced)
0039 //! 1 to set label to DE number (changes it if already set)
0040 class IGESSelect_SetLabel : public IGESSelect_ModelModifier
0041 {
0042 
0043 public:
0044 
0045   
0046   //! Creates a SetLabel for IGESEntity
0047   //! Mode : see Purpose of the class
0048   Standard_EXPORT IGESSelect_SetLabel(const Standard_Integer mode, const Standard_Boolean enforce);
0049   
0050   //! Specific action : Sets or Clears the Label
0051   Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE;
0052   
0053   //! Returns a text which is
0054   //! "Clear Short Label"  or  "Set Label to DE"
0055   //! With possible additional information " (enforced)"
0056   Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
0057 
0058 
0059 
0060 
0061   DEFINE_STANDARD_RTTIEXT(IGESSelect_SetLabel,IGESSelect_ModelModifier)
0062 
0063 protected:
0064 
0065 
0066 
0067 
0068 private:
0069 
0070 
0071   Standard_Integer themode;
0072   Standard_Boolean theforce;
0073 
0074 
0075 };
0076 
0077 
0078 
0079 
0080 
0081 
0082 
0083 #endif // _IGESSelect_SetLabel_HeaderFile