mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 19:30:34 +05:00
Fix according to note 0018123 from 0022617: [CEA 1060]:
1) taking into account user's point marker; 2) add 'Point Marker' item into popup menu for all GEOM objects to have possibility modify the 'point marker'.
This commit is contained in:
parent
4ffc08bf4b
commit
be7aba2cac
@ -832,7 +832,8 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
||||
AISShape->SetDisplayVectors( propMap.value( GEOM::propertyName( GEOM::EdgesDirection ) ).toBool() );
|
||||
|
||||
// set display vertices flag
|
||||
AISShape->SetDisplayVertices( propMap.value( GEOM::propertyName( GEOM::Vertices ) ).toBool() );
|
||||
bool isVerticesMode = propMap.value( GEOM::propertyName( GEOM::Vertices ) ).toBool();
|
||||
AISShape->SetDisplayVertices( isVerticesMode );
|
||||
|
||||
// set transparency
|
||||
if( HasTransparency() ) {
|
||||
@ -918,7 +919,7 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
||||
AISShape->setTopLevel( propMap.value( GEOM::propertyName( GEOM::TopLevel ) ).toBool() );
|
||||
|
||||
// set point marker (for vertex / compound of vertices only)
|
||||
if ( onlyVertex ) {
|
||||
if ( onlyVertex || isVerticesMode ) {
|
||||
QStringList aList = propMap.value( GEOM::propertyName( GEOM::PointMarker ) ).toString().split( GEOM::subSectionSeparator() );
|
||||
if ( aList.size() == 2 ) {
|
||||
// standard marker string contains "TypeOfMarker:ScaleOfMarker"
|
||||
|
@ -1539,8 +1539,7 @@ void GeometryGUI::initialize( CAM_Application* app )
|
||||
mgr->insert( action( GEOMOp::OpDeflection ), -1, -1 ); // deflection
|
||||
mgr->setRule( action( GEOMOp::OpDeflection ), clientOCCorVTK_AndSomeVisible + " and selcount>0 and isVisible" + " and ($component={'GEOM'})", QtxPopupMgr::VisibleRule );
|
||||
mgr->insert( action( GEOMOp::OpPointMarker ), -1, -1 ); // point marker
|
||||
//mgr->setRule( action( GEOMOp::OpPointMarker ), QString( "selcount>0 and $typeid in {%1}" ).arg(GEOM_POINT ), QtxPopupMgr::VisibleRule );
|
||||
mgr->setRule( action( GEOMOp::OpPointMarker ), QString( "selcount>0 and ( $typeid in {%1} or compoundOfVertices=true ) " ).arg(GEOM::VERTEX).arg(GEOM::COMPOUND), QtxPopupMgr::VisibleRule );
|
||||
mgr->setRule( action( GEOMOp::OpPointMarker ), clientOCCorOB + " and $type in {'Shape' 'Group' 'Field' 'FieldStep'} and selcount>0 and isOCC=true", QtxPopupMgr::VisibleRule );
|
||||
|
||||
// material properties
|
||||
mgr->insert( action( GEOMOp::OpMaterialProperties ), -1, -1 );
|
||||
|
Loading…
Reference in New Issue
Block a user