Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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


Member Function Documentation

Handle_IFSelect_IntParam IFSelect_DispPerCount::Count ( ) const

Implements IFSelect_Dispatch.

Reimplemented from IFSelect_Dispatch.

Implements IFSelect_Dispatch.

Reimplemented from IFSelect_Dispatch.


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