* ./knik:
- Change: In GraphicKnikEngine, uses the new darken mechanism.
This commit is contained in:
parent
beae7fb97e
commit
5b06b19fd6
|
@ -78,7 +78,7 @@ namespace Knik {
|
|||
QPainter& painter = widget->getPainter();
|
||||
if ( edge->getRealOccupancy() > edge->getCapacity() ) {
|
||||
QColor color (Qt::cyan);
|
||||
painter.setPen (color.darker(widget->getDarkening()));
|
||||
painter.setPen (DisplayStyle::darken(color,widget->getDarkening()));
|
||||
}
|
||||
painter.setBrush ( Graphics::getColorScale(ColorScale::Fire).getBrush(occupancy,widget->getDarkening()) );
|
||||
painter.drawRect ( widget->dbuToDisplayRect(edge->getBoundingBox(), false) );
|
||||
|
@ -87,7 +87,7 @@ namespace Knik {
|
|||
// affichage des infos de l'arete
|
||||
if ( edge->hasInfo() ) {
|
||||
QColor color (Qt::blue);
|
||||
painter.setPen (color.darker(widget->getDarkening()));
|
||||
painter.setPen (DisplayStyle::darken(color,widget->getDarkening()));
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
font.setPointSize(10);
|
||||
|
@ -132,14 +132,14 @@ namespace Knik {
|
|||
if ( vertex ) {
|
||||
QPainter& painter = widget->getPainter();
|
||||
QColor color = Qt::darkRed;
|
||||
QPen pen (color.darker(widget->getDarkening()));
|
||||
QPen pen (DisplayStyle::darken(color,widget->getDarkening()));
|
||||
pen.setWidth(2);
|
||||
widget->setPen(pen);
|
||||
painter.drawEllipse ( widget->dbuToDisplayRect ( vertex->getBoundingBox(), false ) );
|
||||
|
||||
if ( vertex->hasInfo() ) {
|
||||
QColor color (Qt::blue);
|
||||
painter.setPen (color.darker(widget->getDarkening()));
|
||||
painter.setPen (DisplayStyle::darken(color,widget->getDarkening()));
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
font.setPointSize(10);
|
||||
|
|
|
@ -208,7 +208,7 @@ void KnikEngine::initGlobalRouting()
|
|||
if ( !_routingGraph ) {
|
||||
_timer.resetIncrease();
|
||||
_timer.start();
|
||||
cmess2 << " o Create routing graph." << endl;
|
||||
cmess2 << " o CLOSE sessionCreate routing graph." << endl;
|
||||
Cell* cell = getCell();
|
||||
_routingGraph = Graph::create ( cell, _routingGrid, _benchMode, _useSegments );
|
||||
cmess2 << " - Graph size: " << _routingGraph->getXSize()
|
||||
|
|
|
@ -425,8 +425,8 @@ namespace Knik {
|
|||
SolutionParser parser ( this, loadFileName );
|
||||
parser.load ();
|
||||
|
||||
addMeasure<double> ( getCell(), "knikT", 0.0 );
|
||||
addMeasure<size_t> ( getCell(), "knikS", 0 );
|
||||
addMeasure<double> ( getCell(), "knikT", 0.0, 8 );
|
||||
addMeasure<size_t> ( getCell(), "knikS", 0 , 8 );
|
||||
|
||||
computeSymbolicWireLength ();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue