From: vsv Date: Wed, 3 Jul 2019 10:07:29 +0000 (+0300) Subject: Modify point size for non-strings presentations only X-Git-Tag: VEDF2019Lot4~103^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0cda51bd5c44924f5855998637e08f8d43756ac4;p=modules%2Fshaper.git Modify point size for non-strings presentations only --- 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);