This commit is contained in:
Miodrag Milanovic 2025-06-22 09:44:22 +02:00
parent ee7484b9f7
commit db222fa9ba
1 changed files with 35 additions and 0 deletions

View File

@ -34,6 +34,13 @@ void GateMateImpl::drawBel(std::vector<GraphicElement> &g, GraphicElement::style
el.type = GraphicElement::TYPE_BOX;
el.style = style;
switch (bel_type.index) {
case id_CPE_LT_FULL.index:
el.x1 = loc.x + 0.21;
el.x2 = el.x1 + 0.18;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.50;
g.push_back(el);
break;
case id_CPE_LT_L.index:
el.x1 = loc.x + 0.20;
el.x2 = el.x1 + 0.20;
@ -48,6 +55,34 @@ void GateMateImpl::drawBel(std::vector<GraphicElement> &g, GraphicElement::style
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_FF_L.index:
el.x1 = loc.x + 0.45;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_FF_U.index:
el.x1 = loc.x + 0.45;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.55;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_RAMIO_L.index:
el.x1 = loc.x + 0.60;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.25;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_CPE_RAMIO_U.index:
el.x1 = loc.x + 0.60;
el.x2 = el.x1 + 0.10;
el.y1 = loc.y + 0.55;
el.y2 = el.y1 + 0.20;
g.push_back(el);
break;
case id_RAM.index:
el.x1 = loc.x + 0.70;
el.x2 = el.x1 + 0.20;