Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
IFSelect_SelectDeduct Class Reference

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>

Inheritance diagram for IFSelect_SelectDeduct:
Inheritance graph
[legend]

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


Member Function Documentation

Handle_IFSelect_SelectPointed& IFSelect_SelectDeduct::Alternate ( )

Implements IFSelect_Selection.

Handle_IFSelect_Selection IFSelect_SelectDeduct::Input ( ) const

The documentation for this class was generated from the following file: