[TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update - all cosmetics to store geometry in same form - all cosmetics to survive scaling and rotation - extension functions to survive scaling and rotation * [TD]overhaul leader point storage and editing - add py routine makeLeader(points) * [TD]add leader conversion utility * [TD]Set Leader RotateWithView default to true * [TD]fix intersection vertex position * [TD]add CosmeticEdge::makeLineFromCanonicalPoints * [TD]fix 2 Extension tools - positioning in DrawCosmeticCircle - mishandling of points in execLineParallelPerpendicular * [TD]Remove duplicate constexpr * [TD]fix 2x Cosmetic arc tools * [TD]refactor LineFormat out of Cosmetic * [TD]move cosmetic appearance settings to LineFormat * [TD]remove 2 unused methods * [TD]apply format to blue line & circle tools * [TD]fix ballon arrowhead does not rotate with view * [TD]fix CosmeticCircle3Points * [TD]allow multiple cosmetic object deletions * [TD]fix extend/shorten centerline
This commit is contained in:
@@ -115,10 +115,10 @@ Py::Dict CenterLinePy::getFormat() const
|
||||
TechDraw::LineFormat* format= &(this->getCenterLinePtr()->m_format);
|
||||
Py::Dict dict;
|
||||
|
||||
dict.setItem("style", Py::Long(format->m_style));
|
||||
dict.setItem("weight", Py::Float(format->m_weight));
|
||||
dict.setItem("color", Py::Tuple(DrawUtil::colorToPyTuple(format->m_color), true));
|
||||
dict.setItem("visible", Py::Boolean(format->m_visible));
|
||||
dict.setItem("style", Py::Long(format->getStyle()));
|
||||
dict.setItem("weight", Py::Float(format->getWidth()));
|
||||
dict.setItem("color", Py::Tuple(DrawUtil::colorToPyTuple(format->getColor()), true));
|
||||
dict.setItem("visible", Py::Boolean(format->getVisible()));
|
||||
|
||||
return dict;
|
||||
}
|
||||
@@ -138,10 +138,10 @@ void CenterLinePy::setFormat(Py::Dict arg)
|
||||
}
|
||||
|
||||
TechDraw::LineFormat* format = &(this->getCenterLinePtr()->m_format);
|
||||
format->m_style = style;
|
||||
format->m_weight = weight;
|
||||
format->m_color = DrawUtil::pyTupleToColor(pColor);
|
||||
format->m_visible = Base::asBoolean(visible);
|
||||
format->setStyle(style);
|
||||
format->setWidth(weight);
|
||||
format->setColor(DrawUtil::pyTupleToColor(pColor));
|
||||
format->setVisible(Base::asBoolean(visible));
|
||||
}
|
||||
|
||||
Py::String CenterLinePy::getTag() const
|
||||
|
||||
Reference in New Issue
Block a user