Version: 8.3.0
SMESH_NumberFilter Class Reference

Class : SMESH_NumberFilter Description : Filter for geom or smesh objects. More...

#include <SMESH_NumberFilter.hxx>

Inheritance diagram for SMESH_NumberFilter:

Public Member Functions

 SMESH_NumberFilter (const char *theKind, const TopAbs_ShapeEnum theSubShapeType, const int theNumber, const TopAbs_ShapeEnum theShapeType=TopAbs_SHAPE, GEOM::GEOM_Object_ptr theMainObj=GEOM::GEOM_Object::_nil(), const bool theIsClosedOnly=false)
 Class : SMESH_NumberFilter Description : Filter for geom objects. More...
 
 SMESH_NumberFilter (const char *theKind, const TopAbs_ShapeEnum theSubShapeType, const int theNumber, const TColStd_MapOfInteger &theShapeTypes, GEOM::GEOM_Object_ptr theMainObj=GEOM::GEOM_Object::_nil(), const bool theIsClosedOnly=false)
 
virtual ~SMESH_NumberFilter ()
 
virtual bool isOk (const SUIT_DataOwner *) const
 
void SetSubShapeType (const TopAbs_ShapeEnum)
 
void SetNumber (const int)
 
void SetClosedOnly (const bool)
 
void SetShapeType (const TopAbs_ShapeEnum)
 
void SetShapeTypes (const TColStd_MapOfInteger &)
 
void SetMainShape (GEOM::GEOM_Object_ptr)
 

Private Member Functions

GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner *, const bool extractReference=true) const
 

Private Attributes

std::string myKind
 
TopAbs_ShapeEnum mySubShapeType
 
int myNumber
 
bool myIsClosedOnly
 
TColStd_MapOfInteger myShapeTypes
 
GEOM::GEOM_Object_var myMainObj
 

Detailed Description

Class : SMESH_NumberFilter Description : Filter for geom or smesh objects.

Filter geom objects by number of subshapes of the given type Parameters of constructor:

  • theSubShapeType - Type of subshape
  • theNumber - Number of subshapes. Object is selected if it contains theNumber of theSubShapeType sub-shapes, or at least one theSubShapeType, provided that theNumber==0
  • theShapeType - This map specifies types of object to be selected
  • theMainObject - Sub-shapes of this object is selected only
  • theIsClosedOnly - Closed shapes is selected if this parameter is true

Constructor & Destructor Documentation

SMESH_NumberFilter::SMESH_NumberFilter ( const char *  theKind,
const TopAbs_ShapeEnum  theSubShapeType,
const int  theNumber,
const TopAbs_ShapeEnum  theShapeType = TopAbs_SHAPE,
GEOM::GEOM_Object_ptr  theMainObj = GEOM::GEOM_Object::_nil(),
const bool  theIsClosedOnly = false 
)

Class : SMESH_NumberFilter Description : Filter for geom objects.

Filter geom objects by number of subshapes of the given type

References myIsClosedOnly, myKind, myMainObj, myNumber, myShapeTypes, and mySubShapeType.

SMESH_NumberFilter::SMESH_NumberFilter ( const char *  theKind,
const TopAbs_ShapeEnum  theSubShapeType,
const int  theNumber,
const TColStd_MapOfInteger &  theShapeTypes,
GEOM::GEOM_Object_ptr  theMainObj = GEOM::GEOM_Object::_nil(),
const bool  theIsClosedOnly = false 
)
SMESH_NumberFilter::~SMESH_NumberFilter ( )
virtual

Member Function Documentation

GEOM::GEOM_Object_ptr SMESH_NumberFilter::getGeom ( const SUIT_DataOwner *  theDataOwner,
const bool  extractReference = true 
) const
private

References _PTR(), and SObject().

Referenced by isOk().

bool SMESH_NumberFilter::isOk ( const SUIT_DataOwner *  theDataOwner) const
virtual
void SMESH_NumberFilter::SetClosedOnly ( const bool  theIsClosedOnly)

References myIsClosedOnly.

void SMESH_NumberFilter::SetMainShape ( GEOM::GEOM_Object_ptr  theMainObj)

References myMainObj.

void SMESH_NumberFilter::SetNumber ( const int  theNumber)

References myNumber.

void SMESH_NumberFilter::SetShapeType ( const TopAbs_ShapeEnum  theShapeType)

References myShapeTypes.

void SMESH_NumberFilter::SetShapeTypes ( const TColStd_MapOfInteger &  )
void SMESH_NumberFilter::SetSubShapeType ( const TopAbs_ShapeEnum  theSubShapeType)

References mySubShapeType.

Field Documentation

bool SMESH_NumberFilter::myIsClosedOnly
private
std::string SMESH_NumberFilter::myKind
private

Referenced by SMESH_NumberFilter().

GEOM::GEOM_Object_var SMESH_NumberFilter::myMainObj
private
int SMESH_NumberFilter::myNumber
private

Referenced by isOk(), SetNumber(), and SMESH_NumberFilter().

TColStd_MapOfInteger SMESH_NumberFilter::myShapeTypes
private
TopAbs_ShapeEnum SMESH_NumberFilter::mySubShapeType
private