}
return std::shared_ptr<GeomAPI_Shape>();
}
+
+
+void Model_ResultPart::colorConfigInfo(std::string& theSection, std::string& theName,
+ std::string& theDefault)
+{
+ theSection = "Visualization";
+ theName = "result_part_color";
+ theDefault = DEFAULT_COLOR();
+}
/// Result shape of part document is compound of bodies inside of this part
MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Shape> shape();
+ /// Returns the parameters of color definition in the resources config manager
+ MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
+ std::string& theDefault);
+
protected:
/// makes a result on a temporary feature (an action)
Model_ResultPart();
return MY_DOC_REF;
}
+ /// default color for a result body
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string RESULT_BODY_COLOR("96,157,255");
+ return RESULT_BODY_COLOR;
+ }
+
/// Returns the part-document of this result
virtual std::shared_ptr<ModelAPI_Document> partDoc() = 0;
Config_Prop::Color, ModelAPI_ResultGroup::DEFAULT_COLOR());
Config_PropManager::registerProp("Visualization", "result_construction_color", "Construction color",
Config_Prop::Color, ModelAPI_ResultConstruction::DEFAULT_COLOR());
+ Config_PropManager::registerProp("Visualization", "result_part_color", "Part color",
+ Config_Prop::Color, ModelAPI_ResultPart::DEFAULT_COLOR());
}
//******************************************************