|
|
|||
File indexing completed on 2026-07-16 08:29:25
0001 // Created on: 1992-11-17 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1992-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_SelectCombine_HeaderFile 0018 #define _IFSelect_SelectCombine_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <IFSelect_TSeqOfSelection.hxx> 0024 #include <IFSelect_Selection.hxx> 0025 #include <Standard_Integer.hxx> 0026 class IFSelect_SelectionIterator; 0027 0028 class IFSelect_SelectCombine; 0029 DEFINE_STANDARD_HANDLE(IFSelect_SelectCombine, IFSelect_Selection) 0030 0031 //! A SelectCombine type Selection defines algebraic operations 0032 //! between results of several Selections 0033 //! It is a deferred class : sub-classes will have to define 0034 //! precise what operator is to be applied 0035 class IFSelect_SelectCombine : public IFSelect_Selection 0036 { 0037 0038 public: 0039 //! Returns the count of Input Selections 0040 Standard_EXPORT Standard_Integer NbInputs() const; 0041 0042 //! Returns an Input Selection, given its rank in the list 0043 Standard_EXPORT Handle(IFSelect_Selection) Input(const Standard_Integer num) const; 0044 0045 //! Returns the rank of an input Selection, 0 if not in the list. 0046 //! Most generally, its value is meaningless, except for testing 0047 //! the presence of an input Selection : 0048 //! - == 0 if <sel> is not an input for <me> 0049 //! - > 0 if <sel> is an input for <me> 0050 Standard_EXPORT Standard_Integer InputRank(const Handle(IFSelect_Selection)& sel) const; 0051 0052 //! Adds a Selection to the filling list 0053 //! By default, adds it to the end of the list 0054 //! A Positive rank less then NbInputs gives an insertion rank 0055 //! (InsertBefore : the new <atnum>th item of the list is <sel>) 0056 Standard_EXPORT void Add(const Handle(IFSelect_Selection)& sel, const Standard_Integer atnum = 0); 0057 0058 //! Removes an input Selection. 0059 //! Returns True if Done, False, if <sel> is not an input for <me> 0060 Standard_EXPORT Standard_Boolean Remove(const Handle(IFSelect_Selection)& sel); 0061 0062 //! Removes an input Selection, given its rank in the list 0063 //! Returns True if Done, False if <num> is out of range 0064 Standard_EXPORT Standard_Boolean Remove(const Standard_Integer num); 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 DEFINE_STANDARD_RTTIEXT(IFSelect_SelectCombine, IFSelect_Selection) 0071 0072 protected: 0073 //! Defines an empty SelectCombine 0074 Standard_EXPORT IFSelect_SelectCombine(); 0075 0076 //! Returns always True, because RootResult gives a Unique list 0077 Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE; 0078 0079 private: 0080 IFSelect_TSeqOfSelection thelist; 0081 }; 0082 0083 #endif // _IFSelect_SelectCombine_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|