Open CASCADE Technology
6.5.4
|
A SelectFlag queries a flag noted in the bitmap of the Graph.
The Flag is designated by its Name. Flag Names are defined
by Work Session and, as necessary, other functional objects
WorkSession from IFSelect defines flag "Incorrect"
Objects which control application running define some others
#include <IFSelect_SelectFlag.hxx>
Public Member Functions | |
IFSelect_SelectFlag (const Standard_CString flagname) | |
Creates a Select Flag, to query a flag designated by its name | |
Standard_CString | FlagName () const |
Returns the name of the flag | |
virtual Interface_EntityIterator | RootResult (const Interface_Graph &G) const |
Returns the list of selected entities. It is redefined to work on the graph itself (not queried by sort) An entity is selected if its flag is True on Direct mode, False on Reversed mode If flag does not exist for the given name, returns an empty result, whatever the Direct/Reversed sense | |
Standard_Boolean | Sort (const Standard_Integer rank, const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const |
Returns always False because RootResult has done the work | |
TCollection_AsciiString | ExtractLabel () const |
Returns a text defining the criterium, includes the flag name |
TCollection_AsciiString IFSelect_SelectFlag::ExtractLabel | ( | ) | const [virtual] |
Implements IFSelect_SelectExtract.
virtual Interface_EntityIterator IFSelect_SelectFlag::RootResult | ( | const Interface_Graph & | G | ) | const [virtual] |
Reimplemented from IFSelect_SelectExtract.
Standard_Boolean IFSelect_SelectFlag::Sort | ( | const Standard_Integer | rank, |
const Handle< Standard_Transient > & | ent, | ||
const Handle< Interface_InterfaceModel > & | model | ||
) | const [virtual] |
Implements IFSelect_SelectExtract.