Version: 9.12.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() [1/2]

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() [2/2]

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::~SMESH_NumberFilter ( )
virtual

Member Function Documentation

◆ getGeom()

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

References SMESH::_PTR(), and myKind.

Referenced by isOk().

◆ isOk()

bool SMESH_NumberFilter::isOk ( const SUIT_DataOwner *  theDataOwner) const
virtual

◆ SetClosedOnly()

void SMESH_NumberFilter::SetClosedOnly ( const bool  theIsClosedOnly)

References myIsClosedOnly.

◆ SetMainShape()

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

References myMainObj.

◆ SetNumber()

void SMESH_NumberFilter::SetNumber ( const int  theNumber)

References myNumber.

◆ SetShapeType()

void SMESH_NumberFilter::SetShapeType ( const TopAbs_ShapeEnum  theShapeType)

References myShapeTypes.

◆ SetShapeTypes()

void SMESH_NumberFilter::SetShapeTypes ( const TColStd_MapOfInteger &  )

◆ SetSubShapeType()

void SMESH_NumberFilter::SetSubShapeType ( const TopAbs_ShapeEnum  theSubShapeType)

References mySubShapeType.

Field Documentation

◆ myIsClosedOnly

bool SMESH_NumberFilter::myIsClosedOnly
private

◆ myKind

std::string SMESH_NumberFilter::myKind
private

Referenced by getGeom(), and SMESH_NumberFilter().

◆ myMainObj

GEOM::GEOM_Object_var SMESH_NumberFilter::myMainObj
private

◆ myNumber

int SMESH_NumberFilter::myNumber
private

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

◆ myShapeTypes

TColStd_MapOfInteger SMESH_NumberFilter::myShapeTypes
private

◆ mySubShapeType

TopAbs_ShapeEnum SMESH_NumberFilter::mySubShapeType
private