From: nds Date: Tue, 17 Nov 2015 05:42:03 +0000 (+0300) Subject: Define to have opportunity do not visualize custom presentation. X-Git-Tag: V_2.0.0_alfa2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13bd293391bee23ffbc6361517baff0876a6998f;p=modules%2Fshaper.git Define to have opportunity do not visualize custom presentation. --- diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index ab96e5538..b2315bffb 100755 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -21,6 +21,8 @@ #include #include +//#define DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + #define OPERATION_PARAMETER_COLOR "255, 255, 0" PartSet_CustomPrs::PartSet_CustomPrs(ModuleBase_IWorkshop* theWorkshop) @@ -40,6 +42,10 @@ bool PartSet_CustomPrs::isActive() bool PartSet_CustomPrs::activate(const FeaturePtr& theFeature, const bool theUpdateViewer) { +#ifdef DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + return false; +#endif + bool isModified = false; Handle(PartSet_OperationPrs) anOperationPrs = getPresentation(); @@ -112,6 +118,10 @@ Handle(PartSet_OperationPrs) PartSet_CustomPrs::getPresentation() bool PartSet_CustomPrs::redisplay(const ObjectPtr& theObject, const bool theUpdateViewer) { +#ifdef DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + return false; +#endif + bool isModified = false; // the presentation should be recomputed if the previous AIS depend on the result // [it should be hiddend] or the new AIS depend on it [it should be visualized]