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

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>

Inheritance diagram for IFSelect_SelectRange:
Inheritance graph
[legend]

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 .."


Constructor & Destructor Documentation


Member Function Documentation

Handle_IFSelect_IntParam IFSelect_SelectRange::Lower ( ) const
Handle_IFSelect_IntParam IFSelect_SelectRange::Upper ( ) const

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