-
-public:
-
- 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 );
-
- 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 Standard_Boolean IsOk( const Handle(SALOME_InteractiveObject)& ) 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:
- GEOM::GEOM_Object_ptr getGeom( const Handle(SALOME_InteractiveObject)& theObj ) const;
-
-
-private:
+ public:
+ 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 );
+
+ 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:
+ GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner*) const;
+
+ private:
+ char* myKind;