From 0cda51bd5c44924f5855998637e08f8d43756ac4 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 3 Jul 2019 13:07:29 +0300 Subject: [PATCH] Modify point size for non-strings presentations only --- src/PartSet/PartSet_FieldStepPrs.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/PartSet/PartSet_FieldStepPrs.cpp b/src/PartSet/PartSet_FieldStepPrs.cpp index 1d751d016..04d74504e 100644 --- a/src/PartSet/PartSet_FieldStepPrs.cpp +++ b/src/PartSet/PartSet_FieldStepPrs.cpp @@ -63,15 +63,16 @@ PartSet_FieldStepPrs::PartSet_FieldStepPrs(FieldStepPtr theStep) std::shared_ptr aFieldPtr(aField, emptyDeleter); myFeature = ModelAPI_Feature::feature(aFieldPtr); - Handle(Prs3d_Drawer) aDrawer = Attributes(); - if (aDrawer->HasOwnPointAspect()) { - aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_POINT); - aDrawer->PointAspect()->SetScale(POINT_SIZE); + if (dataType() != ModelAPI_AttributeTables::STRING) { + Handle(Prs3d_Drawer) aDrawer = Attributes(); + if (aDrawer->HasOwnPointAspect()) { + aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_POINT); + aDrawer->PointAspect()->SetScale(POINT_SIZE); + } + else + aDrawer->SetPointAspect( + new Prs3d_PointAspect(Aspect_TOM_POINT, Quantity_NOC_YELLOW, POINT_SIZE)); } - else - aDrawer->SetPointAspect( - new Prs3d_PointAspect(Aspect_TOM_POINT, Quantity_NOC_YELLOW, POINT_SIZE)); - SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr(); QColor aQColor = aResMgr->colorValue("Viewer", "scalar_bar_text_color", Qt::black); -- 2.39.2