mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 17:02:04 +05:00
0020695: EDF 1076 GEOM: Add a new shape in GEOM: T-shape
Additional change: customize Object browser icons for the Advanced shapes
This commit is contained in:
parent
016401dbb2
commit
adc2b14a52
@ -231,6 +231,12 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
|
|||||||
} else if ( aShape->GetType() == GEOM_MARKER ) {
|
} else if ( aShape->GetType() == GEOM_MARKER ) {
|
||||||
aPixmap->SetPixMap( "ICON_OBJBROWSER_LCS" );
|
aPixmap->SetPixMap( "ICON_OBJBROWSER_LCS" );
|
||||||
aShapeName = "LocalCS_";
|
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 ) {
|
} else if ( aShape->GetShapeType() == GEOM::COMPOUND ) {
|
||||||
aPixmap->SetPixMap( "ICON_OBJBROWSER_COMPOUND" );
|
aPixmap->SetPixMap( "ICON_OBJBROWSER_COMPOUND" );
|
||||||
aShapeName = "Compound_";
|
aShapeName = "Compound_";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user