|
|
|||
File indexing completed on 2026-10-05 09:22:35
0001 // Created on: 1996-03-15 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 _IFSelect_ModifReorder_HeaderFile 0018 #define _IFSelect_ModifReorder_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IFSelect_Modifier.hxx> 0024 class IFSelect_ContextModif; 0025 class Interface_InterfaceModel; 0026 class Interface_Protocol; 0027 class Interface_CopyTool; 0028 class TCollection_AsciiString; 0029 0030 //! This modifier reorders a whole model from its roots, i.e. 0031 //! according to <rootlast> status, it considers each of its 0032 //! roots, then it orders all its shared entities at any level, 0033 //! the result begins by the lower level entities ... ends by 0034 //! the roots. 0035 class IFSelect_ModifReorder : public IFSelect_Modifier 0036 { 0037 0038 public: 0039 //! Creates a ModifReorder. It may change the graph (it does !) 0040 //! If <rootlast> is True (D), roots are set at the end of packets 0041 //! Else, they are set at beginning (as done by AddWithRefs) 0042 Standard_EXPORT IFSelect_ModifReorder(const bool rootlast = true); 0043 0044 //! Acts by computing orders (by method All from ShareTool) then 0045 //! forcing them in the model. Remark that selection is ignored : 0046 //! ALL the model is processed in once 0047 Standard_EXPORT void Perform(IFSelect_ContextModif& ctx, 0048 const occ::handle<Interface_InterfaceModel>& target, 0049 const occ::handle<Interface_Protocol>& protocol, 0050 Interface_CopyTool& TC) const override; 0051 0052 //! Returns Label as "Reorder, Roots (last or first)" 0053 Standard_EXPORT TCollection_AsciiString Label() const override; 0054 0055 DEFINE_STANDARD_RTTIEXT(IFSelect_ModifReorder, IFSelect_Modifier) 0056 0057 private: 0058 bool thertl; 0059 }; 0060 0061 #endif // _IFSelect_ModifReorder_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|