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

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>

Inheritance diagram for IFSelect_SelectExtract:
Inheritance graph
[legend]

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


Constructor & Destructor Documentation


Member Function Documentation

Implements IFSelect_Selection.

  • <rank>, the rank of the Entity in the Iteration,
  • <ent> , the Entity itself, and
  • <model>, the Starting Model
    Hence, the Entity to check is "model->Value(num)" (but an
    InterfaceModel allows other checks)
    This method is specific to each class of SelectExtract

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.

Reimplemented in IFSelect_SelectSignature.


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