Open CASCADE Technology
6.5.4
|
A SelectRange keeps or rejects a sub-set of the input set,
that is the Entities of which rank in the iteration list
is in a given range (for instance form 2nd to 6th, etc...)
#include <IFSelect_SelectRange.hxx>
Public Member Functions | |
IFSelect_SelectRange () | |
Creates a SelectRange. Default is Take all the input list | |
void | SetRange (const Handle< IFSelect_IntParam > &rankfrom, const Handle< IFSelect_IntParam > &rankto) |
Sets a Range for numbers, with a lower and a upper limits Error if rankto is lower then rankfrom | |
void | SetOne (const Handle< IFSelect_IntParam > &rank) |
Sets a unique number (only one Entity will be sorted as True) | |
void | SetFrom (const Handle< IFSelect_IntParam > &rankfrom) |
Sets a Lower limit but no upper limit | |
void | SetUntil (const Handle< IFSelect_IntParam > &rankto) |
Sets an Upper limit but no lower limit (equivalent to lower 1) | |
Standard_Boolean | HasLower () const |
Returns True if a Lower limit is defined | |
Handle_IFSelect_IntParam | Lower () const |
Returns Lower limit (if there is; else, value is senseless) | |
Standard_Integer | LowerValue () const |
Returns Value of Lower Limit (0 if none is defined) | |
Standard_Boolean | HasUpper () const |
Returns True if a Lower limit is defined | |
Handle_IFSelect_IntParam | Upper () const |
Returns Upper limit (if there is; else, value is senseless) | |
Standard_Integer | UpperValue () const |
Returns Value of Upper Limit (0 if none is defined) | |
Standard_Boolean | Sort (const Standard_Integer rank, const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const |
Returns True for an Entity of which occurence number in the iteration is inside the selected Range (considers <rank>) | |
TCollection_AsciiString | ExtractLabel () const |
Returns a text defining the criterium : following cases, " From .. Until .." or "From .." or "Until .." or "Rank no .." |
TCollection_AsciiString IFSelect_SelectRange::ExtractLabel | ( | ) | const [virtual] |
Implements IFSelect_SelectExtract.
Handle_IFSelect_IntParam IFSelect_SelectRange::Lower | ( | ) | const |
void IFSelect_SelectRange::SetFrom | ( | const Handle< IFSelect_IntParam > & | rankfrom | ) |
void IFSelect_SelectRange::SetOne | ( | const Handle< IFSelect_IntParam > & | rank | ) |
void IFSelect_SelectRange::SetRange | ( | const Handle< IFSelect_IntParam > & | rankfrom, |
const Handle< IFSelect_IntParam > & | rankto | ||
) |
void IFSelect_SelectRange::SetUntil | ( | const Handle< IFSelect_IntParam > & | rankto | ) |
Standard_Boolean IFSelect_SelectRange::Sort | ( | const Standard_Integer | rank, |
const Handle< Standard_Transient > & | ent, | ||
const Handle< Interface_InterfaceModel > & | model | ||
) | const [virtual] |
Implements IFSelect_SelectExtract.
Handle_IFSelect_IntParam IFSelect_SelectRange::Upper | ( | ) | const |