File: IFSelect_SelectCombine.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (93 lines) | stat: -rw-r--r-- 2,926 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IFSelect_SelectCombine_HeaderFile
#define _IFSelect_SelectCombine_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IFSelect_SelectCombine.hxx>

#include <IFSelect_TSeqOfSelection.hxx>
#include <IFSelect_Selection.hxx>
#include <Standard_Integer.hxx>
#include <Handle_IFSelect_Selection.hxx>
#include <Standard_Boolean.hxx>
class IFSelect_Selection;
class IFSelect_SelectionIterator;


//! A SelectCombine type Selection defines algebraic operations
//! between results of several Selections
//! It is a deferred class : sub-classes will have to define
//! precise what operator is to be applied
class IFSelect_SelectCombine : public IFSelect_Selection
{

public:

  
  //! Returns the count of Input Selections
  Standard_EXPORT   Standard_Integer NbInputs()  const;
  
  //! Returns an Input Selection, given its rank in the list
  Standard_EXPORT   Handle(IFSelect_Selection) Input (const Standard_Integer num)  const;
  
  //! Returns the rank of an input Selection, 0 if not in the list.
  //! Most generally, its value is meaningless, except for testing
  //! the presence of an input Selection :
  //! - == 0  if <sel> is not an input for <me>
  //! - >  0  if <sel> is an input for <me>
  Standard_EXPORT   Standard_Integer InputRank (const Handle(IFSelect_Selection)& sel)  const;
  
  //! Adds a Selection to the filling list
  //! By default, adds it to the end of the list
  //! A Positive rank less then NbInputs gives an insertion rank
  //! (InsertBefore : the new <atnum>th item of the list is <sel>)
  Standard_EXPORT   void Add (const Handle(IFSelect_Selection)& sel, const Standard_Integer atnum = 0) ;
  
  //! Removes an input Selection.
  //! Returns True if Done, False, if <sel> is not an input for <me>
  Standard_EXPORT   Standard_Boolean Remove (const Handle(IFSelect_Selection)& sel) ;
  
  //! Removes an input Selection, given its rank in the list
  //! Returns True if Done, False if <num> is out of range
  Standard_EXPORT   Standard_Boolean Remove (const Standard_Integer num) ;
  
  //! Puts in an Iterator the Selections from which "me" depends
  //! That is to say, the list of Input Selections
  Standard_EXPORT   void FillIterator (IFSelect_SelectionIterator& iter)  const;




  DEFINE_STANDARD_RTTI(IFSelect_SelectCombine)

protected:

  
  //! Defines an empty SelectCombine
  Standard_EXPORT IFSelect_SelectCombine();
  
  //! Returns always True, because RootResult gives a Unique list
  Standard_EXPORT virtual   Standard_Boolean HasUniqueResult()  const;



private: 


  IFSelect_TSeqOfSelection thelist;


};







#endif // _IFSelect_SelectCombine_HeaderFile