Open CASCADE Technology
6.5.4
|
A SelectExtract determines a list of Entities from an Input
Selection, as a sub-list of the Input Result
It works by applying a sort criterium on each Entity of the
Input. This criterium can be applied Direct to Pick Items
(default case) or Reverse to Remove Item
Basic features (the unique Input) are inherited from SelectDeduct
#include <IFSelect_SelectExtract.hxx>
Public Member Functions | |
Standard_Boolean | IsDirect () const |
Returns True if Sort criterium is Direct, False if Reverse | |
void | SetDirect (const Standard_Boolean direct) |
Sets Sort criterium sense to a new value (True : Direct , False : Reverse) | |
virtual Interface_EntityIterator | RootResult (const Interface_Graph &G) const |
Returns the list of selected entities. Works by calling the method Sort on each input Entity : the Entity is kept as output if Sort returns the same value as Direct status | |
virtual Standard_Boolean | Sort (const Standard_Integer rank, const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const =0 |
Returns True for an Entity if it satisfies the Sort criterium It receives : | |
virtual Standard_Boolean | SortInGraph (const Standard_Integer rank, const Handle< Standard_Transient > &ent, const Interface_Graph &G) const |
Works as Sort but works on the Graph Default directly calls Sort, but it can be redefined If SortInGraph is redefined, Sort should be defined even if not called (to avoid deferred methods in a final class) | |
TCollection_AsciiString | Label () const |
Returns a text saying "Picked" or "Removed", plus the specific criterium returned by ExtractLabel (see below) | |
virtual TCollection_AsciiString | ExtractLabel () const =0 |
Returns a text defining the criterium for extraction | |
Protected Member Functions | |
IFSelect_SelectExtract () | |
Initializes a SelectExtract : enforces the sort to be Direct |
IFSelect_SelectExtract::IFSelect_SelectExtract | ( | ) | [protected] |
virtual TCollection_AsciiString IFSelect_SelectExtract::ExtractLabel | ( | ) | const [pure virtual] |
Implemented in IFSelect_SelectSignature, XSControl_SelectForTransfer, IFSelect_SelectSent, IFSelect_SelectRange, IFSelect_SelectFlag, IGESSelect_SelectLevelNumber, IFSelect_SelectRootComps, IGESSelect_SelectName, IGESSelect_SelectSubordinate, IFSelect_SelectRoots, IFSelect_SelectErrorEntities, IFSelect_SelectUnknownEntities, IGESSelect_SelectVisibleStatus, and IFSelect_SelectType.
TCollection_AsciiString IFSelect_SelectExtract::Label | ( | ) | const [virtual] |
Implements IFSelect_Selection.
virtual Interface_EntityIterator IFSelect_SelectExtract::RootResult | ( | const Interface_Graph & | G | ) | const [virtual] |
Implements IFSelect_Selection.
Reimplemented in IFSelect_SelectSent, IFSelect_SelectFlag, IFSelect_SelectRootComps, IFSelect_SelectRoots, and STEPSelections_SelectForTransfer.
virtual Standard_Boolean IFSelect_SelectExtract::Sort | ( | const Standard_Integer | rank, |
const Handle< Standard_Transient > & | ent, | ||
const Handle< Interface_InterfaceModel > & | model | ||
) | const [pure virtual] |
Implemented in IFSelect_SelectSignature, XSControl_SelectForTransfer, IFSelect_SelectSent, IFSelect_SelectRange, IFSelect_SelectFlag, IGESSelect_SelectLevelNumber, IFSelect_SelectRootComps, IGESSelect_SelectSubordinate, IFSelect_SelectRoots, IGESSelect_SelectName, IFSelect_SelectAnyType, IFSelect_SelectErrorEntities, IFSelect_SelectUnknownEntities, and IGESSelect_SelectVisibleStatus.
virtual Standard_Boolean IFSelect_SelectExtract::SortInGraph | ( | const Standard_Integer | rank, |
const Handle< Standard_Transient > & | ent, | ||
const Interface_Graph & | G | ||
) | const [virtual] |
Reimplemented in IFSelect_SelectSignature.