[TD]Add restore invisible lines
This commit is contained in:
@@ -1276,7 +1276,7 @@ int DrawViewPart::addCenterLine(CenterLine* cl)
|
||||
return newIdx;
|
||||
}
|
||||
|
||||
void DrawViewPart::writeCListProp(void)
|
||||
void DrawViewPart::writeCLineProp(void)
|
||||
{
|
||||
std::vector<std::string> saveLines;
|
||||
const std::vector<TechDraw::CenterLine*> cLines = getCenterLines();
|
||||
@@ -1309,7 +1309,7 @@ void DrawViewPart::removeCenterLine(int idx)
|
||||
{
|
||||
if (idx < (int) CLineTable.size()) {
|
||||
CLineTable.erase(CLineTable.begin() + idx);
|
||||
writeCListProp();
|
||||
writeCLineProp();
|
||||
recomputeFeature();
|
||||
}
|
||||
}
|
||||
@@ -1319,7 +1319,7 @@ void DrawViewPart::replaceCenterLine(int idx, TechDraw::CenterLine* cl)
|
||||
std::vector<TechDraw::CenterLine*> lines = getCenterLines();
|
||||
if (idx < (int) lines.size()) {
|
||||
lines.at(idx) = cl;
|
||||
writeCListProp();
|
||||
writeCLineProp();
|
||||
recomputeFeature();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ public:
|
||||
void clearCosmeticEdges(void);
|
||||
|
||||
virtual int addCenterLine(TechDraw::CenterLine*);
|
||||
virtual void writeCListProp(void);
|
||||
virtual void writeCLineProp(void);
|
||||
virtual void removeCenterLine(TechDraw::CenterLine* cl);
|
||||
virtual void removeCenterLine(int idx);
|
||||
const std::vector<TechDraw::CenterLine*> & getCenterLines(void) const { return CLineTable; }
|
||||
|
||||
Reference in New Issue
Block a user