From 038bf647a077f1766aa61747ca1974e5a69f74a7 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 10 Mar 2015 07:50:48 +0300 Subject: [PATCH] Change color action for a body object Random color using by default. --- src/ExchangePlugin/ExchangePlugin_Plugin.cpp | 2 +- src/Model/Model_ResultBody.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index 11034f4f6..e2b1ee20f 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -35,7 +35,7 @@ ExchangePlugin_Plugin::ExchangePlugin_Plugin() // register random result color properties Config_PropManager::registerProp("Visualization", "random_result_color", "Use random color for results", - Config_Prop::Bool, "false"); + Config_Prop::Bool, "true"); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID) diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index edee5b149..6db5c9430 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -37,7 +37,7 @@ //#include //#define DEB_IMPORT 1 -#define RESULT_BODY_COLOR "#ff0000" +#define RESULT_BODY_COLOR "#E0A01B" Model_ResultBody::Model_ResultBody() { @@ -51,7 +51,7 @@ void Model_ResultBody::initAttributes() aData->addAttribute(COLOR_ID(), ModelAPI_AttributeColor::type()); // set the default value bool anIsRandomColor = Config_PropManager::boolean("Visualization", "random_result_color", - "false"); + "true"); AttributeColorPtr aColorAttr = std::dynamic_pointer_cast (aData->attribute(COLOR_ID())); if (anIsRandomColor) -- 2.39.2