|
||||
File indexing completed on 2025-01-18 10:05:36
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 0032 class XSControl_SelectForTransfer; 0033 DEFINE_STANDARD_HANDLE(XSControl_SelectForTransfer, IFSelect_SelectExtract) 0034 0035 //! This selection selects the entities which are recognised for 0036 //! transfer by an Actor for Read : current one or another one. 0037 //! 0038 //! An Actor is an operator which runs transfers from interface 0039 //! entities to objects for Imagine. It has a method to recognize 0040 //! the entities it can process (by default, it recognises all, 0041 //! this method can be redefined). 0042 //! 0043 //! A TransferReader brings an Actor, according to the currently 0044 //! selected norm and transfer conditions. 0045 //! 0046 //! This selection considers, either the current Actor (brought by 0047 //! the TransferReader, updated as required), or a precise one. 0048 class XSControl_SelectForTransfer : public IFSelect_SelectExtract 0049 { 0050 0051 public: 0052 0053 0054 //! Creates a SelectForTransfer, non initialised 0055 //! it sorts nothing, unless an Actor has been defined 0056 Standard_EXPORT XSControl_SelectForTransfer(); 0057 0058 //! Creates a SelectForTransfer, which will work with the 0059 //! currently defined Actor brought by the TransferReader 0060 Standard_EXPORT XSControl_SelectForTransfer(const Handle(XSControl_TransferReader)& TR); 0061 0062 //! Sets a TransferReader to sort entities : it brings the Actor, 0063 //! which may change, while the TransferReader does not 0064 Standard_EXPORT void SetReader (const Handle(XSControl_TransferReader)& TR); 0065 0066 //! Sets a precise actor to sort entities 0067 //! This definition oversedes the creation with a TransferReader 0068 Standard_EXPORT void SetActor (const Handle(Transfer_ActorOfTransientProcess)& act); 0069 0070 //! Returns the Actor used as precised one. 0071 //! Returns a Null Handle for a creation from a TransferReader 0072 //! without any further setting 0073 Standard_EXPORT Handle(Transfer_ActorOfTransientProcess) Actor() const; 0074 0075 //! Returns the Reader (if created with a Reader) 0076 //! Returns a Null Handle if not created with a Reader 0077 Standard_EXPORT Handle(XSControl_TransferReader) Reader() const; 0078 0079 //! Returns True for an Entity which is recognized by the Actor, 0080 //! either the precised one, or the one defined by TransferReader 0081 Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; 0082 0083 //! Returns a text defining the criterium : "Recognized for Transfer [(current actor)]" 0084 Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE; 0085 0086 0087 0088 0089 DEFINE_STANDARD_RTTIEXT(XSControl_SelectForTransfer,IFSelect_SelectExtract) 0090 0091 protected: 0092 0093 0094 0095 0096 private: 0097 0098 0099 Handle(XSControl_TransferReader) theTR; 0100 Handle(Transfer_ActorOfTransientProcess) theAC; 0101 0102 0103 }; 0104 0105 0106 0107 0108 0109 0110 0111 #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 |