Moved DrawUtil.cpp member functions to DrawViewPart.cpp
Updated ownership of member functions & updated headers Removed redundant ownership lines Removed reference to removed ownership line Removed owner from function head static reference removed from header file, function heads updated attempt to fix CosmeticExtension.cpp attempt to fix CosmeticExtension.cpp #2 attempt to fix CosmeticExtension.cpp #3 CosmeticExtension.cpp refactored based on DrawUtil member functions move
This commit is contained in:
committed by
Benjamin Nauck
parent
a8183e0b30
commit
35bae9a3ff
@@ -1501,6 +1501,37 @@ void DrawViewPart::handleChangedPropertyType(Base::XMLReader &reader, const char
|
||||
}
|
||||
}
|
||||
|
||||
// true if owner->element is a cosmetic vertex
|
||||
bool DrawViewPart::isCosmeticVertex(const std::string& element)
|
||||
{
|
||||
auto vertexIndex = DrawUtil::getIndexFromName(element);
|
||||
auto vertex = getProjVertexByIndex(vertexIndex);
|
||||
if (vertex) {
|
||||
return vertex->getCosmetic();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// true if owner->element is a cosmetic edge
|
||||
bool DrawViewPart::isCosmeticEdge(const std::string& element)
|
||||
{
|
||||
auto edge = getEdge(element);
|
||||
if (edge && edge->source() == SourceType::COSMETICEDGE && edge->getCosmetic()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// true if owner->element is a center line
|
||||
bool DrawViewPart::isCenterLine(const std::string& element)
|
||||
{
|
||||
auto edge = getEdge(element);
|
||||
if (edge && edge->source() == SourceType::CENTERLINE && edge->getCosmetic()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// debugging ----------------------------------------------------------------------------
|
||||
|
||||
void DrawViewPart::dumpVerts(std::string text)
|
||||
|
||||
Reference in New Issue
Block a user