1 package LaTeX::TikZ::Set::Path;
8 LaTeX::TikZ::Set::Path - A role for set objects that can be part of a path.
16 our $VERSION = '0.02';
20 Paths are all the elements against which we can call the C<path> method.
28 This role consumes the L<LaTeX::TikZ::Set> role, and as such implements the L</draw> method.
32 with 'LaTeX::TikZ::Set';
36 These methods are required by the interface :
42 C<path $formatter, $context>
44 Returns the TikZ code that builds a path out of the current set object as a string formatted by the L<LaTeX::TikZ::Formatter> object C<$formatter>.
45 The current evaluation context is passed as the L<LaTeX::TikZ::Context> object C<$context>.
51 Returns a L<LaTeX::TikZ::Point> object pointing to the beginning of the path, or C<undef> if this path has no beginning.
57 A L<LaTeX::TikZ::Point> object pointing to the end of the path, or C<undef> if this path has no end.
76 [ "\\draw " . $set->path(@_) . ' ;' ];
81 L<LaTeX::TikZ>, L<LaTeX::TikZ::Set>.
85 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
87 You can contact me by mail or on C<irc.perl.org> (vincent).
91 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
92 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
96 You can find documentation for this module with the perldoc command.
100 =head1 COPYRIGHT & LICENSE
102 Copyright 2010 Vincent Pit, all rights reserved.
104 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
108 1; # End of LaTeX::TikZ::Set::Path;