Open CASCADE Technology 6.6.0
|
A SelectDeduct determines a list of Entities from an Input
Selection, by a computation : Output list is not obliged to be
a sub-list of Input list
(for more specific, see SelectExtract for filtered sub-lists,
and SelectExplore for recurcive exploration)
A SelectDeduct may use an alternate input for one shot
This allows to use an already existing definition, by
overloading the input selection by an alternate list,
already defined, for one use :
If this alternate list is set, InputResult queries it instead
of calling the input selection, then clears it immediately
#include <IFSelect_SelectDeduct.hxx>
Public Member Functions | |
void | SetInput (const Handle< IFSelect_Selection > &sel) |
Defines or Changes the Input Selection | |
Handle_IFSelect_Selection | Input () const |
Returns the Input Selection | |
Standard_Boolean | HasInput () const |
Returns True if the Input Selection is defined, False else | |
Standard_Boolean | HasAlternate () const |
Tells if an Alternate List has been set, i.e. : the Alternate Definition is present and set | |
Handle_IFSelect_SelectPointed & | Alternate () |
Returns the Alternate Definition It is returned modifiable, hence an already defined SelectPointed can be used But if it was not yet defined, it is created the first time It is exploited by InputResult | |
Interface_EntityIterator | InputResult (const Interface_Graph &G) const |
Returns the Result determined by Input Selection, as Unique if Input Selection is not defined, returns an empty list. If Alternate is set, InputResult takes its definition instead of calling the Input Selection, then clears it | |
void | FillIterator (IFSelect_SelectionIterator &iter) const |
Puts in an Iterator the Selections from which "me" depends This list contains one Selection : the InputSelection |
Handle_IFSelect_SelectPointed& IFSelect_SelectDeduct::Alternate | ( | ) |
void IFSelect_SelectDeduct::FillIterator | ( | IFSelect_SelectionIterator & | iter | ) | const [virtual] |
Implements IFSelect_Selection.
Standard_Boolean IFSelect_SelectDeduct::HasAlternate | ( | ) | const |
Standard_Boolean IFSelect_SelectDeduct::HasInput | ( | ) | const |
Handle_IFSelect_Selection IFSelect_SelectDeduct::Input | ( | ) | const |
Interface_EntityIterator IFSelect_SelectDeduct::InputResult | ( | const Interface_Graph & | G | ) | const |
void IFSelect_SelectDeduct::SetInput | ( | const Handle< IFSelect_Selection > & | sel | ) |