summaryrefslogtreecommitdiff
path: root/inc/IFSelect_Selection.hxx
blob: d67f5c72d3b55856132f68dd27fe4effaf143c00 (plain)
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
94
95
// 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_Selection_HeaderFile
#define _IFSelect_Selection_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IFSelect_Selection_HeaderFile
#include <Handle_IFSelect_Selection.hxx>
#endif

#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Interface_InterfaceError;
class Interface_EntityIterator;
class Interface_Graph;
class IFSelect_SelectionIterator;
class TCollection_AsciiString;


//! A Selection allows to define a set of Interface Entities. <br>
//!           Entities to be put on an output file should be identified in <br>
//!           a way as independant from such or such execution as possible. <br>
//!           This permits to handle comprehensive criteria, and to replay <br>
//!           them when a new variant of an input file has to be processed. <br>
//! <br>
//!           Its input can be, either an Interface Model (the very source), <br>
//!           or another-other Selection(s) or any other ouput. All list <br>
//!           computations start from an input Graph (from IFGraph) <br>
class IFSelect_Selection : public MMgt_TShared {

public:

  //! Returns the list of selected entities, computed from Input <br>
//!           given as a Graph. Specific to each class of Selection <br>
//!           Note that uniqueness of each entity is not required here <br>
//!           This method can raise an exception as necessary <br>
  Standard_EXPORT   virtual  Interface_EntityIterator RootResult(const Interface_Graph& G) const = 0;
  //! Returns the list of selected entities, each of them beeing <br>
//!           unique. Default definition works from RootResult. According <br>
//!           HasUniqueResult, UniqueResult returns directly RootResult, <br>
//!           or build a Unique Result from it with a Graph. <br>
  Standard_EXPORT     Interface_EntityIterator UniqueResult(const Interface_Graph& G) const;
  //! Returns the list of entities involved by a Selection, i.e. <br>
//!           UniqueResult plus the shared entities (directly or not) <br>
  Standard_EXPORT   virtual  Interface_EntityIterator CompleteResult(const Interface_Graph& G) const;
  //! Puts in an Iterator the Selections from which "me" depends <br>
//!           (there can be zero, or one, or a list). <br>
//!           Specific to each class of Selection <br>
  Standard_EXPORT   virtual  void FillIterator(IFSelect_SelectionIterator& iter) const = 0;
  //! Returns a text which defines the criterium applied by a <br>
//!           Selection (can be used to be printed, displayed ...) <br>
//!           Specific to each class <br>
  Standard_EXPORT   virtual  TCollection_AsciiString Label() const = 0;




  DEFINE_STANDARD_RTTI(IFSelect_Selection)

protected:

  //! Returns True if RootResult guarantees uniqueness for each <br>
//!           Entity. Called by UniqueResult. <br>
//!           Default answer is False. Can be redefined. <br>
  Standard_EXPORT   virtual  Standard_Boolean HasUniqueResult() const;



private: 




};





// other Inline functions and methods (like "C++: function call" methods)


#endif