WIP: fixed RecursiveShapeIterator unit tests.

This commit is contained in:
Matthias Koefferlein 2018-11-15 22:59:38 +01:00
parent 3f8825cfd1
commit 04256a2753
2 changed files with 4 additions and 4 deletions

View File

@ -715,7 +715,7 @@ class FlatPusher
public:
FlatPusher (std::set<db::Box> *boxes) : mp_boxes (boxes) { }
void shape (const db::RecursiveShapeIterator * /*iter*/, const db::Shape &shape, const db::ICplxTrans &trans)
void shape (const db::RecursiveShapeIterator * /*iter*/, const db::Shape &shape, const db::ICplxTrans &trans, const db::Box & /*region*/, const box_tree_type * /*complex_region*/)
{
mp_boxes->insert (trans * shape.bbox ());
}
@ -938,7 +938,7 @@ public:
return true;
}
virtual void shape (const db::RecursiveShapeIterator * /*iter*/, const db::Shape &shape, const db::ICplxTrans &trans)
virtual void shape (const db::RecursiveShapeIterator * /*iter*/, const db::Shape &shape, const db::ICplxTrans &trans, const db::Box & /*region*/, const box_tree_type * /*complex_region*/)
{
m_text += "shape(" + shape.to_string () + "," + tl::to_string (trans) + ")\n";
}

View File

@ -39,7 +39,6 @@ SOURCES = \
dbPolygon.cc \
dbPolygonTools.cc \
dbPropertiesRepository.cc \
dbRecursiveShapeIterator.cc \
dbRegion.cc \
dbShapeArray.cc \
dbShape.cc \
@ -54,7 +53,8 @@ SOURCES = \
dbVariableWidthPath.cc \
dbLoadLayoutOptionsTests.cc \
dbSaveLayoutOptionsTests.cc \
dbHierarchyBuilderTests.cc
dbHierarchyBuilderTests.cc \
dbRecursiveShapeIteratorTests.cc
INCLUDEPATH += $$TL_INC $$DB_INC $$GSI_INC
DEPENDPATH += $$TL_INC $$DB_INC $$GSI_INC