adding contacts
This commit is contained in:
parent
783ed6dc36
commit
c7b2c17370
|
@ -173,14 +173,21 @@ void CellWidget::drawGo(const Go* go, const BasicLayer* basicLayer, const Box& u
|
|||
const Segment* segment = dynamic_cast<const Segment*>(go);
|
||||
if (segment) {
|
||||
drawSegment(segment, basicLayer, updateArea, transformation);
|
||||
return;
|
||||
}
|
||||
const Contact* contact = dynamic_cast<const Contact*>(go);
|
||||
if (contact) {
|
||||
drawContact(contact, basicLayer, updateArea, transformation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CellWidget::drawSegment(const Segment* segment, const BasicLayer* basicLayer, const Box& updateArea, const Transformation& transformation) const {
|
||||
drawRectangle(transformation.getBox(segment->GetBoundingBox(basicLayer)));
|
||||
}
|
||||
|
||||
void CellWidget::drawContact(const Contact* contact, const BasicLayer* basicLayer, const Box& updateArea, const Transformation& transformation) const {
|
||||
drawRectangle(transformation.getBox(contact->GetBoundingBox(basicLayer)));
|
||||
}
|
||||
|
||||
void CellWidget::drawPhantoms(const Cell* cell, const H::Box& updateArea, const Transformation& transformation) const {
|
||||
for_each_instance(instance, cell->GetInstancesUnder(updateArea)) {
|
||||
|
|
|
@ -40,6 +40,7 @@ class CellWidget : public QWidget {
|
|||
void drawBoundaries(const Instance* instance, const Box& updateArea, const Transformation& transformation) const;
|
||||
void drawGo(const Go* go, const BasicLayer* basicLayer, const Box& updateArea, const Transformation& transformation) const;
|
||||
void drawSegment(const Segment* segment, const BasicLayer* basicLayer, const Box& updateArea, const Transformation& transformation) const;
|
||||
void drawContact(const Contact* contact, const BasicLayer* basicLayer, const Box& updateArea, const Transformation& transformation) const;
|
||||
void drawRectangle(const Box& box) const;
|
||||
Unit getX(int screenX) const;
|
||||
Unit getY(int screenY) const;
|
||||
|
|
Loading…
Reference in New Issue