"Sketch fully constrained color",
Config_Prop::Color, SKETCH_FULLY_CONSTRAINED_COLOR);
+ Config_PropManager::registerProp("Visualization", "sketch_line_width",
+ "Sketch line width",
+ Config_Prop::IntSpin, "3");
+
// register sketcher properties
#ifdef SET_PLANES_COLOR_IN_PREFERENCES
Config_PropManager::registerProp("Visualization", "yz_plane_color", "YZ plane color",
/// Width of the line
inline static const double SKETCH_LINE_WIDTH()
{
- return 3;
+ return Config_PropManager::integer("Visualization", "sketch_line_width");
}
/// Style of the auxiliary line
return false;
}
+ virtual bool isIncludeToResult() const
+ {
+ AttributeBooleanPtr anAttr;
+ std::set<AttributePtr> aRefsToMe = data()->refsToMe();
+ std::set<AttributePtr>::const_iterator aIt;
+ for (aIt = aRefsToMe.cbegin(); aIt != aRefsToMe.cend(); ++aIt) {
+ if ((*aIt)->id() == "ProjectedFeature") {
+ FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>((*aIt)->owner());
+ if (aFeature.get()) {
+ anAttr = aFeature->data()->boolean("IncludeToResult");
+ if (anAttr.get())
+ return anAttr->value();
+ }
+ }
+ }
+ return true;
+ }
+
// LCOV_EXCL_START
/// Customize presentation of the feature
virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
thePrs->setWidth(17);
// thePrs->setPointMarker(1, 1.); // Set point as a '+' symbol
}
- if(isCopy()) {
+ if(isCopy() && !isIncludeToResult()) {
double aWidth = thePrs->width();
isCustomized = thePrs->setWidth(aWidth / 2.5) || isCustomized;
}