Open CASCADE Technology 6.6.0
Public Member Functions
IFSelect_DispPerCount Class Reference

A DispPerCount gathers all the input Entities into one or
several Packets, each containing a defined count of Entity
This count is a Parameter of the DispPerCount, given as an
IntParam, thus allowing external control of its Value

#include <IFSelect_DispPerCount.hxx>

Inheritance diagram for IFSelect_DispPerCount:
Inheritance graph
[legend]

Public Member Functions

 IFSelect_DispPerCount ()
 Creates a DispPerCount with no Count (default value 1)

Handle_IFSelect_IntParam Count () const
 Returns the Count Parameter used for splitting

void SetCount (const Handle< IFSelect_IntParam > &count)
 Sets a new Parameter for Count

Standard_Integer CountValue () const
 Returns the effective value of the count parameter
(if Count Parameter not Set or value not positive, returns 1)

TCollection_AsciiString Label () const
 Returns as Label, "One File per <count> Input Entities"

virtual Standard_Boolean LimitedMax (const Standard_Integer nbent, Standard_Integer &max) const
 Returns True, maximum count is given as <nbent>

virtual Standard_Boolean PacketsCount (const Interface_Graph &G, Standard_Integer &count) const
 Returns True (count is easy to know) and count is computed
from length of input list (RootResult from Final Selection)

void Packets (const Interface_Graph &G, IFGraph_SubPartsIterator &packs) const
 Computes the list of produced Packets. It defines Packets in
order to have at most <Count> Entities per Packet, Entities
are given by RootResult from the Final Selection.


Constructor & Destructor Documentation

IFSelect_DispPerCount::IFSelect_DispPerCount ( )

Member Function Documentation

Handle_IFSelect_IntParam IFSelect_DispPerCount::Count ( ) const
Standard_Integer IFSelect_DispPerCount::CountValue ( ) const
TCollection_AsciiString IFSelect_DispPerCount::Label ( ) const [virtual]

Implements IFSelect_Dispatch.

virtual Standard_Boolean IFSelect_DispPerCount::LimitedMax ( const Standard_Integer  nbent,
Standard_Integer max 
) const [virtual]

Reimplemented from IFSelect_Dispatch.

void IFSelect_DispPerCount::Packets ( const Interface_Graph G,
IFGraph_SubPartsIterator packs 
) const [virtual]

Implements IFSelect_Dispatch.

virtual Standard_Boolean IFSelect_DispPerCount::PacketsCount ( const Interface_Graph G,
Standard_Integer count 
) const [virtual]

Reimplemented from IFSelect_Dispatch.

void IFSelect_DispPerCount::SetCount ( const Handle< IFSelect_IntParam > &  count)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines