|
||||
File indexing completed on 2025-01-18 10:03:54
0001 // Created on: 1994-02-16 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 _IFSelect_SelectControl_HeaderFile 0018 #define _IFSelect_SelectControl_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IFSelect_Selection.hxx> 0024 class IFSelect_SelectionIterator; 0025 0026 0027 class IFSelect_SelectControl; 0028 DEFINE_STANDARD_HANDLE(IFSelect_SelectControl, IFSelect_Selection) 0029 0030 //! A SelectControl kind Selection works with two input Selections 0031 //! in a dissymmetric way : the Main Input which gives an input 0032 //! list of Entities, to be processed, and the Second Input which 0033 //! gives another list, to be used to filter the main input. 0034 //! 0035 //! e.g. : SelectDiff retains the items of the Main Input which 0036 //! are not in the Control Input (which acts as Diff Input) 0037 //! or a specific selection which retains Entities from the Main 0038 //! Input if and only if they are concerned by an entity from 0039 //! the Control Input (such as Views in IGES, etc...) 0040 //! 0041 //! The way RootResult and Label are produced are at charge of 0042 //! each sub-class 0043 class IFSelect_SelectControl : public IFSelect_Selection 0044 { 0045 0046 public: 0047 0048 0049 //! Returns the Main Input Selection 0050 Standard_EXPORT Handle(IFSelect_Selection) MainInput() const; 0051 0052 //! Returns True if a Control Input is defined 0053 //! Thus, Result can be computed differently if there is a 0054 //! Control Input or if there is none 0055 Standard_EXPORT Standard_Boolean HasSecondInput() const; 0056 0057 //! Returns the Control Input Selection, or a Null Handle 0058 Standard_EXPORT Handle(IFSelect_Selection) SecondInput() const; 0059 0060 //! Sets a Selection to be the Main Input 0061 Standard_EXPORT void SetMainInput (const Handle(IFSelect_Selection)& sel); 0062 0063 //! Sets a Selection to be the Control Input 0064 Standard_EXPORT void SetSecondInput (const Handle(IFSelect_Selection)& sel); 0065 0066 //! Puts in an Iterator the Selections from which "me" depends 0067 //! That is to say, the list of Input Selections 0068 Standard_EXPORT void FillIterator (IFSelect_SelectionIterator& iter) const Standard_OVERRIDE; 0069 0070 0071 0072 0073 DEFINE_STANDARD_RTTIEXT(IFSelect_SelectControl,IFSelect_Selection) 0074 0075 protected: 0076 0077 0078 0079 0080 private: 0081 0082 0083 Handle(IFSelect_Selection) themain; 0084 Handle(IFSelect_Selection) thesecond; 0085 0086 0087 }; 0088 0089 0090 0091 0092 0093 0094 0095 #endif // _IFSelect_SelectControl_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |