Open CASCADE Technology
6.5.4
|
A SelectSuite can describe a suite of SelectDeduct as a unique
one : in other words, it can be seen as a "macro selection"
It works by applying each of its items (which is a
SelectDeduct) on the result computed by the previous one
(by using Alternate Input)
But each of these Selections used as items may be used
independently, it will then give its own result
Hence, SelectSuite gives a way of defining a new Selection
from existing ones, without having to do copies or saves
#include <IFSelect_SelectSuite.hxx>
Public Member Functions | |
IFSelect_SelectSuite () | |
Creates an empty SelectSuite | |
Standard_Boolean | AddInput (const Handle< IFSelect_Selection > &item) |
Adds an input selection. I.E. : If is a SelectDeduct, adds it as Previous, not as Input Else, sets it as Input Returns True when done Returns False and refuses to work if Input is already defined | |
void | AddPrevious (const Handle< IFSelect_SelectDeduct > &item) |
Adds a new first item (prepends to the list). The Input is not touched If is null, does nothing | |
void | AddNext (const Handle< IFSelect_SelectDeduct > &item) |
Adds a new last item (prepends to the list) If is null, does nothing | |
Standard_Integer | NbItems () const |
Returns the count of Items | |
Handle_IFSelect_SelectDeduct | Item (const Standard_Integer num) const |
Returns an item from its rank in the list (the Input is always apart) | |
void | SetLabel (const Standard_CString lab) |
Sets a value for the Label | |
Interface_EntityIterator | RootResult (const Interface_Graph &G) const |
Returns the list of selected entities To do this, once InputResult has been taken (if Input or Alternate has been defined, else the first Item gives it) : this result is set as alternate input for the first item, which computes its result : this result is set as alternate input for the second item, etc... | |
TCollection_AsciiString | Label () const |
Returns the Label Either it has been defined by SetLabel, or it will give "Suite of nn Selections" |
void IFSelect_SelectSuite::AddNext | ( | const Handle< IFSelect_SelectDeduct > & | item | ) |
Handle_IFSelect_SelectDeduct IFSelect_SelectSuite::Item | ( | const Standard_Integer | num | ) | const |
TCollection_AsciiString IFSelect_SelectSuite::Label | ( | ) | const [virtual] |
Implements IFSelect_Selection.
Interface_EntityIterator IFSelect_SelectSuite::RootResult | ( | const Interface_Graph & | G | ) | const [virtual] |
Implements IFSelect_Selection.