GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CAD::DRAWING::DEFINED (3)

.ds Aq ’

NAME

CAD::Drawing::Defined - exported constants for CAD::Drawing::*

CONTENTS

Description

Everything in this module is exported by default. This module is not intended to be used directly, but is required by each module in the CAD::Drawing tree.

AUTHOR

Eric L. Wilhelm <ewilhelm at cpan dot org>

http://scratchcomputing.com

COPYRIGHT

This module is copyright (C) 2004-2006 by Eric L. Wilhelm. Portions copyright (C) 2003 by Eric L. Wilhelm and A. Zahner Co.

LICENSE

This module is distributed under the same terms as Perl. See the Perl source package for details.

You may use this software under one of the following licenses:



  (1) GNU General Public License
    (found at http://www.gnu.org/copyleft/gpl.html)
  (2) Artistic License
    (found at http://www.perl.com/pub/language/misc/Artistic.html)



NO WARRANTY

This software is distributed with ABSOLUTELY NO WARRANTY. The author, his former employer, and any other contributors will in no way be held liable for any loss or damages resulting from its use.

Modifications

The source code of this module is made freely available and distributable under the GPL or Artistic License. Modifications to and use of this software must adhere to one of these licenses. Changes to the code should be noted as such and this notification (as well as the above copyright information) must remain intact on all copies of the code.

Additionally, while the author is actively developing this code, notification of any intended changes or extensions would be most helpful in avoiding repeated work for all parties involved. Please contact the author with any such development plans.

Useful Functions

These were functions that didn’t seem appropriate as object-oriented but were needed in multiple places. They are exported by default (as is nearly everything in this package.

    check_select

Provides a uniform interface to selection processing.

NOTE: this is not an object method and is exported by default!

Direct calling should be for internal use only, but you may have been sent to this documentation by one of the modules which uses this function to process %option arguments.

%opts hash may contain (alias)



  Inclusive lists:
  "select layers"      (sl)
  "select colors"      (sc)
  "select types"       (st)
  "select linetypes"   (slt)

  Exclusive lists:
  "not layers"         (nl)
  "not colors"         (nc)
  "not types"          (nt)
  "not linetypes"      (nlt)



The values must be list references.

The space-separated terms in the keys above may now be underscore (_) separated as well (this saves having to double-quote the item when using it as a hash key in the %options argument.)

If an option is omitted, all of that category are selected.



  ($s, $n) = check_select(\%selection_options);



$s will be a hash reference to inclusive items $n will be a hash reference to excluded items

Keys in the returned hash references are according to the above-listed alias conventions ($s->{l} contains a set of true values for selected layers (where the layer name is a string acting as the hash key.))

Note that the \%selection_options hash reference is a required argument (at this level.) Any functions which make it optional must declare a hash before passing to this.

    checkarcangs

Performs in-place modification of arc angles in \@angs.

NOTE: this is not an object method and is exported by default!

Internal use only.



  checkarcangs(\@angs);



    color_translate

Translates a list of colors into numbers. Numbers will be passed through (as will unrecognized names!)



  @colors = color_translate(@colors);



Various definitions

CW%color_names

Useful for humans. Currently, these have to be statically defined here. A better system might allow more spellings and user-defined names (maybe loadable from a file.)

CW%call_syntax

used to allow other functions to decide how to handle various entities

Big Constant arrays

CW@aci2hex

256 value array which contains #RRGGBB photo-style hex codes for each aci color. This is mostly hand-mapped.

CW@aci2rgb

Generated from @aci2hex for use in postscript and other items. The idea here is that it is a fairly small set of values and may as well have been generated and placed in this file, rather than constantly loading-down the tight loop of saving values to postscript.

    regen_aci2rgb

Fairly self-explanatory. Saved here only so I don’t lose it.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CAD::DRAWING::DEFINED (3) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.