]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020695: EDF 1076 GEOM: Add a new shape in GEOM: T-shape
authorvsr <vsr@opencascade.com>
Wed, 31 Mar 2010 13:28:21 +0000 (13:28 +0000)
committervsr <vsr@opencascade.com>
Wed, 31 Mar 2010 13:28:21 +0000 (13:28 +0000)
Additional change: customize Object browser icons for the Advanced shapes

src/GEOM_I/GEOM_Gen_i.cc

index cbc8935793d884ab8ae6ccbb5a1f2eed60376abc..cafe21c6e7dca3754687510937556d452a7540d3 100644 (file)
@@ -231,6 +231,12 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
   } else if ( aShape->GetType() == GEOM_MARKER ) {
     aPixmap->SetPixMap( "ICON_OBJBROWSER_LCS" );
     aShapeName = "LocalCS_";
+  } else if ( aShape->GetType() > ADVANCED_BASE ) {
+    char buf[20];
+    sprintf( buf, "%d", aShape->GetType() );
+    std::string advId = "ICON_OBJBROWSER_ADVANCED_"; advId += buf;
+    aPixmap->SetPixMap( advId.c_str() );
+    aShapeName = "Advanced_";
   } else if ( aShape->GetShapeType() == GEOM::COMPOUND ) {
     aPixmap->SetPixMap( "ICON_OBJBROWSER_COMPOUND" );
     aShapeName = "Compound_";