mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 21:40:32 +05:00
PAL13330( When mesh generation does not success, trace where )
- void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight); + void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNot, bool isEmptyMesh=false); + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL");
This commit is contained in:
parent
3f93b306d9
commit
467cba1441
@ -254,7 +254,7 @@ namespace SMESH{
|
||||
return theSObject->GetFather();
|
||||
}
|
||||
|
||||
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight)
|
||||
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNotModif, bool isEmptyMesh)
|
||||
{
|
||||
_PTR(Study) aStudy = GetActiveStudyDocument();
|
||||
if (aStudy->GetProperties()->IsLocked())
|
||||
@ -264,10 +264,12 @@ namespace SMESH{
|
||||
_PTR(GenericAttribute) anAttr =
|
||||
aBuilder->FindOrCreateAttribute(theSObject,"AttributePixMap");
|
||||
_PTR(AttributePixMap) aPixmap = anAttr;
|
||||
if (theIsRight) {
|
||||
if (theIsNotModif) {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH");
|
||||
} else {
|
||||
} else if ( isEmptyMesh ) {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
|
||||
} else {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL");
|
||||
}
|
||||
|
||||
_PTR(ChildIterator) anIter = aStudy->NewChildIterator(theSObject);
|
||||
@ -279,10 +281,12 @@ namespace SMESH{
|
||||
_PTR(SObject) aSObj1 = anIter1->Value();
|
||||
anAttr = aBuilder->FindOrCreateAttribute(aSObj1, "AttributePixMap");
|
||||
aPixmap = anAttr;
|
||||
if (theIsRight) {
|
||||
if (theIsNotModif) {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH");
|
||||
} else {
|
||||
} else if ( isEmptyMesh ) {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
|
||||
} else {
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ namespace SMESH {
|
||||
|
||||
_PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject);
|
||||
|
||||
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight);
|
||||
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNot, bool isEmptyMesh=false);
|
||||
|
||||
void ShowHelpFile (QString theHelpFileName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user