- void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNotModif, bool isEmptyMesh)
- {
- _PTR(Study) aStudy = GetActiveStudyDocument();
- if (aStudy->GetProperties()->IsLocked())
- return;
-
- _PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();
- _PTR(GenericAttribute) anAttr =
- aBuilder->FindOrCreateAttribute(theSObject,"AttributePixMap");
- _PTR(AttributePixMap) aPixmap = anAttr;
- if (theIsNotModif) {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH");
- } else if ( isEmptyMesh ) {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
- } else {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL");
- }
-
- _PTR(ChildIterator) anIter = aStudy->NewChildIterator(theSObject);
- for (int i = 1; anIter->More(); anIter->Next(), i++) {
- _PTR(SObject) aSObj = anIter->Value();
- if (i >= 4) {
- _PTR(ChildIterator) anIter1 = aStudy->NewChildIterator(aSObj);
- for (; anIter1->More(); anIter1->Next()) {
- _PTR(SObject) aSObj1 = anIter1->Value();
- anAttr = aBuilder->FindOrCreateAttribute(aSObj1, "AttributePixMap");
- aPixmap = anAttr;
- if (theIsNotModif) {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH");
- } else if ( isEmptyMesh ) {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
- } else {
- aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL");
- }
- }
- }
- }
- }
-
- void ShowHelpFile (QString theHelpFileName)