| 1 | package Draft::Protozoa::Eml::Line::Draft1; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Draft::Protozoa::Eml::Line::Draft1 - CAD line drawing-object | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | A line consists of two points. | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use Draft::Protozoa::Eml; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use Draft::Entity::Line; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 1 | ▶ | use vars qw /@ISA/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 1 | @ISA = qw /Draft::Protozoa::Eml Draft::Entity::Line/; | |
| 20 | |||
| 21 | =pod | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | Though a line consists of just two points, it should really be | ||
| 26 | extended to an arbitrary number of points - A polyline. | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | sub _parse | ||
| 31 | 1 | ▶ | { |
|
Subroutine
_parse: called CC=1 SCAR=0.0
| |||
| 32 | 1 | my $self = shift; | |
| 33 | 1 | my $data = shift; | |
| 34 | |||
| 35 | 1 | $self->{0} = $data->{0}; | |
| 36 | 1 | $self->{1} = $data->{1}; | |
| 37 | } | ||
| 38 | |||
| 39 | 1 | 1; | |