mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-08 03:47:27 +05:00
RNV: Fix compilation error.
This commit is contained in:
parent
e7ded34002
commit
a1ea5512c3
@ -733,16 +733,27 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
#endif
|
#endif
|
||||||
GeometryGUI::getTexture( study, textureId, aWidth, aHeight );
|
GeometryGUI::getTexture( study, textureId, aWidth, aHeight );
|
||||||
if ( !aTexture.IsNull() ) {
|
if ( !aTexture.IsNull() ) {
|
||||||
static int TextureId = 0;
|
#if OCC_VERSION_LARGE > 0x06050500 // Porting to OCCT higher 6.5.5 version
|
||||||
Handle(Prs3d_PointAspect) aTextureAspect =
|
Handle(Prs3d_PointAspect) aTextureAspect =
|
||||||
new Prs3d_PointAspect( HasColor() ?
|
new Prs3d_PointAspect( HasColor() ?
|
||||||
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
||||||
(Quantity_NameOfColor)GetColor() :
|
(Quantity_NameOfColor)GetColor() :
|
||||||
// color from properties
|
// color from properties
|
||||||
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
||||||
++TextureId,
|
|
||||||
aWidth, aHeight,
|
aWidth, aHeight,
|
||||||
aTexture );
|
aTexture );
|
||||||
|
#else
|
||||||
|
int TextureId = 0;
|
||||||
|
Handle(Prs3d_PointAspect) aTextureAspect =
|
||||||
|
new Prs3d_PointAspect( HasColor() ?
|
||||||
|
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
||||||
|
(Quantity_NameOfColor)GetColor() :
|
||||||
|
// color from properties
|
||||||
|
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
||||||
|
++TextureId,
|
||||||
|
aWidth, aHeight,
|
||||||
|
aTexture );
|
||||||
|
#endif
|
||||||
AISShape->Attributes()->SetPointAspect( aTextureAspect );
|
AISShape->Attributes()->SetPointAspect( aTextureAspect );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user