- case SMESH_Actor::eLength: return "eLength";
- case SMESH_Actor::eLength2D: return "eLength2D";
- case SMESH_Actor::eFreeEdges: return "eFreeEdges";
- case SMESH_Actor::eFreeBorders: return "eFreeBorders";
- case SMESH_Actor::eMultiConnection: return "eMultiConnection";
- case SMESH_Actor::eMultiConnection2D: return "eMultiConnection2D";
- case SMESH_Actor::eArea: return "eArea";
- case SMESH_Actor::eTaper: return "eTaper";
- case SMESH_Actor::eAspectRatio: return "eAspectRatio";
- case SMESH_Actor::eAspectRatio3D: return "eAspectRatio3D";
- case SMESH_Actor::eMinimumAngle: return "eMinimumAngle";
- case SMESH_Actor::eWarping: return "eWarping";
- case SMESH_Actor::eSkew: return "eSkew";
- default:;
+ case SMESH_Actor::eLength:
+ case SMESH_Actor::eLength2D:
+ case SMESH_Actor::eMultiConnection:
+ case SMESH_Actor::eMultiConnection2D:
+ case SMESH_Actor::eArea:
+ case SMESH_Actor::eVolume3D:
+ case SMESH_Actor::eMaxElementLength2D:
+ case SMESH_Actor::eMaxElementLength3D:
+ case SMESH_Actor::eTaper:
+ case SMESH_Actor::eAspectRatio:
+ case SMESH_Actor::eAspectRatio3D:
+ case SMESH_Actor::eMinimumAngle:
+ case SMESH_Actor::eWarping:
+ case SMESH_Actor::eSkew:
+ result = true;
+ break;
+ default:
+ break;
+ }
+ }
+ return result;
+}
+
+//=======================================================================
+//function : facesOrientationMode
+//purpose :
+//=======================================================================
+
+QString SMESHGUI_Selection::facesOrientationMode( int ind ) const
+{
+ SMESH_Actor* actor = getActor( ind );
+ if ( actor ) {
+ if ( actor->GetFacesOriented() )
+ return "IsOriented";
+ return "IsNotOriented";
+ }
+ return "Unknown";
+}
+
+//=======================================================================
+//function : isAutoColor
+//purpose :
+//=======================================================================
+
+bool SMESHGUI_Selection::isAutoColor( int ind ) const
+{
+ if ( ind >= 0 && ind < myTypes.count() && myTypes[ind] != "Unknown" )
+ {
+ _PTR(SObject) sobj = SMESH::GetActiveStudyDocument()->FindObjectID( entry( ind ).toLatin1().data() );
+ CORBA::Object_var obj = SMESH::SObjectToObject( sobj, SMESH::GetActiveStudyDocument() );
+
+ if ( ! CORBA::is_nil( obj )) {
+ SMESH::SMESH_Mesh_var mesh = SMESH::SMESH_Mesh::_narrow( obj );
+ if ( ! mesh->_is_nil() )
+ return mesh->GetAutoColor();