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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 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 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Ipelib: IpePath Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<h1>IpePath Class Reference<br>
<small>
[<a class="el" href="group__obj.html">Ipe Objects</a>]</small>
</h1><!-- doxytag: class="IpePath" --><!-- doxytag: inherits="IpeFillable" -->The path object (polylines, polygons, and generalizations).
<a href="#_details">More...</a>
<p>
Inherits <a class="el" href="class_ipe_fillable.html">IpeFillable</a>.
<p>
<a href="class_ipe_path-members.html">List of all members.</a><h2>Public Member Functions</h2>
<ul>
<li><a class="el" href="class_ipe_path.html#7891c325eca33d243aa9f93ee5a646d1">IpePath</a> (<a class="el" href="class_ipe_repository.html">IpeRepository</a> *rep, const <a class="el" href="class_ipe_xml_attributes.html">IpeXmlAttributes</a> &attr, <a class="el" href="class_ipe_string.html">IpeString</a> data)
<li><a class="el" href="class_ipe_path.html#33c598c1ba7dec51c83fbe0d7742f600">IpePath</a> (const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &attr)
<li><a class="el" href="class_ipe_path.html#005df5c0b9b12d4b61769ae77b434150">IpePath</a> (const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &attr, const <a class="el" href="class_ipe_rect.html">IpeRect</a> &rect)
<li><a class="el" href="class_ipe_path.html#f14beea04e0833fbb4004437ea9b3cc7">IpePath</a> (const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &attr, const <a class="el" href="class_ipe_segment.html">IpeSegment</a> &seg)
<li><a class="el" href="class_ipe_path.html#6bb4fe93306560d5380fce3b6aab47fb">IpePath</a> (const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &attr, const <a class="el" href="class_ipe_vector.html">IpeVector</a> &center, double radius)
<li><a class="el" href="class_ipe_path.html#c36459b0ad51ec80c04f3419b9d031ad">IpePath</a> (const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> &attr, const <a class="el" href="class_ipe_vector.html">IpeVector</a> &center, double radius, double alpha0, double alpha1)
<li><a class="el" href="class_ipe_path.html#2776e76c9e3e4e9cb809a3e7ebbcce99">IpePath</a> (const <a class="el" href="class_ipe_path.html">IpePath</a> &rhs)
<li><a class="el" href="class_ipe_path.html#593591fbca13a9dd2966b89398fb6ef4">~IpePath</a> ()
<li><a class="el" href="class_ipe_path.html">IpePath</a> & <a class="el" href="class_ipe_path.html#53d33a28d5576cd96d5cdd37fa443393">operator=</a> (const <a class="el" href="class_ipe_path.html">IpePath</a> &rhs)
<li>virtual <a class="el" href="class_ipe_object.html">IpeObject</a> * <a class="el" href="class_ipe_path.html#76cfe23161442c18569b3b0652ecea8d">Clone</a> () const
<li>virtual <a class="el" href="class_ipe_path.html">IpePath</a> * <a class="el" href="class_ipe_path.html#4aa2e40dedfce5e21b6f2977735365e5">AsPath</a> ()
<li>virtual void <a class="el" href="class_ipe_path.html#e5afd4b4d3badc920cf33a07fb5ebd34">SaveAsXml</a> (<a class="el" href="class_ipe_painter.html">IpePainter</a> &painter, <a class="el" href="class_ipe_stream.html">IpeStream</a> &stream, <a class="el" href="class_ipe_string.html">IpeString</a> layer) const
<li>virtual void <a class="el" href="class_ipe_path.html#ce75cddc54bafc074027dcc74212598e">Draw</a> (<a class="el" href="class_ipe_painter.html">IpePainter</a> &painter) const
<li>virtual void <a class="el" href="class_ipe_path.html#bf1aacee23d10c9db3047c4e9ac371be">Accept</a> (<a class="el" href="class_ipe_visitor.html">IpeVisitor</a> &visitor) const
<li>virtual void <a class="el" href="class_ipe_path.html#707e1a44c0606a46a1c9555d2ae61810">AddToBBox</a> (<a class="el" href="class_ipe_rect.html">IpeRect</a> &box, const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> &m) const
<li>virtual double <a class="el" href="class_ipe_path.html#67701c23f132da78173787d914ae7f3e">Distance</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &v, const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> &m, double bound) const
<li>virtual void <a class="el" href="class_ipe_path.html#36e1ee7dacd47f65bb07fbd30a571856">SnapVtx</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &mouse, const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> &m, <a class="el" href="class_ipe_vector.html">IpeVector</a> &pos, double &bound) const
<li>virtual void <a class="el" href="class_ipe_path.html#822a1902e4dd1683269c82535dc3f286">SnapBnd</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &mouse, const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> &m, <a class="el" href="class_ipe_vector.html">IpeVector</a> &pos, double &bound) const
<li>virtual void <a class="el" href="class_ipe_path.html#75d3fe4426df69f4151deaca826fd1b6">CheckStyle</a> (const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> *sheet, <a class="el" href="group__attr.html#g8592bdde9e4ad7b2ad81f5dd2638e43c">IpeAttributeSeq</a> &seq) const
<li><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> <a class="el" href="class_ipe_path.html#e8ff8f9889420307fe17db92d4f0f069">ForwardArrow</a> () const
<li><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> <a class="el" href="class_ipe_path.html#b60ef96211d40edf21749061970f2f95">BackwardArrow</a> () const
<li>void <a class="el" href="class_ipe_path.html#57608606386f512c3043b2c82423f16a">SetForwardArrow</a> (<a class="el" href="class_ipe_attribute.html">IpeAttribute</a> size)
<li>void <a class="el" href="class_ipe_path.html#25090d0979aa69f955bab0c2255a3b0e">SetBackwardArrow</a> (<a class="el" href="class_ipe_attribute.html">IpeAttribute</a> size)
<li><a class="anchor" name="686f0d00ee6d5a53cff79cc99f662099"></a><!-- doxytag: member="IpePath::DrawSpline" ref="686f0d00ee6d5a53cff79cc99f662099" args="(IpePainter &painter, int n, const IpeVector *v) const" -->
void <b>DrawSpline</b> (<a class="el" href="class_ipe_painter.html">IpePainter</a> &painter, int n, const <a class="el" href="class_ipe_vector.html">IpeVector</a> *v) const
<li><a class="anchor" name="ebf24c91b6690306de23acc9967638f9"></a><!-- doxytag: member="IpePath::DrawClosedSpline" ref="ebf24c91b6690306de23acc9967638f9" args="(IpePainter &painter, int n, const IpeVector *v) const" -->
void <b>DrawClosedSpline</b> (<a class="el" href="class_ipe_painter.html">IpePainter</a> &painter, int n, const <a class="el" href="class_ipe_vector.html">IpeVector</a> *v) const
<li>int <a class="el" href="class_ipe_path.html#f00467fea87e39661325e064afe9e798">NumSubPaths</a> () const
<li>const <a class="el" href="class_ipe_sub_path.html">IpeSubPath</a> * <a class="el" href="class_ipe_path.html#f05b5c109c93edd71cfb54ff372d50fe">SubPath</a> (int i) const
<li>void <a class="el" href="class_ipe_path.html#6cc12134cb837da798227e04eb1f2492">AddSubPath</a> (<a class="el" href="class_ipe_sub_path.html">IpeSubPath</a> *sp)
</ul>
<h2>Static Public Member Functions</h2>
<ul>
<li>static void <a class="el" href="class_ipe_path.html#868fb5692f674409294c704099381b9d">DrawArrow</a> (<a class="el" href="class_ipe_painter.html">IpePainter</a> &painter, <a class="el" href="class_ipe_vector.html">IpeVector</a> pos, <a class="el" href="class_ipe_angle.html">IpeAngle</a> alpha, <a class="el" href="class_ipe_attribute.html">IpeAttribute</a> size)
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The path object (polylines, polygons, and generalizations).
<p>
This object follows the PDF rendering model, but is actually a bit more complicated since we add new subtypes: arcs, parabolas, uniform B-splines (in PDF, all of these are converted to cubic Bezier splines). Unlike Ipe 5, we can now represent objects consisting of more than one subpath. Note that Ipe 5's spline and arc objects are now represented as <a class="el" href="class_ipe_path.html">IpePath</a> objects.<p>
A path object consists of a set of subpaths (<a class="el" href="class_ipe_sub_path.html">IpeSubPath</a>), each of which is either open or closed, and which are rendered by stroking and filling as a whole. The distinction between open and closed is meaningful for stroking only, for filling any open subpath is implicitely closed. Stroking a set of subpaths is identical to stroking them individually. This is not true for filling: using several subpaths, one can construct objects with holes, and more complicated pattern. The filling algorithm is the <b>even-odd rule</b> of PDF: To determine whether a point lies inside the filled shape, draw a ray from that point in any direction, and count the number of path segments that cross the ray. If this number is odd, the point is inside; if even, the point is outside. (<a class="el" href="class_ipe_path.html">IpePath</a> objects can also render using the <b>winding fill rule</b> by setting the StrokeStyle attribute. This isn't really supported by the Ipe user interface, which doesn't show the orientation of paths.)<p>
A subpath consists of a sequence of segments. (A complete ellipse and a closed B-spline curve can appear as special cases of subpaths that cannot be further decomposed into segments.) Segments are either straight, a quadratic Bezier spline, a cubic Bezier spline, an elliptic arc, or a uniform cubic B-spline. The segmented subpath class <a class="el" href="class_ipe_segment_sub_path.html">IpeSegmentSubPath</a> returns segments as <a class="el" href="class_ipe_path_segment.html">IpePathSegment</a> (but they are not internally stored that way).
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="7891c325eca33d243aa9f93ee5a646d1"></a><!-- doxytag: member="IpePath::IpePath" ref="7891c325eca33d243aa9f93ee5a646d1" args="(IpeRepository *rep, const IpeXmlAttributes &attr, IpeString data)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_repository.html">IpeRepository</a> * </td>
<td class="paramname"> <em>rep</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_xml_attributes.html">IpeXmlAttributes</a> & </td>
<td class="paramname"> <em>attr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_string.html">IpeString</a> </td>
<td class="paramname"> <em>data</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Construct from XML data.
<p>
</div>
</div><p>
<a class="anchor" name="33c598c1ba7dec51c83fbe0d7742f600"></a><!-- doxytag: member="IpePath::IpePath" ref="33c598c1ba7dec51c83fbe0d7742f600" args="(const IpeAllAttributes &attr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & </td>
<td class="paramname"> <em>attr</em> </td>
<td> ) </td>
<td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create empty path object, and null/default attributes.
<p>
</div>
</div><p>
<a class="anchor" name="005df5c0b9b12d4b61769ae77b434150"></a><!-- doxytag: member="IpePath::IpePath" ref="005df5c0b9b12d4b61769ae77b434150" args="(const IpeAllAttributes &attr, const IpeRect &rect)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & </td>
<td class="paramname"> <em>attr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_rect.html">IpeRect</a> & </td>
<td class="paramname"> <em>rect</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a rectangle.
<p>
</div>
</div><p>
<a class="anchor" name="f14beea04e0833fbb4004437ea9b3cc7"></a><!-- doxytag: member="IpePath::IpePath" ref="f14beea04e0833fbb4004437ea9b3cc7" args="(const IpeAllAttributes &attr, const IpeSegment &seg)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & </td>
<td class="paramname"> <em>attr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_segment.html">IpeSegment</a> & </td>
<td class="paramname"> <em>seg</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a single line segment from <code>seg.iP</code> to <code>seg.iQ</code>.
<p>
</div>
</div><p>
<a class="anchor" name="6bb4fe93306560d5380fce3b6aab47fb"></a><!-- doxytag: member="IpePath::IpePath" ref="6bb4fe93306560d5380fce3b6aab47fb" args="(const IpeAllAttributes &attr, const IpeVector &center, double radius)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & </td>
<td class="paramname"> <em>attr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>center</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>radius</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create circle with <em>center</em> and <em>radius</em>.
<p>
</div>
</div><p>
<a class="anchor" name="c36459b0ad51ec80c04f3419b9d031ad"></a><!-- doxytag: member="IpePath::IpePath" ref="c36459b0ad51ec80c04f3419b9d031ad" args="(const IpeAllAttributes &attr, const IpeVector &center, double radius, double alpha0, double alpha1)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_all_attributes.html">IpeAllAttributes</a> & </td>
<td class="paramname"> <em>attr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>center</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>radius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>alpha0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>alpha1</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create circular arc with <em>center</em>, <em>radius</em>, between given angles.
<p>
If <em>alpha1</em> is larger than <em>alpha0</em>, the arc is oriented positively, otherwise negatively.
</div>
</div><p>
<a class="anchor" name="2776e76c9e3e4e9cb809a3e7ebbcce99"></a><!-- doxytag: member="IpePath::IpePath" ref="2776e76c9e3e4e9cb809a3e7ebbcce99" args="(const IpePath &rhs)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::IpePath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_path.html">IpePath</a> & </td>
<td class="paramname"> <em>rhs</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copy constructor (takes care of reference counting).
<p>
</div>
</div><p>
<a class="anchor" name="593591fbca13a9dd2966b89398fb6ef4"></a><!-- doxytag: member="IpePath::~IpePath" ref="593591fbca13a9dd2966b89398fb6ef4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IpePath::~IpePath </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destructor (takes care of reference counting).
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="53d33a28d5576cd96d5cdd37fa443393"></a><!-- doxytag: member="IpePath::operator=" ref="53d33a28d5576cd96d5cdd37fa443393" args="(const IpePath &rhs)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_ipe_path.html">IpePath</a> & IpePath::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_path.html">IpePath</a> & </td>
<td class="paramname"> <em>rhs</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Assignment operator (constant-time).
<p>
</div>
</div><p>
<a class="anchor" name="76cfe23161442c18569b3b0652ecea8d"></a><!-- doxytag: member="IpePath::Clone" ref="76cfe23161442c18569b3b0652ecea8d" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_ipe_object.html">IpeObject</a> * IpePath::Clone </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return a clone (constant-time).
<p>
<p>
Implements <a class="el" href="class_ipe_object.html#544473557223336afe1b967223f71c8a">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="4aa2e40dedfce5e21b6f2977735365e5"></a><!-- doxytag: member="IpePath::AsPath" ref="4aa2e40dedfce5e21b6f2977735365e5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_ipe_path.html">IpePath</a> * IpePath::AsPath </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return pointer to this object.
<p>
<p>
Reimplemented from <a class="el" href="class_ipe_object.html#b3a87a4907f714b06ca18ed4b49e6545">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="e5afd4b4d3badc920cf33a07fb5ebd34"></a><!-- doxytag: member="IpePath::SaveAsXml" ref="e5afd4b4d3badc920cf33a07fb5ebd34" args="(IpePainter &painter, IpeStream &stream, IpeString layer) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::SaveAsXml </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_painter.html">IpePainter</a> & </td>
<td class="paramname"> <em>painter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_stream.html">IpeStream</a> & </td>
<td class="paramname"> <em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_string.html">IpeString</a> </td>
<td class="paramname"> <em>layer</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Save the object in XML format.
<p>
<p>
Implements <a class="el" href="class_ipe_object.html#65b22ef539b3c7966f6a68977ed36486">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="ce75cddc54bafc074027dcc74212598e"></a><!-- doxytag: member="IpePath::Draw" ref="ce75cddc54bafc074027dcc74212598e" args="(IpePainter &painter) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::Draw </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_painter.html">IpePainter</a> & </td>
<td class="paramname"> <em>painter</em> </td>
<td> ) </td>
<td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Draw the object.
<p>
<p>
Implements <a class="el" href="class_ipe_object.html#60f71ffee0f934072452b4dbed660de4">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="bf1aacee23d10c9db3047c4e9ac371be"></a><!-- doxytag: member="IpePath::Accept" ref="bf1aacee23d10c9db3047c4e9ac371be" args="(IpeVisitor &visitor) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::Accept </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_visitor.html">IpeVisitor</a> & </td>
<td class="paramname"> <em>visitor</em> </td>
<td> ) </td>
<td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Call VisitPath of visitor.
<p>
<p>
Implements <a class="el" href="class_ipe_object.html#5e1c2d5483175375a3a83aaf61fa4900">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="707e1a44c0606a46a1c9555d2ae61810"></a><!-- doxytag: member="IpePath::AddToBBox" ref="707e1a44c0606a46a1c9555d2ae61810" args="(IpeRect &box, const IpeMatrix &m) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::AddToBBox </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_rect.html">IpeRect</a> & </td>
<td class="paramname"> <em>box</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> & </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Extend <em>box</em> to include the object transformed by <em>m</em>.
<p>
For Ipe objects in a page, don't call this directly. The <a class="el" href="class_ipe_pg_object.html">IpePgObject</a> caches the bounding box, so it is far more efficient to call <a class="el" href="class_ipe_pg_object.html#24d9716bac48f23ee727db17f94dcfd1">IpePgObject::BBox</a>.<p>
If called with an empty box, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
<p>
Implements <a class="el" href="class_ipe_object.html#86fb97b574a854c49c2b5cd6aee1bb75">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="67701c23f132da78173787d914ae7f3e"></a><!-- doxytag: member="IpePath::Distance" ref="67701c23f132da78173787d914ae7f3e" args="(const IpeVector &v, const IpeMatrix &m, double bound) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double IpePath::Distance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> & </td>
<td class="paramname"> <em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>bound</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return distance of transformed object to point <em>v</em>. If larger than <em>bound</em>, can just return <em>bound</em>.
<p>
Implements <a class="el" href="class_ipe_object.html#ccf553420ac0b3435e686bb85adf7b88">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="36e1ee7dacd47f65bb07fbd30a571856"></a><!-- doxytag: member="IpePath::SnapVtx" ref="36e1ee7dacd47f65bb07fbd30a571856" args="(const IpeVector &mouse, const IpeMatrix &m, IpeVector &pos, double &bound) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::SnapVtx </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>mouse</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> & </td>
<td class="paramname"> <em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double & </td>
<td class="paramname"> <em>bound</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Compute possible vertex snapping position for transformed object.
<p>
Looks only for positions closer than <em>bound</em>. If successful, modify <em>pos</em> and <em>bound</em>.
<p>
Implements <a class="el" href="class_ipe_object.html#2ebde3cb7e75c55a61d2092c82f29146">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="822a1902e4dd1683269c82535dc3f286"></a><!-- doxytag: member="IpePath::SnapBnd" ref="822a1902e4dd1683269c82535dc3f286" args="(const IpeVector &mouse, const IpeMatrix &m, IpeVector &pos, double &bound) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::SnapBnd </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>mouse</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="class_ipe_matrix.html">IpeMatrix</a> & </td>
<td class="paramname"> <em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_vector.html">IpeVector</a> & </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double & </td>
<td class="paramname"> <em>bound</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Compute boundary snapping position for transformed object.
<p>
Looks only for positions closer than <em>bound</em>. If successful, modify <em>pos</em> and <em>bound</em>. The default implementation does nothing.
<p>
Reimplemented from <a class="el" href="class_ipe_object.html#f72b15786e9028360d2a44fc8c3c9820">IpeObject</a>.
</div>
</div><p>
<a class="anchor" name="75d3fe4426df69f4151deaca826fd1b6"></a><!-- doxytag: member="IpePath::CheckStyle" ref="75d3fe4426df69f4151deaca826fd1b6" args="(const IpeStyleSheet *sheet, IpeAttributeSeq &seq) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::CheckStyle </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> * </td>
<td class="paramname"> <em>sheet</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__attr.html#g8592bdde9e4ad7b2ad81f5dd2638e43c">IpeAttributeSeq</a> & </td>
<td class="paramname"> <em>seq</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Check all symbolic attributes.
<p>
<p>
Reimplemented from <a class="el" href="class_ipe_fillable.html#a54b5e3feff44e4e04aa908507610ba9">IpeFillable</a>.
</div>
</div><p>
<a class="anchor" name="e8ff8f9889420307fe17db92d4f0f069"></a><!-- doxytag: member="IpePath::ForwardArrow" ref="e8ff8f9889420307fe17db92d4f0f069" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> IpePath::ForwardArrow </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return arrow of the object.
<p>
</div>
</div><p>
<a class="anchor" name="b60ef96211d40edf21749061970f2f95"></a><!-- doxytag: member="IpePath::BackwardArrow" ref="b60ef96211d40edf21749061970f2f95" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> IpePath::BackwardArrow </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return backward arrow of the object.
<p>
</div>
</div><p>
<a class="anchor" name="57608606386f512c3043b2c82423f16a"></a><!-- doxytag: member="IpePath::SetForwardArrow" ref="57608606386f512c3043b2c82423f16a" args="(IpeAttribute size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::SetForwardArrow </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> </td>
<td class="paramname"> <em>size</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set forward arrow (if the object can take it).
<p>
</div>
</div><p>
<a class="anchor" name="25090d0979aa69f955bab0c2255a3b0e"></a><!-- doxytag: member="IpePath::SetBackwardArrow" ref="25090d0979aa69f955bab0c2255a3b0e" args="(IpeAttribute size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::SetBackwardArrow </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> </td>
<td class="paramname"> <em>size</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set backward arrow (if the object can take it).
<p>
</div>
</div><p>
<a class="anchor" name="868fb5692f674409294c704099381b9d"></a><!-- doxytag: member="IpePath::DrawArrow" ref="868fb5692f674409294c704099381b9d" args="(IpePainter &painter, IpeVector pos, IpeAngle alpha, IpeAttribute size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::DrawArrow </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_painter.html">IpePainter</a> & </td>
<td class="paramname"> <em>painter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_vector.html">IpeVector</a> </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_angle.html">IpeAngle</a> </td>
<td class="paramname"> <em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_ipe_attribute.html">IpeAttribute</a> </td>
<td class="paramname"> <em>size</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Draw an arrow of <em>size</em> with tip at <em>v1</em> directed from <em>v0</em> to <em>v1</em>.
<p>
</div>
</div><p>
<a class="anchor" name="f00467fea87e39661325e064afe9e798"></a><!-- doxytag: member="IpePath::NumSubPaths" ref="f00467fea87e39661325e064afe9e798" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int IpePath::NumSubPaths </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return number of subpaths.
<p>
</div>
</div><p>
<a class="anchor" name="f05b5c109c93edd71cfb54ff372d50fe"></a><!-- doxytag: member="IpePath::SubPath" ref="f05b5c109c93edd71cfb54ff372d50fe" args="(int i) const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="class_ipe_sub_path.html">IpeSubPath</a>* IpePath::SubPath </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>i</em> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return subpath.
<p>
</div>
</div><p>
<a class="anchor" name="6cc12134cb837da798227e04eb1f2492"></a><!-- doxytag: member="IpePath::AddSubPath" ref="6cc12134cb837da798227e04eb1f2492" args="(IpeSubPath *sp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IpePath::AddSubPath </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_ipe_sub_path.html">IpeSubPath</a> * </td>
<td class="paramname"> <em>sp</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Add a subpath to object.
<p>
This can only be used directly after the creation of this path object. Once the object has been copied or assigned, this method will panic.<p>
<a class="el" href="class_ipe_path.html">IpePath</a> takes ownership of the subpath.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>ipepath.h<li>ipepath.cpp</ul>
<hr>
</body></html>
|