|
|
|||
File indexing completed on 2026-11-27 10:40:12
0001 // Created on: 1996-03-26 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 _XSControl_SelectForTransfer_HeaderFile 0018 #define _XSControl_SelectForTransfer_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IFSelect_SelectExtract.hxx> 0024 #include <Standard_Integer.hxx> 0025 class XSControl_TransferReader; 0026 class Transfer_ActorOfTransientProcess; 0027 class Standard_Transient; 0028 class Interface_InterfaceModel; 0029 class TCollection_AsciiString; 0030 0031 //! This selection selects the entities which are recognised for 0032 //! transfer by an Actor for Read : current one or another one. 0033 //! 0034 //! An Actor is an operator which runs transfers from interface 0035 //! entities to objects for Imagine. It has a method to recognize 0036 //! the entities it can process (by default, it recognises all, 0037 //! this method can be redefined). 0038 //! 0039 //! A TransferReader brings an Actor, according to the currently 0040 //! selected norm and transfer conditions. 0041 //! 0042 //! This selection considers, either the current Actor (brought by 0043 //! the TransferReader, updated as required), or a precise one. 0044 class XSControl_SelectForTransfer : public IFSelect_SelectExtract 0045 { 0046 0047 public: 0048 //! Creates a SelectForTransfer, non initialised 0049 //! it sorts nothing, unless an Actor has been defined 0050 Standard_EXPORT XSControl_SelectForTransfer(); 0051 0052 //! Creates a SelectForTransfer, which will work with the 0053 //! currently defined Actor brought by the TransferReader 0054 Standard_EXPORT XSControl_SelectForTransfer(const occ::handle<XSControl_TransferReader>& TR); 0055 0056 //! Sets a TransferReader to sort entities : it brings the Actor, 0057 //! which may change, while the TransferReader does not 0058 Standard_EXPORT void SetReader(const occ::handle<XSControl_TransferReader>& TR); 0059 0060 //! Sets a precise actor to sort entities 0061 //! This definition oversedes the creation with a TransferReader 0062 Standard_EXPORT void SetActor(const occ::handle<Transfer_ActorOfTransientProcess>& act); 0063 0064 //! Returns the Actor used as precised one. 0065 //! Returns a Null Handle for a creation from a TransferReader 0066 //! without any further setting 0067 Standard_EXPORT occ::handle<Transfer_ActorOfTransientProcess> Actor() const; 0068 0069 //! Returns the Reader (if created with a Reader) 0070 //! Returns a Null Handle if not created with a Reader 0071 Standard_EXPORT occ::handle<XSControl_TransferReader> Reader() const; 0072 0073 //! Returns True for an Entity which is recognized by the Actor, 0074 //! either the precised one, or the one defined by TransferReader 0075 Standard_EXPORT bool Sort(const int rank, 0076 const occ::handle<Standard_Transient>& ent, 0077 const occ::handle<Interface_InterfaceModel>& model) const override; 0078 0079 //! Returns a text defining the criterium : "Recognized for Transfer [(current actor)]" 0080 Standard_EXPORT TCollection_AsciiString ExtractLabel() const override; 0081 0082 DEFINE_STANDARD_RTTIEXT(XSControl_SelectForTransfer, IFSelect_SelectExtract) 0083 0084 private: 0085 occ::handle<XSControl_TransferReader> theTR; 0086 occ::handle<Transfer_ActorOfTransientProcess> theAC; 0087 }; 0088 0089 #endif // _XSControl_SelectForTransfer_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|