| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package gen.lib.dotgen; |
| 47 |
import static gen.lib.cgraph.edge__c.agfstout; |
| 48 |
import static gen.lib.cgraph.edge__c.aghead; |
| 49 |
import static gen.lib.cgraph.edge__c.agnxtout; |
| 50 |
import static gen.lib.cgraph.edge__c.agtail; |
| 51 |
import static gen.lib.cgraph.node__c.agfstnode; |
| 52 |
import static gen.lib.cgraph.node__c.agnxtnode; |
| 53 |
import static gen.lib.cgraph.obj__c.agraphof; |
| 54 |
import static gen.lib.common.memory__c.zmalloc; |
| 55 |
import static gen.lib.common.routespl__c.makeStraightEdge; |
| 56 |
import static gen.lib.common.routespl__c.routepolylines; |
| 57 |
import static gen.lib.common.routespl__c.routesplines; |
| 58 |
import static gen.lib.common.routespl__c.routesplinesinit; |
| 59 |
import static gen.lib.common.routespl__c.routesplinesterm; |
| 60 |
import static gen.lib.common.routespl__c.simpleSplineRoute; |
| 61 |
import static gen.lib.common.splines__c.add_box; |
| 62 |
import static gen.lib.common.splines__c.beginpath; |
| 63 |
import static gen.lib.common.splines__c.clip_and_install; |
| 64 |
import static gen.lib.common.splines__c.endpath; |
| 65 |
import static gen.lib.common.splines__c.getsplinepoints; |
| 66 |
import static gen.lib.common.splines__c.makeSelfEdge; |
| 67 |
import static gen.lib.common.utils__c.updateBB; |
| 68 |
import static gen.lib.dotgen.cluster__c.mark_lowclusters; |
| 69 |
import static smetana.core.JUtils.EQ; |
| 70 |
import static smetana.core.JUtils.LOG2; |
| 71 |
import static smetana.core.JUtils.NEQ; |
| 72 |
import static smetana.core.JUtils.function; |
| 73 |
import static smetana.core.JUtils.qsort; |
| 74 |
import static smetana.core.JUtils.sizeof; |
| 75 |
import static smetana.core.JUtilsDebug.ENTERING; |
| 76 |
import static smetana.core.JUtilsDebug.LEAVING; |
| 77 |
import static smetana.core.Macro.ABS; |
| 78 |
import static smetana.core.Macro.AGSEQ; |
| 79 |
import static smetana.core.Macro.ALLOC_allocated_ST_Agedge_s; |
| 80 |
import static smetana.core.Macro.BETWEEN; |
| 81 |
import static smetana.core.Macro.ED_adjacent; |
| 82 |
import static smetana.core.Macro.ED_edge_type; |
| 83 |
import static smetana.core.Macro.ED_head_port; |
| 84 |
import static smetana.core.Macro.ED_label; |
| 85 |
import static smetana.core.Macro.ED_spl; |
| 86 |
import static smetana.core.Macro.ED_tail_port; |
| 87 |
import static smetana.core.Macro.ED_to_orig; |
| 88 |
import static smetana.core.Macro.ED_to_virt; |
| 89 |
import static smetana.core.Macro.ED_tree_index; |
| 90 |
import static smetana.core.Macro.GD_bb; |
| 91 |
import static smetana.core.Macro.GD_flags; |
| 92 |
import static smetana.core.Macro.GD_flip; |
| 93 |
import static smetana.core.Macro.GD_has_labels; |
| 94 |
import static smetana.core.Macro.GD_maxrank; |
| 95 |
import static smetana.core.Macro.GD_minrank; |
| 96 |
import static smetana.core.Macro.GD_nlist; |
| 97 |
import static smetana.core.Macro.GD_nodesep; |
| 98 |
import static smetana.core.Macro.GD_rank; |
| 99 |
import static smetana.core.Macro.GD_ranksep; |
| 100 |
import static smetana.core.Macro.MAKEFWDEDGE; |
| 101 |
import static smetana.core.Macro.MAX; |
| 102 |
import static smetana.core.Macro.MIN; |
| 103 |
import static smetana.core.Macro.M_PI; |
| 104 |
import static smetana.core.Macro.N; |
| 105 |
import static smetana.core.Macro.ND_alg; |
| 106 |
import static smetana.core.Macro.ND_clust; |
| 107 |
import static smetana.core.Macro.ND_coord; |
| 108 |
import static smetana.core.Macro.ND_flat_out; |
| 109 |
import static smetana.core.Macro.ND_ht; |
| 110 |
import static smetana.core.Macro.ND_in; |
| 111 |
import static smetana.core.Macro.ND_label; |
| 112 |
import static smetana.core.Macro.ND_lw; |
| 113 |
import static smetana.core.Macro.ND_mval; |
| 114 |
import static smetana.core.Macro.ND_next; |
| 115 |
import static smetana.core.Macro.ND_node_type; |
| 116 |
import static smetana.core.Macro.ND_order; |
| 117 |
import static smetana.core.Macro.ND_other; |
| 118 |
import static smetana.core.Macro.ND_out; |
| 119 |
import static smetana.core.Macro.ND_rank; |
| 120 |
import static smetana.core.Macro.ND_rw; |
| 121 |
import static smetana.core.Macro.NOT; |
| 122 |
import static smetana.core.Macro.NOTI; |
| 123 |
import static smetana.core.Macro.ROUND; |
| 124 |
import static smetana.core.Macro.UNSUPPORTED; |
| 125 |
import h.ST_Agedge_s; |
| 126 |
import h.ST_Agedgeinfo_t; |
| 127 |
import h.ST_Agedgepair_s; |
| 128 |
import h.ST_Agnode_s; |
| 129 |
import h.ST_Agraph_s; |
| 130 |
import h.ST_Ppoly_t; |
| 131 |
import h.ST_bezier; |
| 132 |
import h.ST_boxf; |
| 133 |
import h.ST_path; |
| 134 |
import h.ST_pathend_t; |
| 135 |
import h.ST_pointf; |
| 136 |
import h.ST_port; |
| 137 |
import h.ST_rank_t; |
| 138 |
import h.ST_spline_info_t; |
| 139 |
import h.ST_splines; |
| 140 |
import h.attr_state_t; |
| 141 |
import smetana.core.Memory; |
| 142 |
import smetana.core.Z; |
| 143 |
import smetana.core.__ptr__; |
| 144 |
|
| 145 |
public class dotsplines__c { |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
public static Object pointof(Object... arg) { |
| 387 |
UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); |
| 388 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 389 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 390 |
UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); |
| 391 |
UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); |
| 392 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 393 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 394 |
|
| 395 |
throw new UnsupportedOperationException(); |
| 396 |
} |
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
public static ST_pointf pointfof(double x, double y) { |
| 404 |
|
| 405 |
return pointfof_w_(x, y).copy(); |
| 406 |
} |
| 407 |
private static ST_pointf pointfof_w_(double x, double y) { |
| 408 |
ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof"); |
| 409 |
try { |
| 410 |
final ST_pointf r = new ST_pointf(); |
| 411 |
r.setDouble("x", x); |
| 412 |
r.setDouble("y", y); |
| 413 |
return r; |
| 414 |
} finally { |
| 415 |
LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof"); |
| 416 |
} |
| 417 |
} |
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
public static Object boxof(Object... arg) { |
| 425 |
UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); |
| 426 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 427 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 428 |
UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); |
| 429 |
UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); |
| 430 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 431 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 432 |
|
| 433 |
throw new UnsupportedOperationException(); |
| 434 |
} |
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
public static ST_boxf boxfof(double llx, double lly, double urx, double ury) { |
| 442 |
|
| 443 |
return boxfof_w_(llx, lly, urx, ury).copy(); |
| 444 |
} |
| 445 |
private static ST_boxf boxfof_w_(double llx, double lly, double urx, double ury) { |
| 446 |
ENTERING("1vvsta5i8of59frav6uymguav","boxfof"); |
| 447 |
try { |
| 448 |
final ST_boxf b = new ST_boxf(); |
| 449 |
b.LL.x = llx; |
| 450 |
b.LL.y = lly; |
| 451 |
b.UR.x = urx; |
| 452 |
b.UR.y = ury; |
| 453 |
return b; |
| 454 |
} finally { |
| 455 |
LEAVING("1vvsta5i8of59frav6uymguav","boxfof"); |
| 456 |
} |
| 457 |
} |
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
|
| 464 |
public static Object add_point(Object... arg) { |
| 465 |
UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); |
| 466 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 467 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 468 |
UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); |
| 469 |
UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); |
| 470 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 471 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 472 |
|
| 473 |
throw new UnsupportedOperationException(); |
| 474 |
} |
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) { |
| 482 |
|
| 483 |
return add_pointf_w_(p.copy(), q.copy()).copy(); |
| 484 |
} |
| 485 |
private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) { |
| 486 |
ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); |
| 487 |
try { |
| 488 |
final ST_pointf r = new ST_pointf(); |
| 489 |
r.setDouble("x", p.x + q.x); |
| 490 |
r.setDouble("y", p.y + q.y); |
| 491 |
return r; |
| 492 |
} finally { |
| 493 |
LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); |
| 494 |
} |
| 495 |
} |
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
public static Object sub_point(Object... arg) { |
| 503 |
UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); |
| 504 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 505 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 506 |
UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); |
| 507 |
UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); |
| 508 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 509 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 510 |
|
| 511 |
throw new UnsupportedOperationException(); |
| 512 |
} |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
public static Object sub_pointf(Object... arg) { |
| 520 |
UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); |
| 521 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 522 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 523 |
UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); |
| 524 |
UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); |
| 525 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 526 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 527 |
|
| 528 |
throw new UnsupportedOperationException(); |
| 529 |
} |
| 530 |
|
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
public static Object mid_point(Object... arg) { |
| 537 |
UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); |
| 538 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 539 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 540 |
UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); |
| 541 |
UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); |
| 542 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 543 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 544 |
|
| 545 |
throw new UnsupportedOperationException(); |
| 546 |
} |
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
public static Object mid_pointf(Object... arg) { |
| 554 |
UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); |
| 555 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 556 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 557 |
UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); |
| 558 |
UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); |
| 559 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 560 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 561 |
|
| 562 |
throw new UnsupportedOperationException(); |
| 563 |
} |
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
public static Object interpolate_pointf(Object... arg) { |
| 571 |
UNSUPPORTED("894yimn33kmtm454llwdaotu8"); |
| 572 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 573 |
UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); |
| 574 |
UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); |
| 575 |
UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); |
| 576 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 577 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 578 |
|
| 579 |
throw new UnsupportedOperationException(); |
| 580 |
} |
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
|
| 585 |
|
| 586 |
|
| 587 |
public static Object exch_xy(Object... arg) { |
| 588 |
UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); |
| 589 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 590 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 591 |
UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); |
| 592 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 593 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 594 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 595 |
|
| 596 |
throw new UnsupportedOperationException(); |
| 597 |
} |
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
public static Object exch_xyf(Object... arg) { |
| 605 |
UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); |
| 606 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 607 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 608 |
UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); |
| 609 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 610 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 611 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 612 |
|
| 613 |
throw new UnsupportedOperationException(); |
| 614 |
} |
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
public static Object box_bb(Object... arg) { |
| 622 |
UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); |
| 623 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 624 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 625 |
UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); |
| 626 |
UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); |
| 627 |
UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); |
| 628 |
UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); |
| 629 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 630 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 631 |
|
| 632 |
throw new UnsupportedOperationException(); |
| 633 |
} |
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
public static Object boxf_bb(Object... arg) { |
| 641 |
UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); |
| 642 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 643 |
UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); |
| 644 |
UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); |
| 645 |
UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); |
| 646 |
UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); |
| 647 |
UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); |
| 648 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 649 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 650 |
|
| 651 |
throw new UnsupportedOperationException(); |
| 652 |
} |
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
public static Object box_intersect(Object... arg) { |
| 660 |
UNSUPPORTED("34gv28cldst09bl71itjgviue"); |
| 661 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 662 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 663 |
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); |
| 664 |
UNSUPPORTED("3uv943c2f82yuif249pf5azob"); |
| 665 |
UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); |
| 666 |
UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); |
| 667 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 668 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 669 |
|
| 670 |
throw new UnsupportedOperationException(); |
| 671 |
} |
| 672 |
|
| 673 |
|
| 674 |
|
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
public static Object boxf_intersect(Object... arg) { |
| 679 |
UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); |
| 680 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 681 |
UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); |
| 682 |
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); |
| 683 |
UNSUPPORTED("3uv943c2f82yuif249pf5azob"); |
| 684 |
UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); |
| 685 |
UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); |
| 686 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 687 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 688 |
|
| 689 |
throw new UnsupportedOperationException(); |
| 690 |
} |
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
public static Object box_overlap(Object... arg) { |
| 698 |
UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); |
| 699 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 700 |
UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); |
| 701 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 702 |
|
| 703 |
throw new UnsupportedOperationException(); |
| 704 |
} |
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
public static Object boxf_overlap(Object... arg) { |
| 712 |
UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); |
| 713 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 714 |
UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); |
| 715 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 716 |
|
| 717 |
throw new UnsupportedOperationException(); |
| 718 |
} |
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
|
| 725 |
public static Object box_contains(Object... arg) { |
| 726 |
UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); |
| 727 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 728 |
UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); |
| 729 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 730 |
|
| 731 |
throw new UnsupportedOperationException(); |
| 732 |
} |
| 733 |
|
| 734 |
|
| 735 |
|
| 736 |
|
| 737 |
|
| 738 |
|
| 739 |
public static Object boxf_contains(Object... arg) { |
| 740 |
UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); |
| 741 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 742 |
UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); |
| 743 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 744 |
|
| 745 |
throw new UnsupportedOperationException(); |
| 746 |
} |
| 747 |
|
| 748 |
|
| 749 |
|
| 750 |
|
| 751 |
|
| 752 |
|
| 753 |
public static Object perp(Object... arg) { |
| 754 |
UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); |
| 755 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 756 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 757 |
UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); |
| 758 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 759 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 760 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 761 |
|
| 762 |
throw new UnsupportedOperationException(); |
| 763 |
} |
| 764 |
|
| 765 |
|
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
public static Object scale(Object... arg) { |
| 771 |
UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); |
| 772 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 773 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 774 |
UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); |
| 775 |
UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); |
| 776 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 777 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 778 |
|
| 779 |
throw new UnsupportedOperationException(); |
| 780 |
} |
| 781 |
|
| 782 |
|
| 783 |
|
| 784 |
|
| 785 |
|
| 786 |
|
| 787 |
|
| 788 |
|
| 789 |
|
| 790 |
|
| 791 |
public static ST_Agedge_s getmainedge(ST_Agedge_s e) { |
| 792 |
ENTERING("dobhmc46zwtvv8rg3ywntl91j","getmainedge"); |
| 793 |
try { |
| 794 |
ST_Agedge_s le = e; |
| 795 |
while (ED_to_virt(le)!=null) |
| 796 |
le = ED_to_virt(le); |
| 797 |
while (ED_to_orig(le)!=null) |
| 798 |
le = ED_to_orig(le); |
| 799 |
return le; |
| 800 |
} finally { |
| 801 |
LEAVING("dobhmc46zwtvv8rg3ywntl91j","getmainedge"); |
| 802 |
} |
| 803 |
} |
| 804 |
|
| 805 |
|
| 806 |
|
| 807 |
|
| 808 |
|
| 809 |
|
| 810 |
public static boolean spline_merge(ST_Agnode_s n) { |
| 811 |
ENTERING("ddeny5ht7w8b16ztj5zt840ld","spline_merge"); |
| 812 |
try { |
| 813 |
return ((ND_node_type(n) == 1) |
| 814 |
&& ((ND_in(n).size > 1) || (ND_out(n).size > 1))); |
| 815 |
} finally { |
| 816 |
LEAVING("ddeny5ht7w8b16ztj5zt840ld","spline_merge"); |
| 817 |
} |
| 818 |
} |
| 819 |
|
| 820 |
|
| 821 |
|
| 822 |
|
| 823 |
|
| 824 |
|
| 825 |
public static boolean swap_ends_p(ST_Agedge_s e) { |
| 826 |
ENTERING("36ofw2qfqlh5ci8gc8cfkqgg3","swap_ends_p"); |
| 827 |
try { |
| 828 |
while (ED_to_orig(e)!=null) |
| 829 |
e = ED_to_orig(e); |
| 830 |
if (ND_rank(aghead(e)) > ND_rank(agtail(e))) |
| 831 |
return false; |
| 832 |
if (ND_rank(aghead(e)) < ND_rank(agtail(e))) |
| 833 |
return NOT(false); |
| 834 |
if (ND_order(aghead(e)) >= ND_order(agtail(e))) |
| 835 |
return false; |
| 836 |
return NOT(false); |
| 837 |
} finally { |
| 838 |
LEAVING("36ofw2qfqlh5ci8gc8cfkqgg3","swap_ends_p"); |
| 839 |
} |
| 840 |
} |
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
public static int portcmp(final ST_port p0, final ST_port p1) { |
| 857 |
|
| 858 |
return portcmp_w_(p0.copy(), p1.copy()); |
| 859 |
} |
| 860 |
private static int portcmp_w_(final ST_port p0, final ST_port p1) { |
| 861 |
ENTERING("3krohso3quojiv4fveh1en7o6","portcmp"); |
| 862 |
try { |
| 863 |
int rv; |
| 864 |
if (p1.defined == 0) |
| 865 |
return (p0.defined!=0 ? 1 : 0); |
| 866 |
if (p0.defined == 0) |
| 867 |
return -1; |
| 868 |
rv = (int) (p0.p.x - p1.p.x); |
| 869 |
if (rv == 0) |
| 870 |
rv = (int) (p0.p.y - p1.p.y); |
| 871 |
return rv; |
| 872 |
} finally { |
| 873 |
LEAVING("3krohso3quojiv4fveh1en7o6","portcmp"); |
| 874 |
} |
| 875 |
} |
| 876 |
|
| 877 |
|
| 878 |
|
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
public static void swap_bezier(ST_bezier.Array2 old, ST_bezier.Array2 new_) { |
| 883 |
ENTERING("10wbtt4gwnxgqutinpj4ymjpk","swap_bezier"); |
| 884 |
try { |
| 885 |
ST_pointf.Array list; |
| 886 |
ST_pointf.Array lp; |
| 887 |
ST_pointf.Array olp; |
| 888 |
int i, sz; |
| 889 |
sz = old.getStruct().size; |
| 890 |
list = new ST_pointf.Array(sz); |
| 891 |
lp = list; |
| 892 |
olp = old.getStruct().list.plus(sz - 1); |
| 893 |
for (i = 0; i < sz; i++) { |
| 894 |
lp.getStruct().___(olp.getStruct()); |
| 895 |
lp=lp.plus(1); |
| 896 |
olp=olp.plus(-1); |
| 897 |
} |
| 898 |
new_.setPtr("list", list); |
| 899 |
new_.setInt("size", sz); |
| 900 |
new_.setInt("sflag", old.getStruct().eflag); |
| 901 |
new_.setInt("eflag", old.getStruct().sflag); |
| 902 |
new_.setStruct("sp", old.getStruct().ep); |
| 903 |
new_.setStruct("ep", old.getStruct().sp); |
| 904 |
} finally { |
| 905 |
LEAVING("10wbtt4gwnxgqutinpj4ymjpk","swap_bezier"); |
| 906 |
} |
| 907 |
} |
| 908 |
|
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
public static void swap_spline(ST_splines s) { |
| 915 |
ENTERING("3256l3e2huarsy29dd97vqj85","swap_spline"); |
| 916 |
try { |
| 917 |
ST_bezier.Array2 list; |
| 918 |
ST_bezier.Array2 lp; |
| 919 |
ST_bezier.Array2 olp; |
| 920 |
int i, sz; |
| 921 |
sz = s.size; |
| 922 |
list = new ST_bezier.Array2(sz); |
| 923 |
lp = list; |
| 924 |
olp = s.list.plus(sz - 1); |
| 925 |
for (i = 0; i < sz; i++) { |
| 926 |
swap_bezier(olp, lp); |
| 927 |
olp = olp.plus(-1); |
| 928 |
lp = lp.plus(1); |
| 929 |
} |
| 930 |
|
| 931 |
for (i = 0; i < sz; i++) |
| 932 |
Memory.free(((ST_bezier)s.list.get(i)).getPtr().list); |
| 933 |
Memory.free(s.list); |
| 934 |
s.list = (ST_bezier.Array2) list; |
| 935 |
} finally { |
| 936 |
LEAVING("3256l3e2huarsy29dd97vqj85","swap_spline"); |
| 937 |
} |
| 938 |
} |
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
public static void edge_normalize(ST_Agraph_s g) { |
| 946 |
ENTERING("dgkssqjj566ifra0xy7m46qsb","edge_normalize"); |
| 947 |
try { |
| 948 |
ST_Agedge_s e; |
| 949 |
ST_Agnode_s n; |
| 950 |
for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) { |
| 951 |
for (e = agfstout(g, n); e!=null; e = agnxtout(g, e)) { |
| 952 |
if ((Boolean)Z.z().sinfo.swapEnds.exe(e) && ED_spl(e)!=null) |
| 953 |
swap_spline(ED_spl(e)); |
| 954 |
} |
| 955 |
} |
| 956 |
} finally { |
| 957 |
LEAVING("dgkssqjj566ifra0xy7m46qsb","edge_normalize"); |
| 958 |
} |
| 959 |
} |
| 960 |
|
| 961 |
|
| 962 |
|
| 963 |
|
| 964 |
|
| 965 |
|
| 966 |
public static Object resetRW(Object... arg) { |
| 967 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 968 |
UNSUPPORTED("c4vqsmfolc1meewxoebfkyppx"); |
| 969 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 970 |
UNSUPPORTED("7ma9kdgag30w5ofv1niitxbro"); |
| 971 |
UNSUPPORTED("7wq24g054kmx3aw25vk5ksj4"); |
| 972 |
UNSUPPORTED("b83f20tdode2lz5a49mhmn9ei"); |
| 973 |
UNSUPPORTED("ez6pf4w4vi7z6fqq43v5i3gpv"); |
| 974 |
UNSUPPORTED("24qsh566odunv14qzj2zan7bz"); |
| 975 |
UNSUPPORTED("cgxuqwflawrd9e6dmnsh3sbwa"); |
| 976 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 977 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 978 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 979 |
|
| 980 |
throw new UnsupportedOperationException(); |
| 981 |
} |
| 982 |
|
| 983 |
|
| 984 |
|
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
public static Object setEdgeLabelPos(Object... arg) { |
| 989 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 990 |
UNSUPPORTED("7y94r9t4hf6d0ltbie4f323al"); |
| 991 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 992 |
UNSUPPORTED("7ma9kdgag30w5ofv1niitxbro"); |
| 993 |
UNSUPPORTED("1o9j4rz3dizwsgefis1axd6uw"); |
| 994 |
UNSUPPORTED("cbzhyr6lytrowd5gxn3tg000a"); |
| 995 |
UNSUPPORTED("8g62mxpap4eeua2lkn9a1iosi"); |
| 996 |
UNSUPPORTED("53rvntgqit26uu0ydhawavshp"); |
| 997 |
UNSUPPORTED("7sijld2wh9ulkpkumhl6dqqaj"); |
| 998 |
UNSUPPORTED("5ccfgna84rl1jtgmuk8nbffqy"); |
| 999 |
UNSUPPORTED("8rofnso8jnaa77ukvfpwruvyx"); |
| 1000 |
UNSUPPORTED("ak1kh1v4u9s5kof1svwbc6ssr"); |
| 1001 |
UNSUPPORTED("9ehteylkrnipypq5s9c6jjm67"); |
| 1002 |
UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); |
| 1003 |
UNSUPPORTED("15c8rehrm31gtqtwrj9r863k5"); |
| 1004 |
UNSUPPORTED("3i64wd6mr21h7x0hadumabd5r"); |
| 1005 |
UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); |
| 1006 |
UNSUPPORTED("mlknwb70zhu4paqbncp6enq9"); |
| 1007 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 1008 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1009 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1010 |
|
| 1011 |
throw new UnsupportedOperationException(); |
| 1012 |
} |
| 1013 |
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
|
| 1019 |
static void _dot_splines(ST_Agraph_s g, int normalize) |
| 1020 |
{ |
| 1021 |
ENTERING("6agx6m2qof9lg57co232lwakj","_dot_splines"); |
| 1022 |
try { |
| 1023 |
int i, j, k, n_nodes, n_edges, ind, cnt; |
| 1024 |
ST_Agnode_s n; |
| 1025 |
final ST_Agedgeinfo_t fwdedgeai = new ST_Agedgeinfo_t(), fwdedgebi = new ST_Agedgeinfo_t(); |
| 1026 |
final ST_Agedgepair_s fwdedgea = new ST_Agedgepair_s(), fwdedgeb = new ST_Agedgepair_s(); |
| 1027 |
ST_Agedge_s e, e0, e1, ea, eb, le0, le1; |
| 1028 |
ST_Agedge_s.ArrayOfStar edges; |
| 1029 |
ST_path P; |
| 1030 |
final ST_spline_info_t sd = new ST_spline_info_t(); |
| 1031 |
int et = (GD_flags(g) & (7 << 1)); |
| 1032 |
fwdedgea.out.base.setPtr("data", fwdedgeai); |
| 1033 |
fwdedgeb.out.base.setPtr("data", fwdedgebi); |
| 1034 |
if (et == (0 << 1)) return; |
| 1035 |
if (et == (2 << 1)) { |
| 1036 |
resetRW (g); |
| 1037 |
if ((GD_has_labels(g) & (1 << 0))!=0) { |
| 1038 |
UNSUPPORTED("4k888z8ymdp2b653twxc1ugbu"); |
| 1039 |
} |
| 1040 |
for (n = agfstnode (g); n!=null; n = agnxtnode(g, n)) { |
| 1041 |
for (e = agfstout(g, n); e!=null; e = agnxtout(g,e)) { |
| 1042 |
makeStraightEdge(g, e, et, Z.z().sinfo); |
| 1043 |
} |
| 1044 |
} |
| 1045 |
UNSUPPORTED("46btiag50nczzur103eqhjcup"); |
| 1046 |
} |
| 1047 |
mark_lowclusters(g); |
| 1048 |
if (routesplinesinit()!=0) return; |
| 1049 |
P = (ST_path) zmalloc(sizeof(ST_path.class)); |
| 1050 |
|
| 1051 |
sd.setInt("Splinesep", GD_nodesep(g) / 4); |
| 1052 |
sd.setInt("Multisep", GD_nodesep(g)); |
| 1053 |
edges = new ST_Agedge_s.ArrayOfStar(128); |
| 1054 |
|
| 1055 |
sd.setInt("RightBound", 0); |
| 1056 |
sd.setInt("LeftBound", 0); |
| 1057 |
n_edges = n_nodes = 0; |
| 1058 |
for (i = GD_minrank(g); i <= GD_maxrank(g); i++) { |
| 1059 |
n_nodes += GD_rank(g).get(i).n; |
| 1060 |
if ((n = (ST_Agnode_s) GD_rank(g).get(i).v.get(0))!=null) |
| 1061 |
sd.setInt("LeftBound", (int)MIN(sd.LeftBound, (ND_coord(n).x - ND_lw(n)))); |
| 1062 |
if (GD_rank(g).get(i).n!=0 && (n = (ST_Agnode_s) GD_rank(g).get(i).v.plus(GD_rank(g).get(i).n - 1).getPtr())!=null) |
| 1063 |
sd.setInt("RightBound", (int)MAX(sd.RightBound, (ND_coord(n).x + ND_rw(n)))); |
| 1064 |
sd.setInt("LeftBound", sd.LeftBound - 16); |
| 1065 |
sd.setInt("RightBound", sd.RightBound + 16); |
| 1066 |
for (j = 0; j < GD_rank(g).get(i).n; j++) { |
| 1067 |
n = (ST_Agnode_s) GD_rank(g).get(i).v.get(j); |
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
if (ND_alg(n)!=null) { |
| 1072 |
ST_Agedge_s fe = (ST_Agedge_s) ND_alg(n); |
| 1073 |
assert (ED_label(fe)!=null); |
| 1074 |
ED_label(fe).setStruct("pos", ND_coord(n)); |
| 1075 |
ED_label(fe).set= NOTI(false); |
| 1076 |
} |
| 1077 |
if ((ND_node_type(n) != 0) && |
| 1078 |
((Boolean)Z.z().sinfo.splineMerge.exe(n) == false)) |
| 1079 |
continue; |
| 1080 |
for (k = 0; (e = (ST_Agedge_s) ND_out(n).getFromList(k))!=null; k++) { |
| 1081 |
if ((ED_edge_type(e) == 4) |
| 1082 |
|| (ED_edge_type(e) == 6)) |
| 1083 |
continue; |
| 1084 |
setflags(e, 1, 16, 64); |
| 1085 |
edges.plus(n_edges++).setPtr(e); |
| 1086 |
if (n_edges % 128 == 0) |
| 1087 |
edges = ALLOC_allocated_ST_Agedge_s (edges, n_edges + 128); |
| 1088 |
} |
| 1089 |
if (ND_flat_out(n).listNotNull()) |
| 1090 |
for (k = 0; (e = (ST_Agedge_s) ND_flat_out(n).getFromList(k))!=null; k++) { |
| 1091 |
setflags(e, 2, 0, 128); |
| 1092 |
edges.plus(n_edges++).setPtr(e); |
| 1093 |
if (n_edges % 128 == 0) |
| 1094 |
edges = ALLOC_allocated_ST_Agedge_s (edges, n_edges + 128); |
| 1095 |
} |
| 1096 |
if (ND_other(n).listNotNull()) { |
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
if (ND_node_type(n) == 0) { |
| 1103 |
double tmp = ND_rw(n); |
| 1104 |
ND_rw(n, ND_mval(n)); |
| 1105 |
ND_mval(n, tmp); |
| 1106 |
} |
| 1107 |
for (k = 0; (e = (ST_Agedge_s) ND_other(n).getFromList(k))!=null; k++) { |
| 1108 |
setflags(e, 0, 0, 128); |
| 1109 |
edges.plus(n_edges++).setPtr(e); |
| 1110 |
if (n_edges % 128 == 0) |
| 1111 |
edges = ALLOC_allocated_ST_Agedge_s (edges, n_edges + 128); |
| 1112 |
} |
| 1113 |
} |
| 1114 |
} |
| 1115 |
} |
| 1116 |
|
| 1117 |
|
| 1118 |
|
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
LOG2("_dot_splines::n_edges="+n_edges); |
| 1123 |
qsort(edges, |
| 1124 |
n_edges, |
| 1125 |
function(dotsplines__c.class, "edgecmp")); |
| 1126 |
|
| 1127 |
P.boxes = ST_boxf.malloc(n_nodes + 20 * 2 * 9); |
| 1128 |
sd.Rank_box = ST_boxf.malloc(i); |
| 1129 |
if (et == (1 << 1)) { |
| 1130 |
|
| 1131 |
for (n = GD_nlist(g); n!=null; n = ND_next(n)) { |
| 1132 |
if ((ND_node_type(n) == 1) && (ND_label(n)!=null)) { |
| 1133 |
place_vnlabel(n); |
| 1134 |
} |
| 1135 |
} |
| 1136 |
} |
| 1137 |
for (i = 0; i < n_edges;) { |
| 1138 |
boolean havePorts; |
| 1139 |
ind = i; |
| 1140 |
le0 = getmainedge((e0 = (ST_Agedge_s) edges.plus(i++).getPtr())); |
| 1141 |
if (ED_tail_port(e0).defined!=0 || ED_head_port(e0).defined!=0) { |
| 1142 |
havePorts = NOT(false); |
| 1143 |
ea = e0; |
| 1144 |
} else { |
| 1145 |
havePorts = false; |
| 1146 |
ea = le0; |
| 1147 |
} |
| 1148 |
if ((ED_tree_index(ea) & 32)!=0) { |
| 1149 |
MAKEFWDEDGE(fwdedgea.out, ea); |
| 1150 |
ea = (ST_Agedge_s) fwdedgea.out; |
| 1151 |
} |
| 1152 |
for (cnt = 1; i < n_edges; cnt++, i++) { |
| 1153 |
if (NEQ(le0, (le1 = getmainedge((e1 = (ST_Agedge_s) edges.get(i)))))) |
| 1154 |
break; |
| 1155 |
if (ED_adjacent(e0)!=0) continue; |
| 1156 |
if (ED_tail_port(e1).defined!=0 || ED_head_port(e1).defined!=0) { |
| 1157 |
if (N(havePorts)) break; |
| 1158 |
else |
| 1159 |
eb = e1; |
| 1160 |
} else { |
| 1161 |
if (havePorts) break; |
| 1162 |
else |
| 1163 |
eb = le1; |
| 1164 |
} |
| 1165 |
if ((ED_tree_index(eb) & 32)!=0) { |
| 1166 |
MAKEFWDEDGE(fwdedgeb.out, eb); |
| 1167 |
eb = (ST_Agedge_s) fwdedgeb.out; |
| 1168 |
} |
| 1169 |
if (portcmp(ED_tail_port(ea), ED_tail_port(eb))!=0) |
| 1170 |
break; |
| 1171 |
if (portcmp(ED_head_port(ea), ED_head_port(eb))!=0) |
| 1172 |
break; |
| 1173 |
if ((ED_tree_index(e0) & 15) == 2 |
| 1174 |
&& NEQ(ED_label(e0), ED_label(e1))) |
| 1175 |
break; |
| 1176 |
if ((ED_tree_index(edges.get(i)) & 64)!=0) |
| 1177 |
break; |
| 1178 |
} |
| 1179 |
if (EQ(agtail(e0), aghead(e0))) { |
| 1180 |
int b, sizey, r; |
| 1181 |
n = agtail(e0); |
| 1182 |
r = ND_rank(n); |
| 1183 |
if (r == GD_maxrank(g)) { |
| 1184 |
if (r > 0) |
| 1185 |
sizey = (int) (ND_coord(GD_rank(g).get(r-1).v.get(0)).y - ND_coord(n).y); |
| 1186 |
else |
| 1187 |
sizey = (int) ND_ht(n); |
| 1188 |
} |
| 1189 |
else if (r == GD_minrank(g)) { |
| 1190 |
sizey = (int)(ND_coord(n).y - ND_coord(GD_rank(g).get(r+1).v.get(0)).y); |
| 1191 |
} |
| 1192 |
else { |
| 1193 |
int upy = (int) (ND_coord(GD_rank(g).get(r-1).v.get(0)).y - ND_coord(n).y); |
| 1194 |
int dwny = (int) (ND_coord(n).y - ND_coord(GD_rank(g).get(r+1).v.get(0)).y); |
| 1195 |
sizey = MIN(upy, dwny); |
| 1196 |
} |
| 1197 |
makeSelfEdge(P, edges, ind, cnt, sd.Multisep, sizey/2, Z.z().sinfo); |
| 1198 |
for (b = 0; b < cnt; b++) { |
| 1199 |
e = (ST_Agedge_s) edges.plus(ind+b).getPtr(); |
| 1200 |
if (ED_label(e)!=null) |
| 1201 |
updateBB(g, ED_label(e)); |
| 1202 |
} |
| 1203 |
} |
| 1204 |
else if (ND_rank(agtail(e0)) == ND_rank(aghead(e0))) { |
| 1205 |
make_flat_edge(g, sd, P, edges, ind, cnt, et); |
| 1206 |
} |
| 1207 |
else |
| 1208 |
make_regular_edge(g, sd, P, edges, ind, cnt, et); |
| 1209 |
} |
| 1210 |
|
| 1211 |
for (n = GD_nlist(g); n!=null; n = ND_next(n)) { |
| 1212 |
if ((ND_node_type(n) == 1) && (ND_label(n))!=null) { |
| 1213 |
place_vnlabel(n); |
| 1214 |
updateBB(g, ND_label(n)); |
| 1215 |
} |
| 1216 |
} |
| 1217 |
|
| 1218 |
|
| 1219 |
if (normalize!=0) |
| 1220 |
edge_normalize(g); |
| 1221 |
finish : |
| 1222 |
|
| 1223 |
|
| 1224 |
if ((Z.z().E_headlabel!=null || Z.z().E_taillabel!=null) && (Z.z().E_labelangle!=null || Z.z().E_labeldistance!=null)) { |
| 1225 |
UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); |
| 1226 |
UNSUPPORTED("54jm4bbgzyl0txauszo1mappu"); |
| 1227 |
UNSUPPORTED("dw8yu56thd0wpolmtby8r5doo"); |
| 1228 |
UNSUPPORTED("4h39n1vkqyqszgmg2o7d2pw7z"); |
| 1229 |
UNSUPPORTED("ex7h0x60y0l4oi3dsqg7sfk1t"); |
| 1230 |
UNSUPPORTED("9u960ou1xs0cdsdn0qe8a13ye"); |
| 1231 |
UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); |
| 1232 |
UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); |
| 1233 |
UNSUPPORTED("cqi8doquf015wo1bw8on36qct"); |
| 1234 |
UNSUPPORTED("6gnq0yj07udpwxbuc86k8yysb"); |
| 1235 |
UNSUPPORTED("ejz8yrj8mh0l0gdl5zeaht1ex"); |
| 1236 |
UNSUPPORTED("9pdg7peez077ldl84zfh73o1w"); |
| 1237 |
UNSUPPORTED("6jup6d9gfnx4b1wptmtw09n6w"); |
| 1238 |
UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); |
| 1239 |
UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); |
| 1240 |
UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); |
| 1241 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 1242 |
} |
| 1243 |
|
| 1244 |
if (et != (2 << 1)) { |
| 1245 |
Memory.free(edges); |
| 1246 |
Memory.free(P.boxes); |
| 1247 |
Memory.free(P); |
| 1248 |
Memory.free(sd.Rank_box); |
| 1249 |
routesplinesterm(); |
| 1250 |
} |
| 1251 |
Z.z().State = 1; |
| 1252 |
Z.z().EdgeLabelsDone = 1; |
| 1253 |
} finally { |
| 1254 |
LEAVING("6agx6m2qof9lg57co232lwakj","_dot_splines"); |
| 1255 |
} |
| 1256 |
} |
| 1257 |
|
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
public static void dot_splines(ST_Agraph_s g) { |
| 1264 |
ENTERING("5n306wbdfjbfnimdo9lg6jjaa","dot_splines"); |
| 1265 |
try { |
| 1266 |
_dot_splines (g, 1); |
| 1267 |
} finally { |
| 1268 |
LEAVING("5n306wbdfjbfnimdo9lg6jjaa","dot_splines"); |
| 1269 |
} |
| 1270 |
} |
| 1271 |
|
| 1272 |
|
| 1273 |
|
| 1274 |
|
| 1275 |
|
| 1276 |
|
| 1277 |
public static void place_vnlabel(ST_Agnode_s n) { |
| 1278 |
ENTERING("8jja9ukzsq8tlb9yy7uzavg91","place_vnlabel"); |
| 1279 |
try { |
| 1280 |
final ST_pointf dimen = new ST_pointf(); |
| 1281 |
double width; |
| 1282 |
ST_Agedge_s e; |
| 1283 |
if (ND_in(n).size == 0) |
| 1284 |
return; |
| 1285 |
for (e = (ST_Agedge_s) ND_out(n).getFromList(0); ED_edge_type(e) != 0; |
| 1286 |
e = ED_to_orig(e)); |
| 1287 |
dimen.___(ED_label(e).dimen); |
| 1288 |
width = GD_flip(agraphof(n))!=0 ? dimen.y : dimen.x; |
| 1289 |
ED_label(e).pos.setDouble("x", ND_coord(n).x + width / 2.0); |
| 1290 |
ED_label(e).pos.setDouble("y", ND_coord(n).y); |
| 1291 |
ED_label(e).set= NOTI(false); |
| 1292 |
} finally { |
| 1293 |
LEAVING("8jja9ukzsq8tlb9yy7uzavg91","place_vnlabel"); |
| 1294 |
} |
| 1295 |
} |
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
|
| 1300 |
|
| 1301 |
|
| 1302 |
public static void setflags(ST_Agedge_s e, int hint1, int hint2, int f3) { |
| 1303 |
ENTERING("598jn37hjkm7j0kcg2nmdvlwq","setflags"); |
| 1304 |
try { |
| 1305 |
int f1, f2; |
| 1306 |
if (hint1 != 0) |
| 1307 |
f1 = hint1; |
| 1308 |
else { |
| 1309 |
if (EQ(agtail(e), aghead(e))) |
| 1310 |
if (ED_tail_port(e).defined!=0 || ED_head_port(e).defined!=0) |
| 1311 |
f1 = 4; |
| 1312 |
else |
| 1313 |
f1 = 8; |
| 1314 |
else if (ND_rank(agtail(e)) == ND_rank(aghead(e))) |
| 1315 |
f1 = 2; |
| 1316 |
else |
| 1317 |
f1 = 1; |
| 1318 |
} |
| 1319 |
if (hint2 != 0) |
| 1320 |
f2 = hint2; |
| 1321 |
else { |
| 1322 |
if (f1 == 1) |
| 1323 |
f2 = (ND_rank(agtail(e)) < ND_rank(aghead(e))) ? 16 : 32; |
| 1324 |
else if (f1 == 2) |
| 1325 |
f2 = (ND_order(agtail(e)) < ND_order(aghead(e))) ? 16 : 32; |
| 1326 |
else |
| 1327 |
f2 = 16; |
| 1328 |
} |
| 1329 |
ED_tree_index(e, (f1 | f2 | f3)); |
| 1330 |
} finally { |
| 1331 |
LEAVING("598jn37hjkm7j0kcg2nmdvlwq","setflags"); |
| 1332 |
} |
| 1333 |
} |
| 1334 |
|
| 1335 |
|
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
public static int edgecmp(__ptr__ ptr0, __ptr__ ptr1) { |
| 1341 |
ENTERING("1nf1s6wkn35ptjn884ii56fh","edgecmp"); |
| 1342 |
try { |
| 1343 |
final ST_Agedgeinfo_t fwdedgeai = new ST_Agedgeinfo_t(), fwdedgebi = new ST_Agedgeinfo_t(); |
| 1344 |
final ST_Agedgepair_s fwdedgea = new ST_Agedgepair_s(), fwdedgeb = new ST_Agedgepair_s(); |
| 1345 |
ST_Agedge_s e0, e1, ea, eb, le0, le1; |
| 1346 |
int et0, et1, v0, v1, rv; |
| 1347 |
double t0, t1; |
| 1348 |
fwdedgea.out.base.setPtr("data", fwdedgeai); |
| 1349 |
fwdedgeb.out.base.setPtr("data", fwdedgebi); |
| 1350 |
e0 = (ST_Agedge_s) ptr0.getPtr(); |
| 1351 |
e1 = (ST_Agedge_s) ptr1.getPtr(); |
| 1352 |
et0 = ED_tree_index(e0) & 15; |
| 1353 |
et1 = ED_tree_index(e1) & 15; |
| 1354 |
if (et0 != et1) |
| 1355 |
return (et1 - et0); |
| 1356 |
le0 = getmainedge(e0); |
| 1357 |
le1 = getmainedge(e1); |
| 1358 |
t0 = ND_rank(agtail(le0)) - ND_rank(aghead(le0)); |
| 1359 |
t1 = ND_rank(agtail(le1)) - ND_rank(aghead(le1)); |
| 1360 |
v0 = ABS((int)t0); |
| 1361 |
v1 = ABS((int)t1); |
| 1362 |
if (v0 != v1) |
| 1363 |
return (v0 - v1); |
| 1364 |
t0 = ND_coord(agtail(le0)).x - ND_coord(aghead(le0)).x; |
| 1365 |
t1 = ND_coord(agtail(le1)).x - ND_coord(aghead(le1)).x; |
| 1366 |
v0 = ABS((int)t0); |
| 1367 |
v1 = ABS((int)t1); |
| 1368 |
if (v0 != v1) |
| 1369 |
return (v0 - v1); |
| 1370 |
|
| 1371 |
if (AGSEQ(le0) != AGSEQ(le1)) |
| 1372 |
return (AGSEQ(le0) - AGSEQ(le1)); |
| 1373 |
ea = (ED_tail_port(e0).defined!=0 || ED_head_port(e0).defined!=0) ? e0 : le0; |
| 1374 |
if ((ED_tree_index(ea) & 32)!=0) { |
| 1375 |
MAKEFWDEDGE(fwdedgea.out, ea); |
| 1376 |
ea = (ST_Agedge_s) fwdedgea.out; |
| 1377 |
} |
| 1378 |
eb = (ED_tail_port(e1).defined!=0 || ED_head_port(e1).defined!=0) ? e1 : le1; |
| 1379 |
if ((ED_tree_index(eb) & 32)!=0) { |
| 1380 |
MAKEFWDEDGE(fwdedgeb.out, eb); |
| 1381 |
eb = (ST_Agedge_s) fwdedgeb.out; |
| 1382 |
} |
| 1383 |
if ((rv = portcmp(ED_tail_port(ea), ED_tail_port(eb)))!=0) |
| 1384 |
return rv; |
| 1385 |
if ((rv = portcmp(ED_head_port(ea), ED_head_port(eb)))!=0) |
| 1386 |
return rv; |
| 1387 |
et0 = ED_tree_index(e0) & 192; |
| 1388 |
et1 = ED_tree_index(e1) & 192; |
| 1389 |
if (et0 != et1) |
| 1390 |
return (et0 - et1); |
| 1391 |
if (et0 == 2 && NEQ(ED_label(e0), ED_label(e1))) |
| 1392 |
UNSUPPORTED("return (int) (ED_label(e0) - ED_label(e1))"); |
| 1393 |
return (AGSEQ(e0) - AGSEQ(e1)); |
| 1394 |
} finally { |
| 1395 |
LEAVING("1nf1s6wkn35ptjn884ii56fh","edgecmp"); |
| 1396 |
} |
| 1397 |
} |
| 1398 |
|
| 1399 |
|
| 1400 |
|
| 1401 |
|
| 1402 |
|
| 1403 |
|
| 1404 |
public static Object setState(Object... arg) { |
| 1405 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 1406 |
UNSUPPORTED("7ovh16jwyjc9wtu0rfxnlws9r"); |
| 1407 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1408 |
UNSUPPORTED("1ko3jd94xpoli03tk73ardy84"); |
| 1409 |
UNSUPPORTED("3ibgalw3fchq736xx1ozbvh27"); |
| 1410 |
UNSUPPORTED("e9yatqfh98i71w3v1jcx1agi9"); |
| 1411 |
UNSUPPORTED("57rkvwknyk9urdhck24todttg"); |
| 1412 |
UNSUPPORTED("4y5i0lqx0ze46l88ehzdh2x1z"); |
| 1413 |
UNSUPPORTED("3yryq1e1hmam5hqciu93ywjj2"); |
| 1414 |
UNSUPPORTED("1n91lxusirg2v758j4v9o9hcg"); |
| 1415 |
UNSUPPORTED("1ssj9fq3o1sm21ggttj4r3mo0"); |
| 1416 |
UNSUPPORTED("45ntpz46gx7j2hfu2r6ceescw"); |
| 1417 |
UNSUPPORTED("6vxi0wxhhjg065ishw2vebsqv"); |
| 1418 |
UNSUPPORTED("aqu557ovwt2k4j894b5p9dssa"); |
| 1419 |
UNSUPPORTED("6shb2vynxxgck2x8e8oz63ye"); |
| 1420 |
UNSUPPORTED("84eq22wy1zlxwofo8cwwbddbb"); |
| 1421 |
UNSUPPORTED("czndn89byb90jujvx2sudb6d6"); |
| 1422 |
UNSUPPORTED("385rz6p4kom75dmgvepqmxlrq"); |
| 1423 |
UNSUPPORTED("397fs88n9xnlcqo4z8at7j66s"); |
| 1424 |
UNSUPPORTED("f2nu6sif9lmukmlj2um7gnxns"); |
| 1425 |
UNSUPPORTED("3ctu9gb3ojun885w9ymnch0er"); |
| 1426 |
UNSUPPORTED("qiafl7ru9bq54qol6lov5rgm"); |
| 1427 |
UNSUPPORTED("ap9hj5xd4dfmwws8egpgvk5ti"); |
| 1428 |
UNSUPPORTED("ctvaloqgyn45in0jdkkvdpf6g"); |
| 1429 |
UNSUPPORTED("75ey3ud905155tfmw9zapeawj"); |
| 1430 |
UNSUPPORTED("19bnzpge8znnwzna8ub6otjze"); |
| 1431 |
UNSUPPORTED("6242e8neunx553zs7jb52e2i3"); |
| 1432 |
UNSUPPORTED("1rjcall3fixy49t0s4bcdgoho"); |
| 1433 |
UNSUPPORTED("1bj2vtyz3gettntmktngyjv02"); |
| 1434 |
UNSUPPORTED("1mj5q5f1eft9otmsuyiadl54z"); |
| 1435 |
UNSUPPORTED("5lkkhmgpur2i2arkoxbpb8lse"); |
| 1436 |
UNSUPPORTED("3c9tzymzuj2wkftyepa2epzur"); |
| 1437 |
UNSUPPORTED("9urvz64idw6yth9938puegx1d"); |
| 1438 |
UNSUPPORTED("9wqn3lttroloie8t4urgw9dwl"); |
| 1439 |
UNSUPPORTED("7aovr97vmuic712quqt6n4gkd"); |
| 1440 |
UNSUPPORTED("dc9knw1esnnr7j77so6k8zblk"); |
| 1441 |
UNSUPPORTED("eoium8gqo2cgsjv87c20ixx5k"); |
| 1442 |
UNSUPPORTED("aq6is6cduc5wvclu1hjacuyk0"); |
| 1443 |
UNSUPPORTED("3w13k0cqxkk8gniu6ydy3qii6"); |
| 1444 |
UNSUPPORTED("32p2drvqb6h9n0118du912gv0"); |
| 1445 |
UNSUPPORTED("e2hsbuo1kd2fghtopje0lfp2b"); |
| 1446 |
UNSUPPORTED("74w0uzukx3derbgpgi60dzyyg"); |
| 1447 |
UNSUPPORTED("936fjorw02qiz50qpj7y6en2m"); |
| 1448 |
UNSUPPORTED("2l0v2tecrgmws3to99rcimxzm"); |
| 1449 |
UNSUPPORTED("93dfyiz6pxq59j6ujx97hdd0c"); |
| 1450 |
UNSUPPORTED("7kovxag1wgr874sgxwpz7ls6a"); |
| 1451 |
UNSUPPORTED("295z0g5v309fbrrdopfy66rf4"); |
| 1452 |
UNSUPPORTED("3uo53r92k5fuzy9gb2i1k7612"); |
| 1453 |
UNSUPPORTED("4oq1f4cnu0hk0xm34kx9m79le"); |
| 1454 |
UNSUPPORTED("aoqamti27wg8hvpyho5xmdc9"); |
| 1455 |
UNSUPPORTED("8jzaf5sdfgbpqx8y0squconvr"); |
| 1456 |
UNSUPPORTED("25csaeghkl1rd5cha609fm2vm"); |
| 1457 |
UNSUPPORTED("d9ivs4hv5xdhsxwh8oz1dri02"); |
| 1458 |
UNSUPPORTED("djpd3vd7suatk0n76mplhzog4"); |
| 1459 |
UNSUPPORTED("8fy5jrgw22q72jvvjmqh6ajjb"); |
| 1460 |
UNSUPPORTED("93a15wlfj0tmijeeyd1qb12v6"); |
| 1461 |
UNSUPPORTED("2l6gmyi1pz4cv9i29k4u3mpjf"); |
| 1462 |
UNSUPPORTED("dcp5qxpq37yer9cipch7q2oc4"); |
| 1463 |
UNSUPPORTED("133ni5qwdb96od0wcma7hj05h"); |
| 1464 |
UNSUPPORTED("cq9n4kf29qgqy1ll6gandld7f"); |
| 1465 |
UNSUPPORTED("2l9pqb0sug1sr8dlojy1gvik0"); |
| 1466 |
UNSUPPORTED("9a173t42nyif5cx0ee6c4qos2"); |
| 1467 |
UNSUPPORTED("pu58ta2e8cevjt84brxtyecs"); |
| 1468 |
UNSUPPORTED("2p7j1fghgsib6tkic2cc1t601"); |
| 1469 |
UNSUPPORTED("49eok3z6e4piel4m6f7rk8fb6"); |
| 1470 |
UNSUPPORTED("8cyc904mtcb0zlwybzrqxujrv"); |
| 1471 |
UNSUPPORTED("1ggb495lty2zumaw3qh2d3ssd"); |
| 1472 |
UNSUPPORTED("6hcb194pxn8upijardzdy3v2a"); |
| 1473 |
UNSUPPORTED("e1cg6m56w3uwo3m2dfdh71o5x"); |
| 1474 |
UNSUPPORTED("1gjzz1tv51zd3vsgyc6b8dfdz"); |
| 1475 |
UNSUPPORTED("42y8wmut30tkdxrxdvh5v8xtz"); |
| 1476 |
UNSUPPORTED("7jni9lzv0nagk8mnil6vsgzpt"); |
| 1477 |
UNSUPPORTED("5hshk2a2mwuk7cjxsc4mzky7g"); |
| 1478 |
UNSUPPORTED("1j63bq1sarpj53iwvo4ynyeck"); |
| 1479 |
UNSUPPORTED("7yaoaugb8cqh7ksl8w4i4utlv"); |
| 1480 |
UNSUPPORTED("15x8xrchzah7wcc5ukej42hut"); |
| 1481 |
UNSUPPORTED("dcu49fws0uvo8falspy1lno4k"); |
| 1482 |
UNSUPPORTED("bvjg1ch1pmuvfhvf5ubyrqhl3"); |
| 1483 |
UNSUPPORTED("b67lzfds2wabbxqa4qaoj0iv8"); |
| 1484 |
UNSUPPORTED("yet2s8h61hoih7vba5lhvbn"); |
| 1485 |
UNSUPPORTED("dv9ccs2r6bgkfuzvquyym1z1k"); |
| 1486 |
UNSUPPORTED("7kwmsq3m3f4oe4jyi2hzkq544"); |
| 1487 |
UNSUPPORTED("3lqtt3u3nf2945mjpkjcw6s48"); |
| 1488 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1489 |
|
| 1490 |
throw new UnsupportedOperationException(); |
| 1491 |
} |
| 1492 |
|
| 1493 |
|
| 1494 |
|
| 1495 |
|
| 1496 |
|
| 1497 |
|
| 1498 |
public static Object cloneGraph(Object... arg) { |
| 1499 |
UNSUPPORTED("9bkg8lvj5zr49zg08g7iijeg0"); |
| 1500 |
UNSUPPORTED("4uq8e6159vvwjuygnnrtonzjr"); |
| 1501 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1502 |
UNSUPPORTED("d4lkyrfdivg76lnwroshuwy1r"); |
| 1503 |
UNSUPPORTED("8scmnlh4aqjfli9hjn7snnhb2"); |
| 1504 |
UNSUPPORTED("9wn75gbfikchs3m5ip8uqbqp9"); |
| 1505 |
UNSUPPORTED("bc2kavqqh860759qs0rw39g9w"); |
| 1506 |
UNSUPPORTED("div10atae09n36x269sl208r1"); |
| 1507 |
UNSUPPORTED("41dm8ksorga6af1u82vvp2o08"); |
| 1508 |
UNSUPPORTED("dvx3r3ba8ihb3ho0irr3iflz9"); |
| 1509 |
UNSUPPORTED("8o4tyxwwt6nurmyulizd8yx4h"); |
| 1510 |
UNSUPPORTED("4azamavz8yei4klxixxjkjdzy"); |
| 1511 |
UNSUPPORTED("bl2bbfcsejbdva171i3uuah14"); |
| 1512 |
UNSUPPORTED("96jzn981deono0qtt4353wjnd"); |
| 1513 |
UNSUPPORTED("am2ry0w98859w4vlnhjmoegj2"); |
| 1514 |
UNSUPPORTED("8qqdurbqk0iszxbs1xz13bx72"); |
| 1515 |
UNSUPPORTED("dldh0wwkfscuwx8vmqd78zne6"); |
| 1516 |
UNSUPPORTED("div10atae09n36x269sl208r1"); |
| 1517 |
UNSUPPORTED("a1gxjxg6ob083fwqk6gac69va"); |
| 1518 |
UNSUPPORTED("94df1x35koj4u57phwmdtoipp"); |
| 1519 |
UNSUPPORTED("m7a4df7fb58fj3qpf7ocrnth"); |
| 1520 |
UNSUPPORTED("ehand70vpsfxy8xo2usw3sdpd"); |
| 1521 |
UNSUPPORTED("ee6l5a5uekrqgzpa1tzzvn8lu"); |
| 1522 |
UNSUPPORTED("e9gle5ohw021fnltrv101u94f"); |
| 1523 |
UNSUPPORTED("4mgrl284otjjxa13ifyvsix9o"); |
| 1524 |
UNSUPPORTED("8l0npxgg53xbodt3h5bsxaf1u"); |
| 1525 |
UNSUPPORTED("d0l2zhgn9atu49ot95sjvnjx7"); |
| 1526 |
UNSUPPORTED("2syhqyxjtl43g8k8nszcgv3qa"); |
| 1527 |
UNSUPPORTED("7ne23vf4nlppvlnjcbkj9xj7s"); |
| 1528 |
UNSUPPORTED("dbdwjxpzch7ieese5oq712h84"); |
| 1529 |
UNSUPPORTED("8e9itu32gwm54e46x9vefuuc"); |
| 1530 |
UNSUPPORTED("8d6592shcigbk3cnbs3g6zd5o"); |
| 1531 |
UNSUPPORTED("1afdsvho7rpgcscq77epwq7h0"); |
| 1532 |
UNSUPPORTED("8g7yfvh0djzbxpsk11iys8s73"); |
| 1533 |
UNSUPPORTED("84c7zokshe6lxrxoh1l48oh0b"); |
| 1534 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1535 |
|
| 1536 |
throw new UnsupportedOperationException(); |
| 1537 |
} |
| 1538 |
|
| 1539 |
|
| 1540 |
|
| 1541 |
|
| 1542 |
|
| 1543 |
|
| 1544 |
public static Object cleanupCloneGraph(Object... arg) { |
| 1545 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 1546 |
UNSUPPORTED("8l276u9l2gpbol4c2u457ic4o"); |
| 1547 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1548 |
UNSUPPORTED("81hz17qm480gekbimxzqp5917"); |
| 1549 |
UNSUPPORTED("dyp7mrvrp7pgbjcxvjp3k0rb0"); |
| 1550 |
UNSUPPORTED("8x6a3xddh4y42i73tahevx314"); |
| 1551 |
UNSUPPORTED("cr53qmp35pahyiy1lksf7pc7o"); |
| 1552 |
UNSUPPORTED("3x6ebo3n7gp5ys2ei418ehbmt"); |
| 1553 |
UNSUPPORTED("1ho97fsth1t5vvxc5xlwbtvyp"); |
| 1554 |
UNSUPPORTED("bfo2q1yt9zej3021f132mqwe6"); |
| 1555 |
UNSUPPORTED("caxxsouex07crddgxredl1u2p"); |
| 1556 |
UNSUPPORTED("etmu0sib2tphqwe1wujlnfrup"); |
| 1557 |
UNSUPPORTED("6gb56lwdjjgzcqilrpq8m22ns"); |
| 1558 |
UNSUPPORTED("7arkupsho8bk69qdlx5osz58q"); |
| 1559 |
UNSUPPORTED("8dbqaxdoyj9z0pkuwsg9vl0eu"); |
| 1560 |
UNSUPPORTED("k2wg526i4loudvbn7p6a8e68"); |
| 1561 |
UNSUPPORTED("2tux1z7sjyb58ty6c0bvgfn7u"); |
| 1562 |
UNSUPPORTED("exlraaiion456s8e3xwpxozb4"); |
| 1563 |
UNSUPPORTED("31yhqytdbu2odz0oi3cudffo1"); |
| 1564 |
UNSUPPORTED("frcohw4vy68cah25ckm1cobw"); |
| 1565 |
UNSUPPORTED("2z89ojbnte8kwtr9jotk499fc"); |
| 1566 |
UNSUPPORTED("3ujqfey1gvz17vmhn9w63qxob"); |
| 1567 |
UNSUPPORTED("atq6bae3mv1qr8egljjfsrit6"); |
| 1568 |
UNSUPPORTED("aiqf0nz6dfedq2jwgmajnranb"); |
| 1569 |
UNSUPPORTED("dt3zktdkst02y23fr3owwe9b9"); |
| 1570 |
UNSUPPORTED("6pul6vxncmyc96hnj7hoh9xlv"); |
| 1571 |
UNSUPPORTED("bbr363noiuq4fiv6dc11hrgki"); |
| 1572 |
UNSUPPORTED("5jr71bz21o8ex4piwuj7cyf35"); |
| 1573 |
UNSUPPORTED("muitbco7ytv8yr71bth3vd45"); |
| 1574 |
UNSUPPORTED("gz675ugjp8z2xgply33d6llr"); |
| 1575 |
UNSUPPORTED("3l56ed3d2ocqttxq2mwcaxrs"); |
| 1576 |
UNSUPPORTED("2fmh1t4tflmptq1d2wqygd7qt"); |
| 1577 |
UNSUPPORTED("br7qgmqsjpzi772b9wc7g00x0"); |
| 1578 |
UNSUPPORTED("cpjgwylhr8d4gvztykf36mf71"); |
| 1579 |
UNSUPPORTED("dzvcridjcoqlimn9odmlcn9ao"); |
| 1580 |
UNSUPPORTED("7wd3t9ok31e37hdqtnffwum66"); |
| 1581 |
UNSUPPORTED("bkocxpinr1crae21mcidps0"); |
| 1582 |
UNSUPPORTED("bni1bp9we328ofu8dqwnws3b8"); |
| 1583 |
UNSUPPORTED("9ni0gtudygio7exe31uyvwwxy"); |
| 1584 |
UNSUPPORTED("2ep79qyr9wgfu8hyateqngx4o"); |
| 1585 |
UNSUPPORTED("77t5uu3931h080u18f50zr0qw"); |
| 1586 |
UNSUPPORTED("1czw51da8yggj3mvb5v6dircs"); |
| 1587 |
UNSUPPORTED("60kkiysc7uy667s1kr04csskc"); |
| 1588 |
UNSUPPORTED("9wfeu3yikah30i1eq789pb1dc"); |
| 1589 |
UNSUPPORTED("2tv8es032rxzavamw0dgvm53h"); |
| 1590 |
UNSUPPORTED("ego3r1tvwrpv2hie8y9p8vq4z"); |
| 1591 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1592 |
|
| 1593 |
throw new UnsupportedOperationException(); |
| 1594 |
} |
| 1595 |
|
| 1596 |
|
| 1597 |
|
| 1598 |
|
| 1599 |
|
| 1600 |
|
| 1601 |
public static Object cloneNode(Object... arg) { |
| 1602 |
UNSUPPORTED("b9dd3satxbh59hljdxzcxecc"); |
| 1603 |
UNSUPPORTED("o807sh2podu4gxrp6mweyg3p"); |
| 1604 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1605 |
UNSUPPORTED("9mlzre34kwhn9wm44mck7e8li"); |
| 1606 |
UNSUPPORTED("21wqfabmz2qk7g2vnunyyw1n8"); |
| 1607 |
UNSUPPORTED("80tteudx6zbkyxy4erhh0fqeo"); |
| 1608 |
UNSUPPORTED("65o4lsnpkxraq4wik0gzbv3g3"); |
| 1609 |
UNSUPPORTED("7w0wn4e9gizbzrsqcre4pnx7"); |
| 1610 |
UNSUPPORTED("3avq2zh3wpi2nrhofz3l9esev"); |
| 1611 |
UNSUPPORTED("bbilsao6wizinl5kripcoya9d"); |
| 1612 |
UNSUPPORTED("e93wd087tiy2p8rvqlme93ynm"); |
| 1613 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1614 |
UNSUPPORTED("69hc24ic55i66g8tf2ne42327"); |
| 1615 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1616 |
|
| 1617 |
throw new UnsupportedOperationException(); |
| 1618 |
} |
| 1619 |
|
| 1620 |
|
| 1621 |
|
| 1622 |
|
| 1623 |
|
| 1624 |
|
| 1625 |
public static Object cloneEdge(Object... arg) { |
| 1626 |
UNSUPPORTED("adyfsyiyu158mwhrtm33biik2"); |
| 1627 |
UNSUPPORTED("cpg8ogbdq9zzrqiadh2q271ky"); |
| 1628 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1629 |
UNSUPPORTED("mdnixwzb9bm22acv2mbc4yo2"); |
| 1630 |
UNSUPPORTED("ce403szny1a2xoli6uh7ocakq"); |
| 1631 |
UNSUPPORTED("554nt9t4qnutd0wixwbpok522"); |
| 1632 |
UNSUPPORTED("6yfr23jllhpfychz887mht80b"); |
| 1633 |
UNSUPPORTED("4v614d3uabme2jyn0anuritbb"); |
| 1634 |
UNSUPPORTED("jgkgn8228j52jq4wc7yo2q8t"); |
| 1635 |
UNSUPPORTED("86dayio2rrehbyot92z4xh4d1"); |
| 1636 |
UNSUPPORTED("39vbjr08q96wugxyva077qpok"); |
| 1637 |
UNSUPPORTED("3z0livr6yj8gkkuxtvqwrqy95"); |
| 1638 |
UNSUPPORTED("dilecd9q5c2tj0pnl7tfwgixx"); |
| 1639 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1640 |
UNSUPPORTED("bnetqzovnscxile7ao44kc0qd"); |
| 1641 |
UNSUPPORTED("2bswif6w6ot01ynlvkimntfly"); |
| 1642 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1643 |
|
| 1644 |
throw new UnsupportedOperationException(); |
| 1645 |
} |
| 1646 |
|
| 1647 |
|
| 1648 |
|
| 1649 |
|
| 1650 |
|
| 1651 |
|
| 1652 |
public static Object transformf(Object... arg) { |
| 1653 |
UNSUPPORTED("2zzd7mrm2u540dwuyzehozffj"); |
| 1654 |
UNSUPPORTED("a59oomtgi9wbd42kpsaaref6e"); |
| 1655 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 1656 |
UNSUPPORTED("9wlzvfxuhvsgkkq6lvlrw01d2"); |
| 1657 |
UNSUPPORTED("3vhnqvj1whk5vk9hofkhjtksr"); |
| 1658 |
UNSUPPORTED("9sla4yejg4e4tlklijoil9k4u"); |
| 1659 |
UNSUPPORTED("688l858wkw5j2uqosjyesr15h"); |
| 1660 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1661 |
UNSUPPORTED("890s36h0fh77q487p72cjtyz"); |
| 1662 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 1663 |
|
| 1664 |
throw new UnsupportedOperationException(); |
| 1665 |
} |
| 1666 |
|
| 1667 |
|
| 1668 |
|
| 1669 |
|
| 1670 |
|
| 1671 |
|
| 1672 |
public static int edgelblcmpfn(__ptr__ ptr0, __ptr__ ptr1) { |
| 1673 |
ENTERING("bmsa24i3avg14po4sp17yh89k","edgelblcmpfn"); |
| 1674 |
try { |
| 1675 |
ST_Agedge_s e0, e1; |
| 1676 |
final ST_pointf sz0 = new ST_pointf(), sz1 = new ST_pointf(); |
| 1677 |
e0 = (ST_Agedge_s) ptr0.getPtr(); |
| 1678 |
e1 = (ST_Agedge_s) ptr1.getPtr(); |
| 1679 |
if (ED_label(e0)!=null) { |
| 1680 |
if (ED_label(e1)!=null) { |
| 1681 |
sz0.___(ED_label(e0).dimen); |
| 1682 |
sz1.___(ED_label(e1).dimen); |
| 1683 |
if (sz0.x > sz1.x) return -1; |
| 1684 |
else if (sz0.x < sz1.x) return 1; |
| 1685 |
else if (sz0.y > sz1.y) return -1; |
| 1686 |
else if (sz0.y < sz1.y) return 1; |
| 1687 |
else return 0; |
| 1688 |
} |
| 1689 |
else |
| 1690 |
return -1; |
| 1691 |
} |
| 1692 |
else if (ED_label(e1)!=null) { |
| 1693 |
return 1; |
| 1694 |
} |
| 1695 |
else |
| 1696 |
return 0; |
| 1697 |
} finally { |
| 1698 |
LEAVING("bmsa24i3avg14po4sp17yh89k","edgelblcmpfn"); |
| 1699 |
} |
| 1700 |
} |
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
|
| 1705 |
|
| 1706 |
|
| 1707 |
public static void makeSimpleFlatLabels(ST_Agnode_s tn, ST_Agnode_s hn, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, int et, int n_lbls) { |
| 1708 |
ENTERING("3xmylrnypvoqrj2yrxnomsj5k","makeSimpleFlatLabels"); |
| 1709 |
try { |
| 1710 |
ST_pointf.Array ps; |
| 1711 |
final ST_Ppoly_t poly = new ST_Ppoly_t(); |
| 1712 |
int pn[] = new int[1]; |
| 1713 |
ST_Agedge_s e = (ST_Agedge_s) edges.get(ind); |
| 1714 |
final ST_pointf.Array points = new ST_pointf.Array(10); |
| 1715 |
final ST_pointf tp = new ST_pointf(), hp = new ST_pointf(); |
| 1716 |
int i, pointn; |
| 1717 |
double leftend, rightend, ctrx=0, ctry=0, miny, maxy; |
| 1718 |
double uminx=0, umaxx=0; |
| 1719 |
double lminx=0, lmaxx=0; |
| 1720 |
ST_Agedge_s.ArrayOfStar earray = new ST_Agedge_s.ArrayOfStar(cnt); |
| 1721 |
for (i = 0; i < cnt; i++) { |
| 1722 |
earray.plus(i).setPtr(edges.plus(ind + i).getPtr()); |
| 1723 |
} |
| 1724 |
qsort(earray, |
| 1725 |
cnt, |
| 1726 |
function(dotsplines__c.class, "edgelblcmpfn")); |
| 1727 |
tp.___(add_pointf(ND_coord(tn), (ST_pointf) ED_tail_port(e).p)); |
| 1728 |
hp.___(add_pointf(ND_coord(hn), (ST_pointf) ED_head_port(e).p)); |
| 1729 |
leftend = tp.x+ND_rw(tn); |
| 1730 |
rightend = hp.x-ND_lw(hn); |
| 1731 |
ctrx = (leftend + rightend)/2.0; |
| 1732 |
|
| 1733 |
e = (ST_Agedge_s) earray.get(0); |
| 1734 |
pointn = 0; |
| 1735 |
points.plus(pointn++).setStruct(tp); |
| 1736 |
points.plus(pointn++).setStruct(tp); |
| 1737 |
points.plus(pointn++).setStruct(hp); |
| 1738 |
points.plus(pointn++).setStruct(hp); |
| 1739 |
clip_and_install(e, aghead(e), points.asPtr(), pointn, Z.z().sinfo); |
| 1740 |
ED_label(e).pos.setDouble("x", ctrx); |
| 1741 |
ED_label(e).pos.setDouble("y", tp.y + (ED_label(e).dimen.y+6)/2.0); |
| 1742 |
ED_label(e).set= NOTI(false); |
| 1743 |
miny = tp.y + 6/2.0; |
| 1744 |
maxy = miny + ED_label(e).dimen.y; |
| 1745 |
uminx = ctrx - (ED_label(e).dimen.x)/2.0; |
| 1746 |
umaxx = ctrx + (ED_label(e).dimen.x)/2.0; |
| 1747 |
for (i = 1; i < n_lbls; i++) { |
| 1748 |
e = (ST_Agedge_s) earray.get(i); |
| 1749 |
if (i%2!=0) { |
| 1750 |
if (i == 1) { |
| 1751 |
lminx = ctrx - (ED_label(e).dimen.x)/2.0; |
| 1752 |
lmaxx = ctrx + (ED_label(e).dimen.x)/2.0; |
| 1753 |
} |
| 1754 |
miny -= 6 + ED_label(e).dimen.y; |
| 1755 |
points.plus(0).setStruct(tp); |
| 1756 |
points.plus(1).setDouble("x", tp.x); |
| 1757 |
points.plus(1).setDouble("y", miny - 6); |
| 1758 |
points.plus(2).setDouble("x", hp.x); |
| 1759 |
points.plus(2).setDouble("y", points.get(1).y); |
| 1760 |
points.plus(3).setStruct(hp); |
| 1761 |
points.plus(4).setDouble("x", lmaxx); |
| 1762 |
points.plus(4).setDouble("y", hp.y); |
| 1763 |
points.plus(5).setDouble("x", lmaxx); |
| 1764 |
points.plus(5).setDouble("y", miny); |
| 1765 |
points.plus(6).setDouble("x", lminx); |
| 1766 |
points.plus(6).setDouble("y", miny); |
| 1767 |
points.plus(7).setDouble("x", lminx); |
| 1768 |
points.plus(7).setDouble("y", tp.y); |
| 1769 |
ctry = miny + (ED_label(e).dimen.y)/2.0; |
| 1770 |
} |
| 1771 |
else { |
| 1772 |
UNSUPPORTED("7owdudualx55z2cnm9x3iio0w"); |
| 1773 |
UNSUPPORTED("43w0zont6q3y1axlcy96rzm5x"); |
| 1774 |
UNSUPPORTED("285u4l65puy5nr3pgq6acl4i2"); |
| 1775 |
UNSUPPORTED("uctdrwzmec4w6vmirs9on197"); |
| 1776 |
UNSUPPORTED("d9b8e2upja8koam9memys7nj1"); |
| 1777 |
UNSUPPORTED("e8a8ucdpq7sgmbi3qyldleb1s"); |
| 1778 |
UNSUPPORTED("d7xd9vzbdbezltrxsp9a3byuc"); |
| 1779 |
UNSUPPORTED("59abeyxxk9ow1g6m45t4ahih7"); |
| 1780 |
UNSUPPORTED("2lzgl5468xguophz9d5wyer2x"); |
| 1781 |
UNSUPPORTED("41u0uroraw4xanvpgg6l74kyh"); |
| 1782 |
UNSUPPORTED("cwkk5bnko3e1udrx4cb720zss"); |
| 1783 |
UNSUPPORTED("eev7hf3617k74bnq18uiedyb0"); |
| 1784 |
UNSUPPORTED("aqxt1dvgfq5zcptjwgx1b3mmq"); |
| 1785 |
UNSUPPORTED("5s3o04yf5lzca6ruuygfxngj2"); |
| 1786 |
UNSUPPORTED("56zheeat0b8mo4uvlcbvgbu80"); |
| 1787 |
UNSUPPORTED("ehcig8trxc4ble6pcochubv7z"); |
| 1788 |
UNSUPPORTED("e2zgxycgqefryde9nbv6cqz1u"); |
| 1789 |
} |
| 1790 |
poly.pn = 8; |
| 1791 |
poly.ps = points; |
| 1792 |
ps = simpleSplineRoute (tp, hp, poly, pn, et == (3 << 1)); |
| 1793 |
if (pn[0] == 0) return; |
| 1794 |
ED_label(e).pos.setDouble("x", ctrx); |
| 1795 |
ED_label(e).pos.setDouble("y", ctry); |
| 1796 |
ED_label(e).set= NOTI(false); |
| 1797 |
clip_and_install(e, aghead(e), ps, pn[0], Z.z().sinfo); |
| 1798 |
} |
| 1799 |
|
| 1800 |
for (; i < cnt; i++) { |
| 1801 |
e = (ST_Agedge_s) earray.get(i); |
| 1802 |
if (i%2!=0) { |
| 1803 |
if (i == 1) { |
| 1804 |
lminx = (2*leftend + rightend)/3.0; |
| 1805 |
lmaxx = (leftend + 2*rightend)/3.0; |
| 1806 |
} |
| 1807 |
miny -= 6; |
| 1808 |
points.plus(0).setStruct(tp); |
| 1809 |
points.plus(1).setDouble("x", tp.x); |
| 1810 |
points.plus(1).setDouble("y", miny - 6); |
| 1811 |
points.plus(2).setDouble("x", hp.x); |
| 1812 |
points.plus(2).setDouble("y", points.get(1).y); |
| 1813 |
points.plus(3).setStruct(hp); |
| 1814 |
points.plus(4).setDouble("x", lmaxx); |
| 1815 |
points.plus(4).setDouble("y", hp.y); |
| 1816 |
points.plus(5).setDouble("x", lmaxx); |
| 1817 |
points.plus(5).setDouble("y", miny); |
| 1818 |
points.plus(6).setDouble("x", lminx); |
| 1819 |
points.plus(6).setDouble("y", miny); |
| 1820 |
points.plus(7).setDouble("x", lminx); |
| 1821 |
points.plus(7).setDouble("y", tp.y); |
| 1822 |
} |
| 1823 |
else { |
| 1824 |
UNSUPPORTED("7owdudualx55z2cnm9x3iio0w"); |
| 1825 |
UNSUPPORTED("43w0zont6q3y1axlcy96rzm5x"); |
| 1826 |
UNSUPPORTED("285u4l65puy5nr3pgq6acl4i2"); |
| 1827 |
UNSUPPORTED("uctdrwzmec4w6vmirs9on197"); |
| 1828 |
UNSUPPORTED("d9b8e2upja8koam9memys7nj1"); |
| 1829 |
UNSUPPORTED("e8a8ucdpq7sgmbi3qyldleb1s"); |
| 1830 |
UNSUPPORTED("d7xd9vzbdbezltrxsp9a3byuc"); |
| 1831 |
UNSUPPORTED("59abeyxxk9ow1g6m45t4ahih7"); |
| 1832 |
UNSUPPORTED("2lzgl5468xguophz9d5wyer2x"); |
| 1833 |
UNSUPPORTED("41u0uroraw4xanvpgg6l74kyh"); |
| 1834 |
UNSUPPORTED("cwkk5bnko3e1udrx4cb720zss"); |
| 1835 |
UNSUPPORTED("eev7hf3617k74bnq18uiedyb0"); |
| 1836 |
UNSUPPORTED("aqxt1dvgfq5zcptjwgx1b3mmq"); |
| 1837 |
UNSUPPORTED("5s3o04yf5lzca6ruuygfxngj2"); |
| 1838 |
UNSUPPORTED("56zheeat0b8mo4uvlcbvgbu80"); |
| 1839 |
UNSUPPORTED("7un2qk34mmmhqi296vl50bacs"); |
| 1840 |
} |
| 1841 |
poly.pn = 8; |
| 1842 |
poly.ps = points; |
| 1843 |
ps = simpleSplineRoute (tp, hp, poly, pn, et == (3 << 1)); |
| 1844 |
if (pn[0] == 0) return; |
| 1845 |
clip_and_install(e, aghead(e), ps, pn[0], Z.z().sinfo); |
| 1846 |
} |
| 1847 |
Memory.free (earray); |
| 1848 |
} finally { |
| 1849 |
LEAVING("3xmylrnypvoqrj2yrxnomsj5k","makeSimpleFlatLabels"); |
| 1850 |
} |
| 1851 |
} |
| 1852 |
|
| 1853 |
|
| 1854 |
|
| 1855 |
|
| 1856 |
|
| 1857 |
|
| 1858 |
public static void makeSimpleFlat(ST_Agnode_s tn, ST_Agnode_s hn, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, int et) { |
| 1859 |
ENTERING("8kqyzk43ovc2sq6jegua6ytp","makeSimpleFlat"); |
| 1860 |
try { |
| 1861 |
ST_Agedge_s e = (ST_Agedge_s) edges.get(ind); |
| 1862 |
final ST_pointf.Array points = new ST_pointf.Array( 10); |
| 1863 |
final ST_pointf tp = new ST_pointf(), hp = new ST_pointf(); |
| 1864 |
int i, pointn; |
| 1865 |
double stepy, dy; |
| 1866 |
tp.___(add_pointf(ND_coord(tn), (ST_pointf) ED_tail_port(e).p)); |
| 1867 |
hp.___(add_pointf(ND_coord(hn), (ST_pointf) ED_head_port(e).p)); |
| 1868 |
stepy = (cnt > 1) ? ND_ht(tn) / (double)(cnt - 1) : 0.; |
| 1869 |
dy = tp.y - ((cnt > 1) ? ND_ht(tn) / 2. : 0.); |
| 1870 |
for (i = 0; i < cnt; i++) { |
| 1871 |
e = (ST_Agedge_s) edges.plus(ind + i).getPtr(); |
| 1872 |
pointn = 0; |
| 1873 |
if ((et == (5 << 1)) || (et == (1 << 1))) { |
| 1874 |
points.plus(pointn++).setStruct(tp); |
| 1875 |
points.plus(pointn++).setStruct(pointfof((2 * tp.x + hp.x) / 3, dy)); |
| 1876 |
points.plus(pointn++).setStruct(pointfof((2 * hp.x + tp.x) / 3, dy)); |
| 1877 |
points.plus(pointn++).setStruct(hp); |
| 1878 |
} |
| 1879 |
else { |
| 1880 |
UNSUPPORTED("cai7diqq01v8vb92u4mx1xh38"); |
| 1881 |
UNSUPPORTED("cai7diqq01v8vb92u4mx1xh38"); |
| 1882 |
UNSUPPORTED("bnd7kao912fmo940u1gz3cmws"); |
| 1883 |
UNSUPPORTED("bnd7kao912fmo940u1gz3cmws"); |
| 1884 |
UNSUPPORTED("bnd7kao912fmo940u1gz3cmws"); |
| 1885 |
UNSUPPORTED("akir2i0ddpv2ombgdzzs9qqqa"); |
| 1886 |
UNSUPPORTED("akir2i0ddpv2ombgdzzs9qqqa"); |
| 1887 |
UNSUPPORTED("akir2i0ddpv2ombgdzzs9qqqa"); |
| 1888 |
UNSUPPORTED("59cwjy3j5e0igp278migykzi"); |
| 1889 |
UNSUPPORTED("59cwjy3j5e0igp278migykzi"); |
| 1890 |
} |
| 1891 |
dy += stepy; |
| 1892 |
clip_and_install(e, aghead(e), points.asPtr(), pointn, Z.z().sinfo); |
| 1893 |
} |
| 1894 |
} finally { |
| 1895 |
LEAVING("8kqyzk43ovc2sq6jegua6ytp","makeSimpleFlat"); |
| 1896 |
} |
| 1897 |
} |
| 1898 |
|
| 1899 |
|
| 1900 |
|
| 1901 |
|
| 1902 |
|
| 1903 |
|
| 1904 |
public static void make_flat_adj_edges(ST_Agraph_s g, ST_path P, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, ST_Agedge_s e0, int et) { |
| 1905 |
ENTERING("bhnjospwghq4plid12757c928","make_flat_adj_edges"); |
| 1906 |
try { |
| 1907 |
ST_Agnode_s n; |
| 1908 |
ST_Agnode_s tn, hn; |
| 1909 |
ST_Agedge_s e; |
| 1910 |
int labels = 0, ports = 0; |
| 1911 |
ST_Agraph_s auxg; |
| 1912 |
ST_Agraph_s subg; |
| 1913 |
ST_Agnode_s auxt, auxh; |
| 1914 |
ST_Agedge_s auxe; |
| 1915 |
int i, j, midx, midy, leftx, rightx; |
| 1916 |
final ST_pointf del = new ST_pointf(); |
| 1917 |
ST_Agedge_s hvye = null; |
| 1918 |
attr_state_t attrs; |
| 1919 |
tn = agtail(e0); hn = aghead(e0); |
| 1920 |
for (i = 0; i < cnt; i++) { |
| 1921 |
e = (ST_Agedge_s) edges.plus(ind + i).getPtr(); |
| 1922 |
if (ED_label(e)!=null) labels++; |
| 1923 |
if (ED_tail_port(e).defined!=0 || ED_head_port(e).defined!=0) ports = 1; |
| 1924 |
} |
| 1925 |
if (ports == 0) { |
| 1926 |
|
| 1927 |
if (labels == 0) { |
| 1928 |
makeSimpleFlat (tn, hn, edges, ind, cnt, et); |
| 1929 |
} |
| 1930 |
|
| 1931 |
else { |
| 1932 |
makeSimpleFlatLabels (tn, hn, edges, ind, cnt, et, labels); |
| 1933 |
} |
| 1934 |
return; |
| 1935 |
} |
| 1936 |
UNSUPPORTED("3ua0mgcwxnpymnpiv77owaur2"); |
| 1937 |
UNSUPPORTED("5qcpchn65culafc5t2ibioksb"); |
| 1938 |
UNSUPPORTED("cwolismpef6l1w4xj5etx8w09"); |
| 1939 |
UNSUPPORTED("eocu0fte9egz381w3t8y5m64t"); |
| 1940 |
UNSUPPORTED("er19m8huvnjjn1v6rreiisdf6"); |
| 1941 |
UNSUPPORTED("du7zwfglureqnv5g2wiammuuu"); |
| 1942 |
UNSUPPORTED("5qa24lmumrg29fbtl0fo4d4z1"); |
| 1943 |
UNSUPPORTED("b2x6j7m1cmmkcmdl5jo9wn0ap"); |
| 1944 |
UNSUPPORTED("2elvc001uux0vbe7sv4098e0c"); |
| 1945 |
UNSUPPORTED("6m8k99c09zmhwgcdsgo33dugz"); |
| 1946 |
UNSUPPORTED("cenlfgoeymhe1am5z6632xniq"); |
| 1947 |
UNSUPPORTED("cp2gf6c1xawd2yjbqerw98we3"); |
| 1948 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1949 |
UNSUPPORTED("1e98fnf9lsk7hwgjt70gh5r55"); |
| 1950 |
UNSUPPORTED("a4xa8i1nw83hhnknv84280z00"); |
| 1951 |
UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); |
| 1952 |
UNSUPPORTED("8hwholxjp08y4q0zbb561684q"); |
| 1953 |
UNSUPPORTED("b3w40fpgfj0j66yi6j582thq2"); |
| 1954 |
UNSUPPORTED("bcu59ji1apn0rvv7aisl6e4pw"); |
| 1955 |
UNSUPPORTED("4o3mq2ztiyxlbkpgcyygj4lny"); |
| 1956 |
UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); |
| 1957 |
UNSUPPORTED("3a7m578mxun4c8zv0jurzh7ox"); |
| 1958 |
UNSUPPORTED("e6khamu7fhu5m7il9r2v06mui"); |
| 1959 |
UNSUPPORTED("64u9xrw8iwy3mtuupoktw7xoz"); |
| 1960 |
UNSUPPORTED("6t23nfzzldtl419g582pr0wjn"); |
| 1961 |
UNSUPPORTED("3fi2uxwkmau5664gnhzyosan5"); |
| 1962 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 1963 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1964 |
UNSUPPORTED("co4n3cv6ybhgvm341r3re61vu"); |
| 1965 |
UNSUPPORTED("a0sxhnruv0ip65j05wt7dciak"); |
| 1966 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1967 |
UNSUPPORTED("26l323zwxztuc6sfnh36x7i9f"); |
| 1968 |
UNSUPPORTED("4pj2d4pwf7wi9fcu4v0byk83z"); |
| 1969 |
UNSUPPORTED("b6dpjp9wgjzgoy0tq7b9kms74"); |
| 1970 |
UNSUPPORTED("e08t9bx8ldb1d5e0582wg82sx"); |
| 1971 |
UNSUPPORTED("8y4433lgybq35f4t7viqsvz5v"); |
| 1972 |
UNSUPPORTED("13c2nt4jwumpvtwudz38a4sb3"); |
| 1973 |
UNSUPPORTED("6onnznyz9fof6r8we5z1e4r63"); |
| 1974 |
UNSUPPORTED("4ry85qx5xmahkm0mdv9s65azo"); |
| 1975 |
UNSUPPORTED("9921qakdgil2jvrvinke44xsz"); |
| 1976 |
UNSUPPORTED("ang8wy78872hvqkzvgfjwqwfl"); |
| 1977 |
UNSUPPORTED("2r2ywte92l423tbcdfvbhz3zh"); |
| 1978 |
UNSUPPORTED("b8juh1dggb6sz4d9df42i150k"); |
| 1979 |
UNSUPPORTED("4prtyy13ox1fif8vil3g86g87"); |
| 1980 |
UNSUPPORTED("7gvpia4yo3bfvh5dl7uwr3dbe"); |
| 1981 |
UNSUPPORTED("2zsspnn0nfrdf9fx8sh3ld8j4"); |
| 1982 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 1983 |
UNSUPPORTED("ba2aaoh9ujy4ww9luial39sya"); |
| 1984 |
UNSUPPORTED("aoy1ze6hhjuym44mkasdt19qp"); |
| 1985 |
UNSUPPORTED("2zsspnn0nfrdf9fx8sh3ld8j4"); |
| 1986 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 1987 |
UNSUPPORTED("80o8q2qh1hr671ladbyqzglnt"); |
| 1988 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1989 |
UNSUPPORTED("48hn94qz2y2kb6lqc3462vlco"); |
| 1990 |
UNSUPPORTED("bglhuc9grqkk9ozb97oeh0m3b"); |
| 1991 |
UNSUPPORTED("euvfot8f7xxnibd223qgsylew"); |
| 1992 |
UNSUPPORTED("4mg60pszj0s1anwg8zp0tq0ra"); |
| 1993 |
UNSUPPORTED("b2x6j7m1cmmkcmdl5jo9wn0ap"); |
| 1994 |
UNSUPPORTED("baukf0b2l91bkgnfdc04rvuxe"); |
| 1995 |
UNSUPPORTED("96sq686mw9bvj7dli7wb241au"); |
| 1996 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 1997 |
UNSUPPORTED("1nyzbeonram6636b1w955bypn"); |
| 1998 |
UNSUPPORTED("bxg8i1hqms0izrryxh2at6p7b"); |
| 1999 |
UNSUPPORTED("3xqgvdcxmu8e4eqtnhaa256tk"); |
| 2000 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2001 |
UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); |
| 2002 |
UNSUPPORTED("47ogn0fae1yuy3kefpawcgcmx"); |
| 2003 |
UNSUPPORTED("4mujfxtr0wy7m1rbm57rwigo4"); |
| 2004 |
UNSUPPORTED("8hwholxjp08y4q0zbb561684q"); |
| 2005 |
UNSUPPORTED("b3w40fpgfj0j66yi6j582thq2"); |
| 2006 |
UNSUPPORTED("3ii7nnxg3x8jpdk6lcijbizvf"); |
| 2007 |
UNSUPPORTED("5rc7uvn4xqfetekcci1uwri5v"); |
| 2008 |
UNSUPPORTED("52vy3jbu67nebznqkhxxqthih"); |
| 2009 |
UNSUPPORTED("azr1tv8blnu3i6b7wstpqv2tc"); |
| 2010 |
UNSUPPORTED("df84ie4egl6l1i82tz1zp7hg"); |
| 2011 |
UNSUPPORTED("49bzonc32mbuchcsmw7csexdw"); |
| 2012 |
UNSUPPORTED("9g1glpjjy5wmh7dyr6u0nb2cn"); |
| 2013 |
UNSUPPORTED("44tftrsdjjuh1qjmxjpysmee3"); |
| 2014 |
UNSUPPORTED("w0xl6ghxoii2ze2xmbbunv4d"); |
| 2015 |
UNSUPPORTED("22zm6ljvhpz7j2kiqee31nx61"); |
| 2016 |
UNSUPPORTED("4c88sva3ojadip5w3ehu782tp"); |
| 2017 |
UNSUPPORTED("5jqtd9htl25cd3if3pjtl8dpo"); |
| 2018 |
UNSUPPORTED("duk541biqshfomah8rlxeyigr"); |
| 2019 |
UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); |
| 2020 |
UNSUPPORTED("2qrbm7mhicvoxzk91h9x3gq64"); |
| 2021 |
UNSUPPORTED("5jqtd9htl25cd3if3pjtl8dpo"); |
| 2022 |
UNSUPPORTED("f4x9unnnofgnvy91ejtm90kw"); |
| 2023 |
UNSUPPORTED("5jqtd9htl25cd3if3pjtl8dpo"); |
| 2024 |
UNSUPPORTED("6pldfj31dg88qzsa012v8auxn"); |
| 2025 |
UNSUPPORTED("2xvehdctlpogpd7xhdf1pku00"); |
| 2026 |
UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); |
| 2027 |
UNSUPPORTED("8bokoh0vcnmvjcahn7de1z0kd"); |
| 2028 |
UNSUPPORTED("8ido4wfhvlqvczqfq5xz33kak"); |
| 2029 |
UNSUPPORTED("3tkba5lhpnujfu8lcz8lewsyn"); |
| 2030 |
UNSUPPORTED("c62p0r1jj71ceakgzrv2gorvu"); |
| 2031 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 2032 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2033 |
UNSUPPORTED("22prbnbyxmapn1fcer1sktez7"); |
| 2034 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 2035 |
|
| 2036 |
throw new UnsupportedOperationException(); |
| 2037 |
} finally { |
| 2038 |
LEAVING("bhnjospwghq4plid12757c928","make_flat_adj_edges"); |
| 2039 |
} |
| 2040 |
} |
| 2041 |
|
| 2042 |
|
| 2043 |
|
| 2044 |
|
| 2045 |
|
| 2046 |
|
| 2047 |
public static void makeFlatEnd(ST_Agraph_s g, ST_spline_info_t sp, ST_path P, ST_Agnode_s n, ST_Agedge_s e, ST_pathend_t endp, boolean isBegin) { |
| 2048 |
ENTERING("fybar4mljnmkh3kure5k1eod","makeFlatEnd"); |
| 2049 |
try { |
| 2050 |
final ST_boxf b = new ST_boxf(); |
| 2051 |
b.___(maximal_bbox(g, sp, n, null, e)); |
| 2052 |
endp.setStruct("nb", b); |
| 2053 |
endp.setInt("sidemask", 1<<2); |
| 2054 |
if (isBegin) beginpath(P, e, 2, endp, false); |
| 2055 |
else endpath(P, e, 2, endp, false); |
| 2056 |
b.UR.y = endp.boxes[endp.boxn - 1].UR.y; |
| 2057 |
b.LL.y = endp.boxes[endp.boxn - 1].LL.y; |
| 2058 |
b.___(makeregularend((ST_boxf) b, (1<<2), ND_coord(n).y + GD_rank(g).get(ND_rank(n)).ht2)); |
| 2059 |
if (b.LL.x < b.UR.x && b.LL.y < b.UR.y) |
| 2060 |
UNSUPPORTED("cmjm4y40vf7wklmgz0ae4k36v"); |
| 2061 |
} finally { |
| 2062 |
LEAVING("fybar4mljnmkh3kure5k1eod","makeFlatEnd"); |
| 2063 |
} |
| 2064 |
} |
| 2065 |
|
| 2066 |
|
| 2067 |
|
| 2068 |
|
| 2069 |
|
| 2070 |
|
| 2071 |
public static Object makeBottomFlatEnd(Object... arg) { |
| 2072 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 2073 |
UNSUPPORTED("8ai1jk8aigoqod7sj7pw1phw3"); |
| 2074 |
UNSUPPORTED("25ij2tn6de7b481tpf1ac644s"); |
| 2075 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 2076 |
UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); |
| 2077 |
UNSUPPORTED("458vjrt5zjt6am715aiuxdlpo"); |
| 2078 |
UNSUPPORTED("9wzfokn3t7zckgoaxgywy6cbz"); |
| 2079 |
UNSUPPORTED("c3u0b2z8mb4le2v1g6q8amjt"); |
| 2080 |
UNSUPPORTED("1e0zyjb03r85tgqddfnlk9e9"); |
| 2081 |
UNSUPPORTED("7pwqqvagpkzye4cdmjlbrmt7a"); |
| 2082 |
UNSUPPORTED("1mefjjoto40rfwb1qhzvobhje"); |
| 2083 |
UNSUPPORTED("4sn8dc58suk2d3oqlu13cr7ic"); |
| 2084 |
UNSUPPORTED("6xj9sv3inmj1rwtz76qp6p30n"); |
| 2085 |
UNSUPPORTED("cmjm4y40vf7wklmgz0ae4k36v"); |
| 2086 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 2087 |
|
| 2088 |
throw new UnsupportedOperationException(); |
| 2089 |
} |
| 2090 |
|
| 2091 |
|
| 2092 |
|
| 2093 |
|
| 2094 |
|
| 2095 |
|
| 2096 |
public static void make_flat_labeled_edge(ST_Agraph_s g, ST_spline_info_t sp, ST_path P, ST_Agedge_s e, int et) { |
| 2097 |
ENTERING("w8ptjibydq995d2lexg85mku","make_flat_labeled_edge"); |
| 2098 |
try { |
| 2099 |
ST_Agnode_s tn, hn, ln; |
| 2100 |
ST_pointf.Array ps = null; |
| 2101 |
final ST_pathend_t tend = new ST_pathend_t(), hend = new ST_pathend_t(); |
| 2102 |
final ST_boxf lb = new ST_boxf(); |
| 2103 |
int boxn, i, ydelta; |
| 2104 |
int pn[] = new int[1]; |
| 2105 |
ST_Agedge_s f; |
| 2106 |
final ST_pointf.Array points = new ST_pointf.Array( 7); |
| 2107 |
tn = agtail(e); |
| 2108 |
hn = aghead(e); |
| 2109 |
for (f = ED_to_virt(e); ED_to_virt(f)!=null; f = ED_to_virt(f)); |
| 2110 |
ln = agtail(f); |
| 2111 |
ED_label(e).setStruct("pos", ND_coord(ln)); |
| 2112 |
ED_label(e).set= NOTI(false); |
| 2113 |
if (et == (1 << 1)) { |
| 2114 |
UNSUPPORTED("ataaqkehwb736ts2x6olzqokx"); |
| 2115 |
UNSUPPORTED("48h6vk2e5niep4dmpua377248"); |
| 2116 |
UNSUPPORTED("8fokfn1629eyiqnzi7mey9o2q"); |
| 2117 |
UNSUPPORTED("8zpih1olxdgp3sxk2br3lezzx"); |
| 2118 |
UNSUPPORTED("1sblcap44288tmc3cr80iqpj5"); |
| 2119 |
UNSUPPORTED("8ew9p3k3j0b33dnq0ntgbb6x8"); |
| 2120 |
UNSUPPORTED("16h577fdghqtaeot735guew4e"); |
| 2121 |
UNSUPPORTED("9zjfovamhwwehbviws68s5woy"); |
| 2122 |
UNSUPPORTED("68ojpcos92c96bc0i5ag1yb6v"); |
| 2123 |
UNSUPPORTED("1uunj4jbr2uhiqxwor6rzmr3j"); |
| 2124 |
} |
| 2125 |
else { |
| 2126 |
lb.LL.x = ND_coord(ln).x - ND_lw(ln); |
| 2127 |
lb.UR.x = ND_coord(ln).x + ND_rw(ln); |
| 2128 |
lb.UR.y = ND_coord(ln).y + ND_ht(ln)/2; |
| 2129 |
ydelta = (int)(ND_coord(ln).y - GD_rank(g).get(ND_rank(tn)).ht1 - |
| 2130 |
ND_coord(tn).y + GD_rank(g).get(ND_rank(tn)).ht2); |
| 2131 |
ydelta = (int)(ydelta / 6.); |
| 2132 |
lb.LL.y = lb.UR.y - MAX(5.,ydelta); |
| 2133 |
boxn = 0; |
| 2134 |
makeFlatEnd (g, sp, P, tn, e, tend, NOT(false)); |
| 2135 |
makeFlatEnd (g, sp, P, hn, e, hend, false); |
| 2136 |
((Z.z().boxes[boxn])).LL.x = (tend).boxes[tend.boxn - 1].LL.x; |
| 2137 |
((Z.z().boxes[boxn])).LL.y = (tend).boxes[tend.boxn - 1].UR.y; |
| 2138 |
((Z.z().boxes[boxn])).UR.x = lb.LL.x; |
| 2139 |
((Z.z().boxes[boxn])).UR.y = lb.LL.y; |
| 2140 |
boxn++; |
| 2141 |
((Z.z().boxes[boxn])).LL.x = (tend).boxes[tend.boxn - 1].LL.x; |
| 2142 |
((Z.z().boxes[boxn])).LL.y = lb.LL.y; |
| 2143 |
((Z.z().boxes[boxn])).UR.x = (hend).boxes[hend.boxn - 1].UR.x; |
| 2144 |
((Z.z().boxes[boxn])).UR.y = lb.UR.y; |
| 2145 |
boxn++; |
| 2146 |
((Z.z().boxes[boxn])).LL.x = lb.UR.x; |
| 2147 |
((Z.z().boxes[boxn])).UR.y = lb.LL.y; |
| 2148 |
((Z.z().boxes[boxn])).LL.y = (hend).boxes[hend.boxn - 1].UR.y; |
| 2149 |
((Z.z().boxes[boxn])).UR.x = (hend).boxes[hend.boxn - 1].UR.x; |
| 2150 |
boxn++; |
| 2151 |
for (i = 0; i < tend.boxn; i++) add_box(P, (tend).boxes[i]); |
| 2152 |
for (i = 0; i < boxn; i++) add_box(P, Z.z().boxes[i]); |
| 2153 |
for (i = hend.boxn - 1; i >= 0; i--) add_box(P, (hend).boxes[i]); |
| 2154 |
if (et == (5 << 1)) ps = routesplines(P, pn); |
| 2155 |
else ps = routepolylines(P, pn); |
| 2156 |
if (pn[0] == 0) return; |
| 2157 |
} |
| 2158 |
clip_and_install(e, aghead(e), ps, pn[0], Z.z().sinfo); |
| 2159 |
} finally { |
| 2160 |
LEAVING("w8ptjibydq995d2lexg85mku","make_flat_labeled_edge"); |
| 2161 |
} |
| 2162 |
} |
| 2163 |
|
| 2164 |
|
| 2165 |
|
| 2166 |
|
| 2167 |
|
| 2168 |
|
| 2169 |
public static Object make_flat_bottom_edges(Object... arg) { |
| 2170 |
UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); |
| 2171 |
UNSUPPORTED("bkp39vt080is6iiqobsw59sk9"); |
| 2172 |
UNSUPPORTED("2gat0ltxh7j57lspwmm9s9x7j"); |
| 2173 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 2174 |
UNSUPPORTED("5np4z3gp6cfmicyuz91nownp8"); |
| 2175 |
UNSUPPORTED("3zgmm04g7gq65c57gco0id1eb"); |
| 2176 |
UNSUPPORTED("5wdd96amz7w1sym59mg5nfj51"); |
| 2177 |
UNSUPPORTED("63ozqzusft8gpehyaqrdjyr1"); |
| 2178 |
UNSUPPORTED("7hps2kejtrotcphg5gymma43b"); |
| 2179 |
UNSUPPORTED("2rkzhui0essisp5zlw44vx4j9"); |
| 2180 |
UNSUPPORTED("32b8td88encjfj6yd1sp8bef"); |
| 2181 |
UNSUPPORTED("d0x4emyekwlcpua99voy3764p"); |
| 2182 |
UNSUPPORTED("axoua6xpo7xc40u2oj0a8dmr9"); |
| 2183 |
UNSUPPORTED("63jjxtcojh1aq4na9u4w2a6xe"); |
| 2184 |
UNSUPPORTED("atjnavwfg3xe4ygorslb4vvtv"); |
| 2185 |
UNSUPPORTED("6b35lbhficoaf5216p3sdq1cj"); |
| 2186 |
UNSUPPORTED("bj0cch0dmhpux7wm3fg4zg368"); |
| 2187 |
UNSUPPORTED("dqcrkagghulp8u9iuoyckepf7"); |
| 2188 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2189 |
UNSUPPORTED("1nyzbeonram6636b1w955bypn"); |
| 2190 |
UNSUPPORTED("1sai54q4zfayczfcrklgw4x17"); |
| 2191 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2192 |
UNSUPPORTED("dyxkx5ftlgbeem7089pcu1qo4"); |
| 2193 |
UNSUPPORTED("63qqo8mqbn6alfa5k3gfalz53"); |
| 2194 |
UNSUPPORTED("euw24sa4cgazdf9z7a3sretis"); |
| 2195 |
UNSUPPORTED("c8ip2hla7pb8tz4fhsj5m34wk"); |
| 2196 |
UNSUPPORTED("1psokm6w9e7qw7fm2g1cayuk7"); |
| 2197 |
UNSUPPORTED("3smlz0a87gj8w58rwau2ewq23"); |
| 2198 |
UNSUPPORTED("bg5tj2hjixth58v04043jb3do"); |
| 2199 |
UNSUPPORTED("8hwholxjp08y4q0zbb561684q"); |
| 2200 |
UNSUPPORTED("cpcqkqkhkaviy153h92apd82e"); |
| 2201 |
UNSUPPORTED("4wkbaj2424ug9j97efwu1r5mc"); |
| 2202 |
UNSUPPORTED("3eyfj1o1bqxlfqw7tq76qiiiz"); |
| 2203 |
UNSUPPORTED("dwlejn7xasxh4yyoq2xodqnyj"); |
| 2204 |
UNSUPPORTED("10o1e4r5ux8d7cr6zg379ss59"); |
| 2205 |
UNSUPPORTED("79f4mryzkqqs3t4sxnet9jc7b"); |
| 2206 |
UNSUPPORTED("cbrsymd5wpvadg3ziz4dypa50"); |
| 2207 |
UNSUPPORTED("7n7f256w4ewtzexwfxjo28b2"); |
| 2208 |
UNSUPPORTED("6in0ql0upnjg00mgj5k8av2m4"); |
| 2209 |
UNSUPPORTED("46ftsiqovpzo9r0mnlc4nf83"); |
| 2210 |
UNSUPPORTED("4bjnn4mhczzd1un9rbib5glch"); |
| 2211 |
UNSUPPORTED("cbrsymd5wpvadg3ziz4dypa50"); |
| 2212 |
UNSUPPORTED("6oycftap8apw4glb1s5jzineu"); |
| 2213 |
UNSUPPORTED("77c1sajrw9kfc7avomly90gm8"); |
| 2214 |
UNSUPPORTED("e94nxsepfdq17q69drbro41je"); |
| 2215 |
UNSUPPORTED("6cipt7th0uv2xfwyh4rvwignj"); |
| 2216 |
UNSUPPORTED("50uajtfbvgkrruywpjq9m4zoj"); |
| 2217 |
UNSUPPORTED("cbrsymd5wpvadg3ziz4dypa50"); |
| 2218 |
UNSUPPORTED("eu29s7oeoca2yo9trhfhb9juy"); |
| 2219 |
UNSUPPORTED("b8xs00axp4lkksof6hmim3n3x"); |
| 2220 |
UNSUPPORTED("ahci7z910ypoj0e54wchvk54v"); |
| 2221 |
UNSUPPORTED("7r9nsxbfy7w3csc04nxo97xpq"); |
| 2222 |
UNSUPPORTED("dfku80ag90r137s9az9493oow"); |
| 2223 |
UNSUPPORTED("919jubmuis4tp1c1f87rvfhog"); |
| 2224 |
UNSUPPORTED("6cprbghvenu9ldc0ez1ifc63q"); |
| 2225 |
UNSUPPORTED("62oxk9cc5wf0f8gqbothfte1f"); |
| 2226 |
UNSUPPORTED("l1nh40fo9oar4mz31h14bc9i"); |
| 2227 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2228 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 2229 |
|
| 2230 |
throw new UnsupportedOperationException(); |
| 2231 |
} |
| 2232 |
|
| 2233 |
|
| 2234 |
|
| 2235 |
|
| 2236 |
|
| 2237 |
|
| 2238 |
public static void make_flat_edge(ST_Agraph_s g, ST_spline_info_t sp, ST_path P, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, int et) { |
| 2239 |
ENTERING("6yr3jfkljl5w0z6dv354ryx63","make_flat_edge"); |
| 2240 |
try { |
| 2241 |
ST_Agnode_s tn, hn; |
| 2242 |
final ST_Agedgeinfo_t fwdedgei = new ST_Agedgeinfo_t(); |
| 2243 |
final ST_Agedgepair_s fwdedge = new ST_Agedgepair_s(); |
| 2244 |
ST_Agedge_s e; |
| 2245 |
int j, i, r, isAdjacent; |
| 2246 |
double stepx, stepy, vspace; |
| 2247 |
int tside, hside; |
| 2248 |
int pn[] = new int[] {0}; |
| 2249 |
ST_pointf.Array ps; |
| 2250 |
final ST_pathend_t tend = new ST_pathend_t(), hend = new ST_pathend_t(); |
| 2251 |
fwdedge.out.base.setPtr("data", fwdedgei); |
| 2252 |
|
| 2253 |
e = (ST_Agedge_s) edges.get(ind); |
| 2254 |
isAdjacent = ED_adjacent(e); |
| 2255 |
if ((ED_tree_index(e) & 32)!=0) { |
| 2256 |
MAKEFWDEDGE(fwdedge.out, e); |
| 2257 |
e = (ST_Agedge_s) fwdedge.out; |
| 2258 |
} |
| 2259 |
for (i = 1; i < cnt; i++) { |
| 2260 |
if (ED_adjacent(edges.plus(ind+i).getPtr())!=0) { |
| 2261 |
isAdjacent = 1; |
| 2262 |
break; |
| 2263 |
} |
| 2264 |
} |
| 2265 |
|
| 2266 |
|
| 2267 |
|
| 2268 |
if (isAdjacent!=0) { |
| 2269 |
make_flat_adj_edges (g, P, edges, ind, cnt, e, et); |
| 2270 |
return; |
| 2271 |
} |
| 2272 |
if (ED_label(e)!=null) { |
| 2273 |
make_flat_labeled_edge (g, sp, P, e, et); |
| 2274 |
return; |
| 2275 |
} |
| 2276 |
if (et == (1 << 1)) { |
| 2277 |
makeSimpleFlat (agtail(e), aghead(e), edges, ind, cnt, et); |
| 2278 |
return; |
| 2279 |
} |
| 2280 |
tside = ED_tail_port(e).side; |
| 2281 |
hside = ED_head_port(e).side; |
| 2282 |
if (((tside == (1<<0)) && (hside != (1<<2))) || |
| 2283 |
((hside == (1<<0)) && (tside != (1<<2)))) { |
| 2284 |
make_flat_bottom_edges (g, sp, P, edges, ind, cnt, e, et == (5 << 1)); |
| 2285 |
return; |
| 2286 |
} |
| 2287 |
tn = agtail(e); |
| 2288 |
hn = aghead(e); |
| 2289 |
r = ND_rank(tn); |
| 2290 |
if (r > 0) { |
| 2291 |
ST_rank_t.Array2 prevr; |
| 2292 |
if ((GD_has_labels(g) & (1 << 0))!=0) |
| 2293 |
prevr = GD_rank(g).plus(r-2); |
| 2294 |
else |
| 2295 |
prevr = GD_rank(g).plus(r-1); |
| 2296 |
vspace = ND_coord(prevr.getPtr().v.get(0)).y - prevr.getPtr().ht1 |
| 2297 |
- ND_coord(tn).y - GD_rank(g).get(r).ht2; |
| 2298 |
} |
| 2299 |
else { |
| 2300 |
vspace = GD_ranksep(g); |
| 2301 |
} |
| 2302 |
stepx = ((double)sp.Multisep) / (cnt+1); |
| 2303 |
stepy = vspace / (cnt+1); |
| 2304 |
makeFlatEnd (g, sp, P, tn, e, tend, true); |
| 2305 |
makeFlatEnd (g, sp, P, hn, e, hend, false); |
| 2306 |
for (i = 0; i < cnt; i++) { |
| 2307 |
int boxn; |
| 2308 |
final ST_boxf b = new ST_boxf(); |
| 2309 |
e = (ST_Agedge_s) edges.plus(ind + i).getPtr(); |
| 2310 |
boxn = 0; |
| 2311 |
b.___((tend).boxes[tend.boxn - 1]); |
| 2312 |
((Z.z().boxes[boxn])).LL.x = b.LL.x; |
| 2313 |
((Z.z().boxes[boxn])).LL.y = b.UR.y; |
| 2314 |
((Z.z().boxes[boxn])).UR.x = b.UR.x + (i + 1) * stepx; |
| 2315 |
((Z.z().boxes[boxn])).UR.y = b.UR.y + (i + 1) * stepy; |
| 2316 |
boxn++; |
| 2317 |
((Z.z().boxes[boxn])).LL.x = ((ST_boxf)((tend).boxes[tend.boxn - 1])).LL.x; |
| 2318 |
((Z.z().boxes[boxn])).LL.y = (Z.z().boxes[boxn-1]).UR.y; |
| 2319 |
((Z.z().boxes[boxn])).UR.x = ((ST_boxf)((hend).boxes[hend.boxn - 1])).UR.x; |
| 2320 |
((Z.z().boxes[boxn])).UR.y = ((Z.z().boxes[boxn])).LL.y + stepy; |
| 2321 |
boxn++; |
| 2322 |
b.___((hend).boxes[hend.boxn - 1]); |
| 2323 |
((Z.z().boxes[boxn])).UR.x = b.UR.x; |
| 2324 |
((Z.z().boxes[boxn])).LL.y = b.UR.y; |
| 2325 |
((Z.z().boxes[boxn])).LL.x = b.LL.x - (i + 1) * stepx; |
| 2326 |
((Z.z().boxes[boxn])).UR.y = (Z.z().boxes[boxn-1]).LL.y; |
| 2327 |
boxn++; |
| 2328 |
for (j = 0; j < tend.boxn; j++) add_box(P, (tend).boxes[j]); |
| 2329 |
for (j = 0; j < boxn; j++) add_box(P, Z.z().boxes[j]); |
| 2330 |
for (j = hend.boxn - 1; j >= 0; j--) add_box(P, (hend).boxes[j]); |
| 2331 |
if (et == (5 << 1)) ps = routesplines(P, pn); |
| 2332 |
else ps = routepolylines(P, pn); |
| 2333 |
if (pn[0] == 0) |
| 2334 |
return; |
| 2335 |
clip_and_install(e, aghead(e), ps, pn[0], Z.z().sinfo); |
| 2336 |
P.nbox = 0; |
| 2337 |
} |
| 2338 |
} finally { |
| 2339 |
LEAVING("6yr3jfkljl5w0z6dv354ryx63","make_flat_edge"); |
| 2340 |
} |
| 2341 |
} |
| 2342 |
|
| 2343 |
|
| 2344 |
|
| 2345 |
|
| 2346 |
|
| 2347 |
|
| 2348 |
public static Object leftOf(Object... arg) { |
| 2349 |
UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); |
| 2350 |
UNSUPPORTED("iqhj2moads3aafqx5xa8j44g"); |
| 2351 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 2352 |
UNSUPPORTED("5azgw3jpyk2yccpp3p4s3q817"); |
| 2353 |
UNSUPPORTED("42n6sq1mbcvm3tugypozccbua"); |
| 2354 |
UNSUPPORTED("7y9r79gtx363mln6v9yaisvz6"); |
| 2355 |
UNSUPPORTED("8y4f8e0mnow6139qoguzsxojx"); |
| 2356 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 2357 |
|
| 2358 |
throw new UnsupportedOperationException(); |
| 2359 |
} |
| 2360 |
|
| 2361 |
|
| 2362 |
|
| 2363 |
|
| 2364 |
|
| 2365 |
|
| 2366 |
public static int makeLineEdge(ST_Agraph_s g, ST_Agedge_s fe, __ptr__ points, __ptr__ hp) { |
| 2367 |
ENTERING("2n9bpvx34fnukqu1f9u4v7v6n","makeLineEdge"); |
| 2368 |
try { |
| 2369 |
UNSUPPORTED("d9cz56vtrl0ri6hz88cumukuf"); |
| 2370 |
UNSUPPORTED("1act0rov08v6lg5ydqldks7d1"); |
| 2371 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 2372 |
UNSUPPORTED("awgar8whid8l1c7lyj8w53w3i"); |
| 2373 |
UNSUPPORTED("ewlm0dtv1gpudqhfx5nsr9d77"); |
| 2374 |
UNSUPPORTED("cncpk333257fxnc9w8kfl8m70"); |
| 2375 |
UNSUPPORTED("etezq0kgy6mttiwr53pna62d7"); |
| 2376 |
UNSUPPORTED("3ll9r1mvzzbhqrs4dwsduif44"); |
| 2377 |
UNSUPPORTED("bgjjpl6jaaa122twwwd0vif6x"); |
| 2378 |
UNSUPPORTED("gdtli7sq5cifvdpg3ecrudew"); |
| 2379 |
UNSUPPORTED("1pa1p9mnpooqack43qfpnoio2"); |
| 2380 |
UNSUPPORTED("bdmai1d040qmubf08ds339v9x"); |
| 2381 |
UNSUPPORTED("axoua6xpo7xc40u2oj0a8dmr9"); |
| 2382 |
UNSUPPORTED("d0x4emyekwlcpua99voy3764p"); |
| 2383 |
UNSUPPORTED("b4x4vd9cei4o3tjifzw7pdec6"); |
| 2384 |
UNSUPPORTED("447fk34earndyf1qvvzttsxtk"); |
| 2385 |
UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); |
| 2386 |
UNSUPPORTED("cbnarpi971ox21zdds7a60axh"); |
| 2387 |
UNSUPPORTED("o7usaxh5vv7rla55dxzkfmk7"); |
| 2388 |
UNSUPPORTED("48h6vk2e5niep4dmpua377248"); |
| 2389 |
UNSUPPORTED("8fokfn1629eyiqnzi7mey9o2q"); |
| 2390 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2391 |
UNSUPPORTED("1nyzbeonram6636b1w955bypn"); |
| 2392 |
UNSUPPORTED("3uxftvwe3olgfi579s8izpl76"); |
| 2393 |
UNSUPPORTED("akhrhgryddg74jqispnh1j1nn"); |
| 2394 |
UNSUPPORTED("dqdai9l5thna19ynowkfwstuh"); |
| 2395 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2396 |
UNSUPPORTED("brrmfllffwlnqxljgrwy8x5pq"); |
| 2397 |
UNSUPPORTED("et7phi46cskfaxzpfo97e1s5s"); |
| 2398 |
UNSUPPORTED("z26zaj60vrdy38k1c2vk7law"); |
| 2399 |
UNSUPPORTED("6mcl7j0bp09d061f0dywd1ru8"); |
| 2400 |
UNSUPPORTED("eax7dzvpgqzsiffa2dn2idrxe"); |
| 2401 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 2402 |
UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); |
| 2403 |
UNSUPPORTED("de3o94hui5i4dbq9moun6h57f"); |
| 2404 |
UNSUPPORTED("41ge1nnwfokwi43f6tlkgmvb0"); |
| 2405 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 2406 |
UNSUPPORTED("d9umd1qjkl4kkybpd7se993ij"); |
| 2407 |
UNSUPPORTED("arxilpbzpy5a2s8skwl644jj2"); |
| 2408 |
UNSUPPORTED("7bfb4rovu9obr4fje0hi95e67"); |
| 2409 |
UNSUPPORTED("7y2ejp6vr760aqh5qp4v5zdc8"); |
| 2410 |
UNSUPPORTED("9l9roc1u8a03ljwm2mmeaiqq2"); |
| 2411 |
UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); |
| 2412 |
UNSUPPORTED("a4spf3n199lr00qkdb3vb8i6c"); |
| 2413 |
UNSUPPORTED("f15m64yxj1oq475bvrt63d5gf"); |
| 2414 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 2415 |
UNSUPPORTED("8ew9p3k3j0b33dnq0ntgbb6x8"); |
| 2416 |
UNSUPPORTED("16h577fdghqtaeot735guew4e"); |
| 2417 |
UNSUPPORTED("9zjfovamhwwehbviws68s5woy"); |
| 2418 |
UNSUPPORTED("1uunj4jbr2uhiqxwor6rzmr3j"); |
| 2419 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2420 |
UNSUPPORTED("1nyzbeonram6636b1w955bypn"); |
| 2421 |
UNSUPPORTED("8ew9p3k3j0b33dnq0ntgbb6x8"); |
| 2422 |
UNSUPPORTED("aztkfl5qctibiu6en7xf6xf3e"); |
| 2423 |
UNSUPPORTED("5rmgdadjn23z8djo32eh9bhzd"); |
| 2424 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 2425 |
UNSUPPORTED("abnopd2ggrpdb538wf7zsmrhq"); |
| 2426 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 2427 |
|
| 2428 |
throw new UnsupportedOperationException(); |
| 2429 |
} finally { |
| 2430 |
LEAVING("2n9bpvx34fnukqu1f9u4v7v6n","makeLineEdge"); |
| 2431 |
} |
| 2432 |
} |
| 2433 |
|
| 2434 |
|
| 2435 |
|
| 2436 |
|
| 2437 |
|
| 2438 |
|
| 2439 |
|
| 2440 |
|
| 2441 |
|
| 2442 |
|
| 2443 |
public static void make_regular_edge(ST_Agraph_s g, ST_spline_info_t sp, ST_path P, ST_Agedge_s.ArrayOfStar edges, int ind, int cnt, int et) { |
| 2444 |
ENTERING("30wfq1dby4t07hft9io52nq6z","make_regular_edge"); |
| 2445 |
try { |
| 2446 |
ST_Agnode_s tn, hn = null; |
| 2447 |
final ST_Agedgeinfo_t fwdedgeai = new ST_Agedgeinfo_t(), fwdedgebi = new ST_Agedgeinfo_t(), fwdedgei = new ST_Agedgeinfo_t(); |
| 2448 |
final ST_Agedgepair_s fwdedgea = new ST_Agedgepair_s(), fwdedgeb = new ST_Agedgepair_s(), fwdedge = new ST_Agedgepair_s(); |
| 2449 |
ST_Agedge_s e, fe, le, segfirst; |
| 2450 |
ST_pointf.Array ps = null; |
| 2451 |
final ST_pathend_t tend = new ST_pathend_t(), hend = new ST_pathend_t(); |
| 2452 |
final ST_boxf b = new ST_boxf(); |
| 2453 |
int boxn, sl, si, i, j, dx, hackflag, longedge; |
| 2454 |
boolean smode; |
| 2455 |
int pn[] = new int[] {0}; |
| 2456 |
int pointn[] = new int[] {0}; |
| 2457 |
fwdedgea.out.base.setPtr("data", fwdedgeai); |
| 2458 |
fwdedgeb.out.base.setPtr("data", fwdedgebi); |
| 2459 |
fwdedge.out.base.setPtr("data", fwdedgei); |
| 2460 |
if (N(Z.z().pointfs)) { |
| 2461 |
Z.z().pointfs = new ST_pointf.Array(2000); |
| 2462 |
Z.z().pointfs2 = new ST_pointf.Array(2000); |
| 2463 |
Z.z().numpts = 2000; |
| 2464 |
Z.z().numpts2 = 2000; |
| 2465 |
} |
| 2466 |
sl = 0; |
| 2467 |
e = (ST_Agedge_s) edges.get(ind); |
| 2468 |
hackflag = 0; |
| 2469 |
if (ABS(ND_rank(agtail(e)) - ND_rank(aghead(e))) > 1) { |
| 2470 |
UNSUPPORTED("8f17srpa5iisomehrb4b01h51"); |
| 2471 |
UNSUPPORTED("97znyysf99vzzwpgnqcpp5yek"); |
| 2472 |
UNSUPPORTED("b6jipryp9p354gtq9lwa35lzj"); |
| 2473 |
UNSUPPORTED("568s5ftes1chv9n1s98g9cncf"); |
| 2474 |
UNSUPPORTED("9hw2l0eu91vauhvj3cxf3andc"); |
| 2475 |
UNSUPPORTED("1rql0qzotc0yyozcfkj9p8xkm"); |
| 2476 |
UNSUPPORTED("dw3p473qmkgjvxewsr8pimi2h"); |
| 2477 |
UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); |
| 2478 |
UNSUPPORTED("2gys0bodxz4fbasfnrvx6ivg2"); |
| 2479 |
UNSUPPORTED("1qqbo2mfls7xhbdno0no8xq54"); |
| 2480 |
UNSUPPORTED("980ksnsma7kvvr9755ge8bhzh"); |
| 2481 |
UNSUPPORTED("6le0rehxs2odmv3zg1qg5wvd4"); |
| 2482 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 2483 |
UNSUPPORTED("3p0d08nntark676jlv1jl0j27"); |
| 2484 |
UNSUPPORTED("6tmwmfqoz3y8k44xamrpv82tl"); |
| 2485 |
UNSUPPORTED("1c19c7ftue4zoibf7d2tm6uxy"); |
| 2486 |
UNSUPPORTED("d29k9lzj5g3d8dfxigwogdnoe"); |
| 2487 |
UNSUPPORTED("36l0czce101bg0wbmu68xjd7z"); |
| 2488 |
UNSUPPORTED("497rb9p6jdgdoyem0y42ecy6c"); |
| 2489 |
UNSUPPORTED("4tjj1vbw4mog2qlouazrdirvw"); |
| 2490 |
UNSUPPORTED("8kdma1vi9aibo7isrge0lunrh"); |
| 2491 |
UNSUPPORTED("eih8eaai768x1un5mixrtgstp"); |
| 2492 |
UNSUPPORTED("bxkpl0bp0qhtxaj6rspd19d1k"); |
| 2493 |
} else { |
| 2494 |
if ((ED_tree_index(e) & 32)!=0) { |
| 2495 |
MAKEFWDEDGE(fwdedgea.out, e); |
| 2496 |
e = fwdedgea.out; |
| 2497 |
} |
| 2498 |
} |
| 2499 |
fe = e; |
| 2500 |
|
| 2501 |
if ((et == (1 << 1)) && (pointn[0] = makeLineEdge (g, fe, Z.z().pointfs, hn.unsupported()))!=0) { |
| 2502 |
} |
| 2503 |
else { |
| 2504 |
boolean splines = (et == (5 << 1)); |
| 2505 |
boxn = 0; |
| 2506 |
pointn[0] = 0; |
| 2507 |
segfirst = e; |
| 2508 |
tn = agtail(e); |
| 2509 |
hn = aghead(e); |
| 2510 |
b.___(maximal_bbox(g, sp, tn, null, e)); |
| 2511 |
tend.nb.___(b); |
| 2512 |
beginpath(P, e, 1, tend, spline_merge(tn)); |
| 2513 |
b.UR.y = |
| 2514 |
(tend).boxes[tend.boxn - 1].UR.y; |
| 2515 |
b.LL.y = |
| 2516 |
(tend).boxes[tend.boxn - 1].LL.y; |
| 2517 |
b.___(makeregularend(b, (1<<0), |
| 2518 |
ND_coord(tn).y - GD_rank(g).get(ND_rank(tn)).ht1)); |
| 2519 |
if (b.LL.x < b.UR.x && b.LL.y < b.UR.y) |
| 2520 |
{ |
| 2521 |
tend.boxes[tend.boxn].___(b); |
| 2522 |
tend.setInt("boxn", tend.boxn + 1); |
| 2523 |
} |
| 2524 |
longedge = 0; |
| 2525 |
smode = false; si = -1; |
| 2526 |
while (ND_node_type(hn) == 1 && N(((Boolean)Z.z().sinfo.splineMerge.exe(hn)).booleanValue())) { |
| 2527 |
longedge = 1; |
| 2528 |
Z.z().boxes[boxn++].___(rank_box(sp, g, ND_rank(tn))); |
| 2529 |
if (N(smode) |
| 2530 |
&& ((sl = straight_len(hn)) >= |
| 2531 |
((GD_has_labels(g) & (1 << 0))!=0 ? 4 + 1 : 2 + 1))) { |
| 2532 |
smode = NOT(false); |
| 2533 |
si = 1; sl -= 2; |
| 2534 |
} |
| 2535 |
if (N(smode) || si > 0) { |
| 2536 |
si--; |
| 2537 |
Z.z().boxes[boxn++].___(maximal_bbox(g, sp, hn, e, (ST_Agedge_s) ND_out(hn).getFromList(0))); |
| 2538 |
e = (ST_Agedge_s) ND_out(hn).getFromList(0); |
| 2539 |
tn = agtail(e); |
| 2540 |
hn = aghead(e); |
| 2541 |
continue; |
| 2542 |
} |
| 2543 |
hend.setStruct("nb", maximal_bbox(g, sp, hn, e, (ST_Agedge_s) ND_out(hn).getFromList(0))); |
| 2544 |
endpath(P, e, 1, hend, spline_merge(aghead(e))); |
| 2545 |
b.___(makeregularend((hend).boxes[hend.boxn - 1], (1<<2), |
| 2546 |
ND_coord(hn).y + GD_rank(g).get(ND_rank(hn)).ht2)); |
| 2547 |
if (b.LL.x < b.UR.x && b.LL.y < b.UR.y) |
| 2548 |
UNSUPPORTED("1crhubfzekx1qi2ti9ajqsfoc"); |
| 2549 |
P.end.setDouble("theta", M_PI / 2); |
| 2550 |
P.end.constrained= NOTI(false); |
| 2551 |
completeregularpath(P, segfirst, e, tend, hend, Z.z().boxes, boxn, 1); |
| 2552 |
if (splines) ps = routesplines(P, pn); |
| 2553 |
else { |
| 2554 |
UNSUPPORTED("biyp75vm751j3qmqacagfej4b"); |
| 2555 |
UNSUPPORTED("4fmdmgg43suu7ppgrcaofwqzh"); |
| 2556 |
UNSUPPORTED("2ftwbx9nsy10ldzds3ej4hxi7"); |
| 2557 |
UNSUPPORTED("2fedie0btpk43e74p462n0y4n"); |
| 2558 |
UNSUPPORTED("3fwatldph3opctz8aieqd214d"); |
| 2559 |
UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); |
| 2560 |
} |
| 2561 |
if (pn[0] == 0) |
| 2562 |
return; |
| 2563 |
if (pointn[0] + pn[0] > Z.z().numpts) { |
| 2564 |
|
| 2565 |
|
| 2566 |
|
| 2567 |
UNSUPPORTED("k37sqlxbjikqg4xdonnvefo3"); |
| 2568 |
UNSUPPORTED("8kbxhk7qirj3tr7hn1ukwar3h"); |
| 2569 |
} |
| 2570 |
for (i = 0; i < pn[0]; i++) { |
| 2571 |
Z.z().pointfs.plus(pointn[0]++).setStruct(ps.plus(i).getStruct()); |
| 2572 |
} |
| 2573 |
e = straight_path((ST_Agedge_s)ND_out(hn).getFromList(0), sl, Z.z().pointfs, pointn); |
| 2574 |
recover_slack(segfirst, P); |
| 2575 |
segfirst = e; |
| 2576 |
tn = agtail(e); |
| 2577 |
hn = aghead(e); |
| 2578 |
boxn = 0; |
| 2579 |
tend.setStruct("nb", maximal_bbox(g, sp, tn, (ST_Agedge_s) ND_in(tn).getFromList(0), e)); |
| 2580 |
beginpath(P, e, 1, tend, spline_merge(tn)); |
| 2581 |
b.___(makeregularend((tend).boxes[tend.boxn - 1], (1<<0), |
| 2582 |
ND_coord(tn).y - GD_rank(g).get(ND_rank(tn)).ht1)); |
| 2583 |
if (b.LL.x < b.UR.x && b.LL.y < b.UR.y) |
| 2584 |
UNSUPPORTED("cjx6tldge3otk1pk6ks1pkn2w"); |
| 2585 |
P.start.setDouble("theta", -M_PI / 2); |
| 2586 |
P.start.constrained= NOTI(false); |
| 2587 |
smode = false; |
| 2588 |
} |
| 2589 |
Z.z().boxes[boxn++].___(rank_box(sp, g, ND_rank(tn))); |
| 2590 |
b.___(maximal_bbox(g, sp, hn, e, null)); |
| 2591 |
hend.nb.___(b); |
| 2592 |
endpath(P, (ST_Agedge_s) (hackflag!=0 ? fwdedgeb.out : e), 1, hend, spline_merge(aghead(e))); |
| 2593 |
b.UR.y = (hend).boxes[hend.boxn - 1].UR.y; |
| 2594 |
b.LL.y = (hend).boxes[hend.boxn - 1].LL.y; |
| 2595 |
b.___(makeregularend(b, (1<<2), |
| 2596 |
ND_coord(hn).y + GD_rank(g).get(ND_rank(hn)).ht2)); |
| 2597 |
if (b.LL.x < b.UR.x && b.LL.y < b.UR.y) |
| 2598 |
{ |
| 2599 |
hend.boxes[hend.boxn].___(b); |
| 2600 |
hend.setInt("boxn", hend.boxn+1); |
| 2601 |
} |
| 2602 |
completeregularpath(P, segfirst, e, tend, hend, Z.z().boxes, boxn, |
| 2603 |
longedge); |
| 2604 |
if (splines) ps = routesplines(P, pn); |
| 2605 |
else ps = routepolylines (P, pn); |
| 2606 |
if ((et == (1 << 1)) && (pn[0] > 4)) { |
| 2607 |
|
| 2608 |
|
| 2609 |
|
| 2610 |
|
| 2611 |
UNSUPPORTED("1u7e6lrkiipml54kkm7ylw56t"); |
| 2612 |
UNSUPPORTED("76bh6z0xok01d0gdybxcx4ful"); |
| 2613 |
UNSUPPORTED("95b6xp8h5ai070bekyjhmiehh"); |
| 2614 |
} |
| 2615 |
if (pn[0] == 0) |
| 2616 |
return; |
| 2617 |
if (pointn[0] + pn[0] > Z.z().numpts) { |
| 2618 |
UNSUPPORTED("c6ux5effs02grz7xh3k8ernda"); |
| 2619 |
UNSUPPORTED("bedaqcn9h03q6ia6zbezuee1m"); |
| 2620 |
} |
| 2621 |
for (i = 0; i < pn[0]; i++) { |
| 2622 |
Z.z().pointfs.plus(pointn[0]).setStruct(ps.plus(i).getStruct()); |
| 2623 |
pointn[0]++; |
| 2624 |
} |
| 2625 |
recover_slack(segfirst, P); |
| 2626 |
hn = hackflag!=0 ? aghead(fwdedgeb.out) : aghead(e); |
| 2627 |
} |
| 2628 |
|
| 2629 |
if (cnt == 1) { |
| 2630 |
clip_and_install(fe, hn, Z.z().pointfs, pointn[0], Z.z().sinfo); |
| 2631 |
return; |
| 2632 |
} |
| 2633 |
dx = sp.Multisep * (cnt - 1) / 2; |
| 2634 |
for (i = 1; i < pointn[0] - 1; i++) |
| 2635 |
Z.z().pointfs.plus(i).setDouble("x", Z.z().pointfs.get(i).x - dx); |
| 2636 |
if (Z.z().numpts > Z.z().numpts2) { |
| 2637 |
UNSUPPORTED("9ubr4m7bdv5f5ldk2ta6yw3up"); |
| 2638 |
UNSUPPORTED("8qwp7ddy5ztgam63fzfjmu890"); |
| 2639 |
} |
| 2640 |
for (i = 0; i < pointn[0]; i++) |
| 2641 |
Z.z().pointfs2.plus(i).setStruct(Z.z().pointfs.plus(i).getStruct()); |
| 2642 |
clip_and_install(fe, hn, Z.z().pointfs2, pointn[0], Z.z().sinfo); |
| 2643 |
for (j = 1; j < cnt; j++) { |
| 2644 |
e = (ST_Agedge_s) edges.plus(ind + j).getPtr(); |
| 2645 |
if ((ED_tree_index(e) & 32)!=0) { |
| 2646 |
MAKEFWDEDGE(fwdedge.out, e); |
| 2647 |
e = (ST_Agedge_s) fwdedge.out; |
| 2648 |
} |
| 2649 |
for (i = 1; i < pointn[0] - 1; i++) |
| 2650 |
Z.z().pointfs.plus(i).setDouble("x", Z.z().pointfs.get(i).x + sp.Multisep); |
| 2651 |
for (i = 0; i < pointn[0]; i++) |
| 2652 |
Z.z().pointfs2.plus(i).setStruct(Z.z().pointfs.plus(i).getStruct()); |
| 2653 |
clip_and_install(e, aghead(e), Z.z().pointfs2, pointn[0], Z.z().sinfo); |
| 2654 |
} |
| 2655 |
} finally { |
| 2656 |
LEAVING("30wfq1dby4t07hft9io52nq6z","make_regular_edge"); |
| 2657 |
} |
| 2658 |
} |
| 2659 |
|
| 2660 |
|
| 2661 |
|
| 2662 |
|
| 2663 |
|
| 2664 |
|
| 2665 |
public static void completeregularpath(ST_path P, ST_Agedge_s first, ST_Agedge_s last, ST_pathend_t tendp, ST_pathend_t hendp, ST_boxf[] boxes, int boxn, int flag) { |
| 2666 |
ENTERING("va61hggynvb6z6j34w7otmab","completeregularpath"); |
| 2667 |
try { |
| 2668 |
ST_Agedge_s uleft, uright, lleft, lright; |
| 2669 |
int i, fb, lb; |
| 2670 |
ST_splines spl; |
| 2671 |
ST_pointf.Array pp; |
| 2672 |
int pn; |
| 2673 |
fb = lb = -1; |
| 2674 |
uleft = uright = null; |
| 2675 |
uleft = top_bound(first, -1); |
| 2676 |
uright = top_bound(first, 1); |
| 2677 |
if (uleft!=null) { |
| 2678 |
if (N(spl = getsplinepoints(uleft))) return; |
| 2679 |
pp = ((ST_bezier)spl.list.get(0).getPtr()).list; |
| 2680 |
pn = spl.list.get(0).size; |
| 2681 |
} |
| 2682 |
if (uright!=null) { |
| 2683 |
if (N(spl = getsplinepoints(uright))) return; |
| 2684 |
pp = ((ST_bezier)spl.list.get(0).getPtr()).list; |
| 2685 |
pn = spl.list.get(0).size; |
| 2686 |
} |
| 2687 |
lleft = lright = null; |
| 2688 |
lleft = bot_bound(last, -1); |
| 2689 |
lright = bot_bound(last, 1); |
| 2690 |
if (lleft!=null) { |
| 2691 |
if (N(spl = getsplinepoints(lleft))) return; |
| 2692 |
pp = ((ST_bezier)spl.list.plus(spl.size - 1).getPtr().getPtr()).list; |
| 2693 |
pn = spl.list.plus(spl.size - 1).getPtr().size; |
| 2694 |
} |
| 2695 |
if (lright!=null) { |
| 2696 |
if (N(spl = getsplinepoints(lright))) return; |
| 2697 |
pp = ((ST_bezier)spl.list.plus(spl.size - 1).getPtr().getPtr()).list; |
| 2698 |
pn = spl.list.plus(spl.size - 1).getPtr().size; |
| 2699 |
} |
| 2700 |
for (i = 0; i < tendp.boxn; i++) |
| 2701 |
add_box(P, (tendp).boxes[i]); |
| 2702 |
fb = P.nbox + 1; |
| 2703 |
lb = fb + boxn - 3; |
| 2704 |
for (i = 0; i < boxn; i++) |
| 2705 |
add_box(P, boxes[i]); |
| 2706 |
for (i = hendp.boxn - 1; i >= 0; i--) |
| 2707 |
add_box(P, (hendp).boxes[i]); |
| 2708 |
adjustregularpath(P, fb, lb); |
| 2709 |
} finally { |
| 2710 |
LEAVING("va61hggynvb6z6j34w7otmab","completeregularpath"); |
| 2711 |
} |
| 2712 |
} |
| 2713 |
|
| 2714 |
|
| 2715 |
|
| 2716 |
|
| 2717 |
|
| 2718 |
|
| 2719 |
public static ST_boxf makeregularend(final ST_boxf b, int side, double y) { |
| 2720 |
|
| 2721 |
return makeregularend_w_(b.copy(), side, y).copy(); |
| 2722 |
} |
| 2723 |
private static ST_boxf makeregularend_w_(final ST_boxf b, int side, double y) { |
| 2724 |
ENTERING("3wwhczhpkcnflwr1l9wcga7tq","makeregularend"); |
| 2725 |
try { |
| 2726 |
final ST_boxf newb = new ST_boxf(); |
| 2727 |
switch (side) { |
| 2728 |
case (1<<0): |
| 2729 |
newb.___(boxfof(b.LL.x, y, b.UR.x, b.LL.y)); |
| 2730 |
break; |
| 2731 |
case (1<<2): |
| 2732 |
newb.___(boxfof(b.LL.x, b.UR.y, b.UR.x, y)); |
| 2733 |
break; |
| 2734 |
} |
| 2735 |
return newb; |
| 2736 |
} finally { |
| 2737 |
LEAVING("3wwhczhpkcnflwr1l9wcga7tq","makeregularend"); |
| 2738 |
} |
| 2739 |
} |
| 2740 |
|
| 2741 |
|
| 2742 |
|
| 2743 |
|
| 2744 |
|
| 2745 |
|
| 2746 |
public static void adjustregularpath(ST_path P, int fb, int lb) { |
| 2747 |
ENTERING("88xrlzjovkxcnay9b2y5zyiid","adjustregularpath"); |
| 2748 |
try { |
| 2749 |
ST_boxf bp1, bp2; |
| 2750 |
int i, x; |
| 2751 |
for (i = fb-1; i < lb+1; i++) { |
| 2752 |
bp1 = (ST_boxf) P.boxes[i]; |
| 2753 |
if ((i - fb) % 2 == 0) { |
| 2754 |
if (bp1.LL.x >= bp1.UR.x) { |
| 2755 |
x = (int)((bp1.LL.x + bp1.UR.x) / 2); |
| 2756 |
bp1.LL.setDouble("x", x - 8); |
| 2757 |
bp1.UR.setDouble("x", x + 8); |
| 2758 |
} |
| 2759 |
} else { |
| 2760 |
if (bp1.LL.x + 16 > bp1.UR.x) { |
| 2761 |
x = (int)((bp1.LL.x + bp1.UR.x) / 2); |
| 2762 |
bp1.LL.setDouble("x", x - 8); |
| 2763 |
bp1.UR.setDouble("x", x + 8); |
| 2764 |
} |
| 2765 |
} |
| 2766 |
} |
| 2767 |
for (i = 0; i < P.nbox - 1; i++) { |
| 2768 |
bp1 = (ST_boxf) P.boxes[i]; |
| 2769 |
bp2 = (ST_boxf) P.boxes[i+1]; |
| 2770 |
if (i >= fb && i <= lb && (i - fb) % 2 == 0) { |
| 2771 |
if (bp1.LL.x + 16 > bp2.UR.x) |
| 2772 |
bp2.UR.setDouble("x", bp1.LL.x + 16); |
| 2773 |
if (bp1.UR.x - 16 < bp2.LL.x) |
| 2774 |
bp2.LL.setDouble("x", bp1.UR.x - 16); |
| 2775 |
} else if (i + 1 >= fb && i < lb && (i + 1 - fb) % 2 == 0) { |
| 2776 |
if (bp1.LL.x + 16 > bp2.UR.x) |
| 2777 |
bp1.LL.setDouble("x", bp2.UR.x - 16); |
| 2778 |
if (bp1.UR.x - 16 < bp2.LL.x) |
| 2779 |
bp1.UR.setDouble("x", bp2.LL.x + 16); |
| 2780 |
} |
| 2781 |
} |
| 2782 |
} finally { |
| 2783 |
LEAVING("88xrlzjovkxcnay9b2y5zyiid","adjustregularpath"); |
| 2784 |
} |
| 2785 |
} |
| 2786 |
|
| 2787 |
|
| 2788 |
|
| 2789 |
|
| 2790 |
|
| 2791 |
|
| 2792 |
public static ST_boxf rank_box(ST_spline_info_t sp, ST_Agraph_s g, int r) { |
| 2793 |
|
| 2794 |
return rank_box_w_(sp, g, r).copy(); |
| 2795 |
} |
| 2796 |
private static ST_boxf rank_box_w_(ST_spline_info_t sp, ST_Agraph_s g, int r) { |
| 2797 |
ENTERING("bajn5vx0isu427n6dh131b985","rank_box"); |
| 2798 |
try { |
| 2799 |
final ST_boxf b = new ST_boxf(); |
| 2800 |
ST_Agnode_s left0, left1; |
| 2801 |
b.___(sp.Rank_box[r]); |
| 2802 |
if (b.LL.x == b.UR.x) { |
| 2803 |
left0 = (ST_Agnode_s) GD_rank(g).get(r).v.get(0); |
| 2804 |
|
| 2805 |
left1 = (ST_Agnode_s) GD_rank(g).get(r + 1).v.get(0); |
| 2806 |
|
| 2807 |
b.LL.x = sp.LeftBound; |
| 2808 |
b.LL.y = ND_coord(left1).y + GD_rank(g).get(r + 1).ht2; |
| 2809 |
b.UR.x = sp.RightBound; |
| 2810 |
b.UR.y = ND_coord(left0).y - GD_rank(g).get(r).ht1; |
| 2811 |
sp.Rank_box[r].setStruct(b); |
| 2812 |
} |
| 2813 |
return b; |
| 2814 |
} finally { |
| 2815 |
LEAVING("bajn5vx0isu427n6dh131b985","rank_box"); |
| 2816 |
} |
| 2817 |
} |
| 2818 |
|
| 2819 |
|
| 2820 |
|
| 2821 |
|
| 2822 |
|
| 2823 |
|
| 2824 |
public static int straight_len(ST_Agnode_s n) { |
| 2825 |
ENTERING("6qwcnugx2ytjrvi5rgxzyzg5i","straight_len"); |
| 2826 |
try { |
| 2827 |
int cnt = 0; |
| 2828 |
ST_Agnode_s v; |
| 2829 |
v = n; |
| 2830 |
while (true) { |
| 2831 |
v = (ST_Agnode_s) aghead(ND_out(v).getFromList(0)); |
| 2832 |
if (ND_node_type(v) != 1) |
| 2833 |
break; |
| 2834 |
if ((ND_out(v).size != 1) || (ND_in(v).size != 1)) |
| 2835 |
break; |
| 2836 |
if (ND_coord(v).x != ND_coord(n).x) |
| 2837 |
break; |
| 2838 |
cnt++; |
| 2839 |
} |
| 2840 |
return cnt; |
| 2841 |
} finally { |
| 2842 |
LEAVING("6qwcnugx2ytjrvi5rgxzyzg5i","straight_len"); |
| 2843 |
} |
| 2844 |
} |
| 2845 |
|
| 2846 |
|
| 2847 |
|
| 2848 |
|
| 2849 |
|
| 2850 |
|
| 2851 |
public static ST_Agedge_s straight_path(ST_Agedge_s e, int cnt, __ptr__ plist, int np[]) { |
| 2852 |
ENTERING("15pgjjuil2c1rjldu29j07gbz","straight_path"); |
| 2853 |
try { |
| 2854 |
int n = np[0]; |
| 2855 |
ST_Agedge_s f = e; |
| 2856 |
while ((cnt--)!=0) |
| 2857 |
f = (ST_Agedge_s) ND_out(aghead(f)).getFromList(0); |
| 2858 |
plist.plus(np[0]++).setStruct(plist.plus(n - 1).getStruct()); |
| 2859 |
plist.plus(np[0]++).setStruct(plist.plus(n - 1).getStruct()); |
| 2860 |
plist.plus(np[0]).setStruct(ND_coord(agtail(f))); |
| 2861 |
return f; |
| 2862 |
} finally { |
| 2863 |
LEAVING("15pgjjuil2c1rjldu29j07gbz","straight_path"); |
| 2864 |
} |
| 2865 |
} |
| 2866 |
|
| 2867 |
|
| 2868 |
|
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
public static void recover_slack(ST_Agedge_s e, ST_path p) { |
| 2873 |
ENTERING("4ilkzqtegd5uffawb4qcjthu1","recover_slack"); |
| 2874 |
try { |
| 2875 |
int b; |
| 2876 |
ST_Agnode_s vn; |
| 2877 |
b = 0; |
| 2878 |
for (vn = aghead(e); |
| 2879 |
ND_node_type(vn) == 1 && N(((Boolean)Z.z().sinfo.splineMerge.exe(vn)).booleanValue()); |
| 2880 |
vn = aghead(ND_out(vn).getFromList(0))) { |
| 2881 |
while ((b < p.nbox) && (p.boxes[b].LL.y > ND_coord(vn).y)) |
| 2882 |
b++; |
| 2883 |
if (b >= p.nbox) |
| 2884 |
break; |
| 2885 |
if (p.boxes[b].UR.y < ND_coord(vn).y) |
| 2886 |
continue; |
| 2887 |
if (ND_label(vn)!=null) |
| 2888 |
resize_vn(vn, (int)p.boxes[b].LL.x, (int)p.boxes[b].UR.x, |
| 2889 |
(int)(p.boxes[b].UR.x + ND_rw(vn))); |
| 2890 |
else |
| 2891 |
resize_vn(vn, (int)p.boxes[b].LL.x, (int)((p.boxes[b].LL.x + |
| 2892 |
p.boxes[b].UR.x) / 2), |
| 2893 |
(int)p.boxes[b].UR.x); |
| 2894 |
} |
| 2895 |
} finally { |
| 2896 |
LEAVING("4ilkzqtegd5uffawb4qcjthu1","recover_slack"); |
| 2897 |
} |
| 2898 |
} |
| 2899 |
|
| 2900 |
|
| 2901 |
|
| 2902 |
|
| 2903 |
|
| 2904 |
|
| 2905 |
public static void resize_vn(ST_Agnode_s vn, int lx, int cx, int rx) { |
| 2906 |
ENTERING("3vmg1q1r0eb14etvjdk4cukpd","resize_vn"); |
| 2907 |
try { |
| 2908 |
ND_coord(vn).setDouble("x", cx); |
| 2909 |
ND_lw(vn, cx - lx); |
| 2910 |
ND_rw(vn, rx - cx); |
| 2911 |
} finally { |
| 2912 |
LEAVING("3vmg1q1r0eb14etvjdk4cukpd","resize_vn"); |
| 2913 |
} |
| 2914 |
} |
| 2915 |
|
| 2916 |
|
| 2917 |
|
| 2918 |
|
| 2919 |
|
| 2920 |
|
| 2921 |
public static ST_Agedge_s top_bound(ST_Agedge_s e, int side) { |
| 2922 |
ENTERING("9t0v5wicmjuc3ij9hko6iawle","top_bound"); |
| 2923 |
try { |
| 2924 |
ST_Agedge_s f, ans = null; |
| 2925 |
int i; |
| 2926 |
for (i = 0; (f = (ST_Agedge_s) ND_out(agtail(e)).getFromList(i))!=null; i++) { |
| 2927 |
if (side * (ND_order(aghead(f)) - ND_order(aghead(e))) <= 0) |
| 2928 |
continue; |
| 2929 |
if ((ED_spl(f) == null) |
| 2930 |
&& ((ED_to_orig(f) == null) || (ED_spl(ED_to_orig(f)) == null))) |
| 2931 |
continue; |
| 2932 |
if ((ans == null) |
| 2933 |
|| (side * (ND_order(aghead(ans)) - ND_order(aghead(f))) > 0)) |
| 2934 |
ans = f; |
| 2935 |
} |
| 2936 |
return ans; |
| 2937 |
} finally { |
| 2938 |
LEAVING("9t0v5wicmjuc3ij9hko6iawle","top_bound"); |
| 2939 |
} |
| 2940 |
} |
| 2941 |
|
| 2942 |
|
| 2943 |
|
| 2944 |
|
| 2945 |
|
| 2946 |
|
| 2947 |
public static ST_Agedge_s bot_bound(ST_Agedge_s e, int side) { |
| 2948 |
ENTERING("9fsg0uiyhtrayd4mimmc0i25e","bot_bound"); |
| 2949 |
try { |
| 2950 |
ST_Agedge_s f, ans = null; |
| 2951 |
int i; |
| 2952 |
for (i = 0; (f = (ST_Agedge_s) ND_in(aghead(e)).getFromList(i))!=null; i++) { |
| 2953 |
if (side * (ND_order(agtail(f)) - ND_order(agtail(e))) <= 0) |
| 2954 |
continue; |
| 2955 |
if ((ED_spl(f) == null) |
| 2956 |
&& ((ED_to_orig(f) == null) || (ED_spl(ED_to_orig(f)) == null))) |
| 2957 |
continue; |
| 2958 |
if ((ans == null) |
| 2959 |
|| (side * (ND_order(agtail(ans)) - ND_order(agtail(f))) > 0)) |
| 2960 |
ans = f; |
| 2961 |
} |
| 2962 |
return ans; |
| 2963 |
} finally { |
| 2964 |
LEAVING("9fsg0uiyhtrayd4mimmc0i25e","bot_bound"); |
| 2965 |
} |
| 2966 |
} |
| 2967 |
|
| 2968 |
|
| 2969 |
|
| 2970 |
|
| 2971 |
|
| 2972 |
|
| 2973 |
public static boolean cl_vninside(ST_Agraph_s cl, ST_Agnode_s n) { |
| 2974 |
ENTERING("65uvkv1mextaah5m997ibe3qs","cl_vninside"); |
| 2975 |
try { |
| 2976 |
return (BETWEEN(GD_bb(cl).LL.x, (double)(ND_coord(n).x), GD_bb(cl).UR.x) && |
| 2977 |
BETWEEN(GD_bb(cl).LL.y, (double)(ND_coord(n).y), GD_bb(cl).UR.y)); |
| 2978 |
} finally { |
| 2979 |
LEAVING("65uvkv1mextaah5m997ibe3qs","cl_vninside"); |
| 2980 |
} |
| 2981 |
} |
| 2982 |
|
| 2983 |
|
| 2984 |
|
| 2985 |
|
| 2986 |
|
| 2987 |
|
| 2988 |
public static ST_Agraph_s cl_bound(ST_Agraph_s g, ST_Agnode_s n, ST_Agnode_s adj) { |
| 2989 |
ENTERING("dzvvmxkya868w5x78lkvchigk","cl_bound"); |
| 2990 |
try { |
| 2991 |
ST_Agraph_s rv, cl, tcl, hcl; |
| 2992 |
ST_Agedge_s orig; |
| 2993 |
rv = null; |
| 2994 |
if (ND_node_type(n) == 0) |
| 2995 |
tcl = hcl = ND_clust(n); |
| 2996 |
else { |
| 2997 |
orig = ED_to_orig(ND_out(n).getFromList(0)); |
| 2998 |
tcl = ND_clust(agtail(orig)); |
| 2999 |
hcl = ND_clust(aghead(orig)); |
| 3000 |
} |
| 3001 |
if (ND_node_type(adj) == 0) { |
| 3002 |
cl = ( EQ(ND_clust(adj), g) ? null:ND_clust(adj)); |
| 3003 |
if (cl!=null && NEQ(cl, tcl) && NEQ(cl, hcl)) |
| 3004 |
rv = cl; |
| 3005 |
} else { |
| 3006 |
orig = ED_to_orig(ND_out(adj).getFromList(0)); |
| 3007 |
cl = ( EQ(ND_clust(agtail(orig)), g) ? null:ND_clust(agtail(orig))); |
| 3008 |
if (cl!=null && NEQ(cl, tcl) && NEQ(cl, hcl) && cl_vninside(cl, adj)) |
| 3009 |
rv = cl; |
| 3010 |
else { |
| 3011 |
cl = ( EQ(ND_clust(aghead(orig)), g) ? null:ND_clust(aghead(orig))); |
| 3012 |
if (cl!=null && NEQ(cl, tcl) && NEQ(cl, hcl) && cl_vninside(cl, adj)) |
| 3013 |
rv = cl; |
| 3014 |
} |
| 3015 |
} |
| 3016 |
return rv; |
| 3017 |
} finally { |
| 3018 |
LEAVING("dzvvmxkya868w5x78lkvchigk","cl_bound"); |
| 3019 |
} |
| 3020 |
} |
| 3021 |
|
| 3022 |
|
| 3023 |
|
| 3024 |
|
| 3025 |
|
| 3026 |
|
| 3027 |
public static ST_boxf maximal_bbox(ST_Agraph_s g, ST_spline_info_t sp, ST_Agnode_s vn, ST_Agedge_s ie, ST_Agedge_s oe) { |
| 3028 |
|
| 3029 |
return maximal_bbox_w_(g, sp, vn, ie, oe).copy(); |
| 3030 |
} |
| 3031 |
private static ST_boxf maximal_bbox_w_(ST_Agraph_s g, ST_spline_info_t sp, ST_Agnode_s vn, ST_Agedge_s ie, ST_Agedge_s oe) { |
| 3032 |
ENTERING("6qwgl36ugfnduc5x59ohuewv1","maximal_bbox"); |
| 3033 |
try { |
| 3034 |
double b, nb; |
| 3035 |
ST_Agraph_s left_cl, right_cl; |
| 3036 |
ST_Agnode_s left, right; |
| 3037 |
final ST_boxf rv = new ST_boxf(); |
| 3038 |
left_cl = right_cl = null; |
| 3039 |
|
| 3040 |
b = (double)(ND_coord(vn).x - ND_lw(vn) - 4); |
| 3041 |
if ((left = neighbor(g, vn, ie, oe, -1))!=null) { |
| 3042 |
if ((left_cl = cl_bound(g, vn, left))!=null) |
| 3043 |
nb = GD_bb(left_cl).UR.x + (double)(sp.Splinesep); |
| 3044 |
else { |
| 3045 |
nb = (double)(ND_coord(left).x + ND_mval(left)); |
| 3046 |
if (ND_node_type(left) == 0) |
| 3047 |
nb += GD_nodesep(g) / 2.; |
| 3048 |
else |
| 3049 |
nb += (double)(sp.Splinesep); |
| 3050 |
} |
| 3051 |
if (nb < b) |
| 3052 |
b = nb; |
| 3053 |
rv.LL.x = ROUND(b); |
| 3054 |
} else |
| 3055 |
rv.LL.x = MIN(ROUND(b), sp.LeftBound); |
| 3056 |
|
| 3057 |
if ((ND_node_type(vn) == 1) && (ND_label(vn)!=null)) |
| 3058 |
b = (double)(ND_coord(vn).x + 10); |
| 3059 |
else |
| 3060 |
b = (double)(ND_coord(vn).x + ND_rw(vn) + 4); |
| 3061 |
if ((right = neighbor(g, vn, ie, oe, 1))!=null) { |
| 3062 |
if ((right_cl = cl_bound(g, vn, right))!=null) |
| 3063 |
nb = GD_bb(right_cl).LL.x - (double)(sp.Splinesep); |
| 3064 |
else { |
| 3065 |
nb = ND_coord(right).x - ND_lw(right); |
| 3066 |
if (ND_node_type(right) == 0) |
| 3067 |
nb -= GD_nodesep(g) / 2.; |
| 3068 |
else |
| 3069 |
nb -= (double)(sp.Splinesep); |
| 3070 |
} |
| 3071 |
if (nb > b) |
| 3072 |
b = nb; |
| 3073 |
rv.UR.x = ROUND(b); |
| 3074 |
} else |
| 3075 |
rv.UR.x = MAX(ROUND(b), sp.RightBound); |
| 3076 |
if ((ND_node_type(vn) == 1) && (ND_label(vn)!=null)) { |
| 3077 |
rv.UR.x = rv.UR.x - ND_rw(vn); |
| 3078 |
if (rv.UR.x < rv.LL.x) rv.UR.x = ND_coord(vn).x; |
| 3079 |
} |
| 3080 |
rv.LL.y = ND_coord(vn).y - GD_rank(g).get(ND_rank(vn)).ht1; |
| 3081 |
rv.UR.y = ND_coord(vn).y + GD_rank(g).get(ND_rank(vn)).ht2; |
| 3082 |
return rv; |
| 3083 |
} finally { |
| 3084 |
LEAVING("6qwgl36ugfnduc5x59ohuewv1","maximal_bbox"); |
| 3085 |
} |
| 3086 |
} |
| 3087 |
|
| 3088 |
|
| 3089 |
|
| 3090 |
|
| 3091 |
|
| 3092 |
|
| 3093 |
public static ST_Agnode_s neighbor(ST_Agraph_s g, ST_Agnode_s vn, ST_Agedge_s ie, ST_Agedge_s oe, int dir) { |
| 3094 |
ENTERING("18pm6r3xcy90f0xi5hpm9jdhk","neighbor"); |
| 3095 |
try { |
| 3096 |
int i; |
| 3097 |
ST_Agnode_s n, rv = null; |
| 3098 |
ST_rank_t.Array2 rank = GD_rank(g).plus(ND_rank(vn)); |
| 3099 |
for (i = ND_order(vn) + dir; ((i >= 0) && (i < rank.getPtr().n)); i += dir) { |
| 3100 |
n = (ST_Agnode_s) rank.getPtr().v.get(i); |
| 3101 |
if ((ND_node_type(n) == 1) && (ND_label(n)!=null)) { |
| 3102 |
rv = n; |
| 3103 |
break; |
| 3104 |
} |
| 3105 |
if (ND_node_type(n) == 0) { |
| 3106 |
rv = n; |
| 3107 |
break; |
| 3108 |
} |
| 3109 |
if (pathscross(n, vn, ie, oe) == false) { |
| 3110 |
rv = n; |
| 3111 |
break; |
| 3112 |
} |
| 3113 |
} |
| 3114 |
return rv; |
| 3115 |
} finally { |
| 3116 |
LEAVING("18pm6r3xcy90f0xi5hpm9jdhk","neighbor"); |
| 3117 |
} |
| 3118 |
} |
| 3119 |
|
| 3120 |
|
| 3121 |
|
| 3122 |
|
| 3123 |
|
| 3124 |
|
| 3125 |
public static boolean pathscross(ST_Agnode_s n0, ST_Agnode_s n1, ST_Agedge_s ie1, ST_Agedge_s oe1) { |
| 3126 |
ENTERING("f4q0oqe165s9pl5k0th5noeyv","pathscross"); |
| 3127 |
try { |
| 3128 |
ST_Agedge_s e0, e1; |
| 3129 |
ST_Agnode_s na, nb; |
| 3130 |
boolean order; |
| 3131 |
int cnt; |
| 3132 |
order = (ND_order(n0) > ND_order(n1)); |
| 3133 |
if ((ND_out(n0).size != 1) && (ND_out(n0).size != 1)) |
| 3134 |
return false; |
| 3135 |
e1 = oe1; |
| 3136 |
if (ND_out(n0).size == 1 && e1!=null) { |
| 3137 |
e0 = (ST_Agedge_s) ND_out(n0).getFromList(0); |
| 3138 |
for (cnt = 0; cnt < 2; cnt++) { |
| 3139 |
if (EQ(na = aghead(e0), nb = aghead(e1))) |
| 3140 |
break; |
| 3141 |
if (order != (ND_order(na) > ND_order(nb))) |
| 3142 |
return NOT(false); |
| 3143 |
if ((ND_out(na).size != 1) || (ND_node_type(na) == 0)) |
| 3144 |
break; |
| 3145 |
e0 = (ST_Agedge_s) ND_out(na).getFromList(0); |
| 3146 |
if ((ND_out(nb).size != 1) || (ND_node_type(nb) == 0)) |
| 3147 |
break; |
| 3148 |
e1 = (ST_Agedge_s) ND_out(nb).getFromList(0); |
| 3149 |
} |
| 3150 |
} |
| 3151 |
e1 = ie1; |
| 3152 |
if (ND_in(n0).size == 1 && e1!=null) { |
| 3153 |
e0 = (ST_Agedge_s) ND_in(n0).getFromList(0); |
| 3154 |
for (cnt = 0; cnt < 2; cnt++) { |
| 3155 |
if (EQ(na = agtail(e0), nb = agtail(e1))) |
| 3156 |
break; |
| 3157 |
if (order != (ND_order(na) > ND_order(nb))) |
| 3158 |
return NOT(false); |
| 3159 |
if ((ND_in(na).size != 1) || (ND_node_type(na) == 0)) |
| 3160 |
break; |
| 3161 |
e0 = (ST_Agedge_s) ND_in(na).getFromList(0); |
| 3162 |
if ((ND_in(nb).size != 1) || (ND_node_type(nb) == 0)) |
| 3163 |
break; |
| 3164 |
e1 = (ST_Agedge_s) ND_in(nb).getFromList(0); |
| 3165 |
} |
| 3166 |
} |
| 3167 |
return false; |
| 3168 |
} finally { |
| 3169 |
LEAVING("f4q0oqe165s9pl5k0th5noeyv","pathscross"); |
| 3170 |
} |
| 3171 |
} |
| 3172 |
|
| 3173 |
|
| 3174 |
} |