aRule = "selcount=1 and $type in {'VISU::TCUTLINES' 'VISU::TCUTSEGMENT'} and nbNamedChildren=0";
mgr->setRule( action( VISU_CREATE_TABLE ), aRule );
- aRule = "selcount=1 and ($type in {" + aSimplePrsAll + "})";
+ aRule = "selcount=1 and ($type in {" + aSimplePrsAll + "}) and isFieldPrs=0";
mgr->setRule( action( VISU_SWEEP ), aRule );
aRule = "client='ObjectBrowser' and selcount>0";
QVariant val( LightApp_Selection::parameter( ind, p ) );
if ( !val.isValid() ) {
if ( p == "type" ) val = QVariant( type( ind ) );
+ else if ( p == "isFieldPrs" ) val = QVariant( isFieldPrs( ind ) );
else if ( p == "nbComponents" ) val = QVariant( nbComponents( ind ) );
else if ( p == "medEntity" ) val = QVariant( medEntity( ind ) );
else if ( p == "medSource" ) val = QVariant( medSource( ind ) );
}
+//---------------------------------------------------------------
+bool VisuGUI_Selection::isFieldPrs( const int ind ) const
+{
+ SalomeApp_Study* aStudy = GetStudy();
+ if ( !aStudy )
+ return false;
+
+ VISU::TObjectInfo anObjectInfo = VISU::GetObjectByEntry(aStudy, (const char*)entry( ind ).toLatin1());
+ VISU::Base_i* aBase = anObjectInfo.myBase;
+ return ( aBase && aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER );
+}
+
+
//---------------------------------------------------------------
QString VisuGUI_Selection::nbComponents( const int ind ) const
{
private:
QString type( const int ) const;
+ bool isFieldPrs( const int ) const;
QString nbComponents( const int ) const;
QString medEntity( const int ) const;
QString medSource( const int ) const;