CAD::Drawing::Manipulate 0.26
Sponsored Links
CAD::Drawing::Manipulate 0.26 Ranking & Summary
File size:
0.039 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
954
Date added:
2007-03-17
Publisher:
Eric L. Wilhelm
CAD::Drawing::Manipulate 0.26 description
CAD::Drawing::Manipulate is a Perl module to manipulate CAD::Drawing objects.
Move, Copy, Scale, Mirror, and Rotate methods for single entities and groups of entities.
Group Methods
These methods are called with required values, followed by a hash reference of option values. Note the difference between this and the individual entity manipulation syntax shown below. The absence of an %options hash reference implies everything in the drawing.
For details about each of the group manipulation methods, see the corresponding individual entity manipulation method.
Options
The $opts value shown for each of the group manipulation methods is fed directly to CAD::Drawing::select_addr(). See the documentation for this function for additional details.
One of the most common methods of selection (after the implicit all) may be the explicit list of addresses. This is done by simply passing an array reference rather than a hash reference.
GroupMove
Move selected entities by @dist.
$drw->GroupMove(@dist, $opts);
GroupCopy
Returns a list of addresses for newly created entities.
@new = $drw->GroupCopy(@dist, $opts);
GroupClone
Returns a list of addresses for newly created entities.
@new = $drw->GroupClone($dest, $opts);
place
Clones items from $source into $drw and moves them to @pt. Selects items according to %opts and optionally rotates them by $opts{ang} (given in radians.)
$drw->place($source, @pt, %opts);
GroupMirror
Mirrors the entities specified by %options (see select_addr()) across @axis.
@new = $drw->GroupMirror(@axis, %options);
GroupScale
Sorry, @pt is required here.
$drw->GroupScale($factor, @pt, %opts);
GroupRotate
Rotates specified entities by $angle. A center point may be specified via $opts{pt} = @pt.
$drw->GroupRotate($angle, %opts);
Individual Methods
Move
Moves entity at $addr by @dist (@dist may be three-dimensional.)
$drw->Move($addr, @dist);
Copy
$drw->Copy($addr, @dist);
Clone
Clones the entity at $addr into drawing $dest.
$drw->Clone($addr, $dest, %opts);
%opts may contain:
to_layer => $layer_name, # layer to clone into
Mirror
Mirrors entity specified by $addr across @axis.
Returns the address of the manipulated entity. If $opts{copy} is true, will clone the entity, otherwise modify in-place.
$drw->Mirror($addr, @axis, %opts);
Scale
$drw->Scale($addr, $factor, @pt);
Rotate
Rotates entity specified by $addr by $angle (+ccw radians) about @pt. Angle may be in degrees if $angle =~ s/d$// returns a true value (but I hope the "d" is the only thing on the end, because Im not looking for anything beyond that.) $angle = "45" . "d" will get converted, but $angle = "45" . "bad" will be called 0. Remember, this is Perl:)
$drw->Rotate($addr, $angle, @pt);
Internal Functions
pointrotate
Internal use only.
($x, $y) = pointrotate($x, $y, $ang, $xc, $yc);
pointmirror
@point = pointmirror($axis, $pt);
angle_of
angle_of(@segment);
Polygon Methods
These dont do anything yet and need to be moved to another module anyway.
CutPline
$drw->CutPline();
IntPline
$drw->IntPline();
intersect_pgon
intersect_pgon();
Move, Copy, Scale, Mirror, and Rotate methods for single entities and groups of entities.
Group Methods
These methods are called with required values, followed by a hash reference of option values. Note the difference between this and the individual entity manipulation syntax shown below. The absence of an %options hash reference implies everything in the drawing.
For details about each of the group manipulation methods, see the corresponding individual entity manipulation method.
Options
The $opts value shown for each of the group manipulation methods is fed directly to CAD::Drawing::select_addr(). See the documentation for this function for additional details.
One of the most common methods of selection (after the implicit all) may be the explicit list of addresses. This is done by simply passing an array reference rather than a hash reference.
GroupMove
Move selected entities by @dist.
$drw->GroupMove(@dist, $opts);
GroupCopy
Returns a list of addresses for newly created entities.
@new = $drw->GroupCopy(@dist, $opts);
GroupClone
Returns a list of addresses for newly created entities.
@new = $drw->GroupClone($dest, $opts);
place
Clones items from $source into $drw and moves them to @pt. Selects items according to %opts and optionally rotates them by $opts{ang} (given in radians.)
$drw->place($source, @pt, %opts);
GroupMirror
Mirrors the entities specified by %options (see select_addr()) across @axis.
@new = $drw->GroupMirror(@axis, %options);
GroupScale
Sorry, @pt is required here.
$drw->GroupScale($factor, @pt, %opts);
GroupRotate
Rotates specified entities by $angle. A center point may be specified via $opts{pt} = @pt.
$drw->GroupRotate($angle, %opts);
Individual Methods
Move
Moves entity at $addr by @dist (@dist may be three-dimensional.)
$drw->Move($addr, @dist);
Copy
$drw->Copy($addr, @dist);
Clone
Clones the entity at $addr into drawing $dest.
$drw->Clone($addr, $dest, %opts);
%opts may contain:
to_layer => $layer_name, # layer to clone into
Mirror
Mirrors entity specified by $addr across @axis.
Returns the address of the manipulated entity. If $opts{copy} is true, will clone the entity, otherwise modify in-place.
$drw->Mirror($addr, @axis, %opts);
Scale
$drw->Scale($addr, $factor, @pt);
Rotate
Rotates entity specified by $addr by $angle (+ccw radians) about @pt. Angle may be in degrees if $angle =~ s/d$// returns a true value (but I hope the "d" is the only thing on the end, because Im not looking for anything beyond that.) $angle = "45" . "d" will get converted, but $angle = "45" . "bad" will be called 0. Remember, this is Perl:)
$drw->Rotate($addr, $angle, @pt);
Internal Functions
pointrotate
Internal use only.
($x, $y) = pointrotate($x, $y, $ang, $xc, $yc);
pointmirror
@point = pointmirror($axis, $pt);
angle_of
angle_of(@segment);
Polygon Methods
These dont do anything yet and need to be moved to another module anyway.
CutPline
$drw->CutPline();
IntPline
$drw->IntPline();
intersect_pgon
intersect_pgon();
CAD::Drawing::Manipulate 0.26 Screenshot
Advertisements
CAD::Drawing::Manipulate 0.26 Keywords
CAD
Manipulate 0.26
to manipulate
Perl module
May be
addr
angle
pt
opts
entity
methods
CAD::Drawing::Manipulate
CADDrawingManipulate
CAD::Drawing::Manipulate 0.26
Libraries
Programming
Bookmark CAD::Drawing::Manipulate 0.26
CAD::Drawing::Manipulate 0.26 Copyright
WareSeeker periodically updates pricing and software information of CAD::Drawing::Manipulate 0.26 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CAD::Drawing::Manipulate 0.26 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
CAD::Drawing::Manipulate::Transform is a Perl module with Matrix methods for CAD::Drawing. Free Download
CAD::Drawing::Manipulate::Graphics - Gimp meets CAD. Free Download
CAD::Drawing::IO::Split is a Perl module that allows fast distributed text file methods. Free Download
CAD::Drawing is a Perl module with methods to create, load, and save vector graphics. Free Download
CAD::Drawing::IO are I/O methods for the CAD::Drawing module. Free Download
CAD::Drawing::IO::Image is a Perl module with output methods for images. Free Download
CAD::Drawing::IO::Compressed is a Perl module to load and save compressed data. Free Download
CAD::Drawing::IO::Tk is a Perl module with GUI I/O methods for CAD::Drawing. Free Download
Latest Software
Popular Software
Favourite Software