+int SMESH_PreviewActorsCollection::NbShapesOfType( TopAbs_ShapeEnum type )
+{
+ if ( type == TopAbs_SHAPE ) return myMapOfShapes.Extent();
+
+ int nb = 0;
+ for ( int i = 1; i <= myMapOfShapes.Extent(); ++i )
+ nb += ( myMapOfShapes(i).ShapeType() == type );
+
+ return nb;
+}
+