Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.391.065 Times

PDL::Graphics::AquaTerm 0.02

  Date Added: August 03, 2010  |  Visits: 988


Report Broken Link
Printer Friendly Version

Product Homepage
Download (78 downloads)

PDL::Graphics::AquaTerm is a Perl module that provides access to the AquaTerm Mac OS-X graphics terminal. SYNOPSIS # example 1 use PDL; use PDL::Graphics::LUT; use PDL::Graphics::AquaTerm; my $x_size = 255; my $y_size = 255; aquaOpen({SIZE_X => $x_size, SIZE_Y => $y_size}); aquaSetColorTable(cat(lut_data(idl5))); my $a = xvals(zeroes(byte,$x_size,$y_size)); aquaBitmap($a); # example 2 use PDL; use PDL::Graphics::AquaTerm; my $x_size = 255; my $y_size = 255; aquaOpen({WIN_NUM => 1, SIZE_X => $x_size, SIZE_Y => $y_size}); my $a = sin(xvals(zeroes(float, $x_size, $y_size)) * 0.1); aquaBitmap($a, {AUTO_SCALE => 1}); This module interfaces PDL directly to the AquaTerm Mac OS-X graphics terminal. It is primarily intended for quickly and easily displaying bitmap images. The coordinate system is defined by the window size (given in pixels) with (0,0) at the bottom left corner of the window. This means that if the window is set to be 300 x 200, then the bottom left corner will have coordinates (0,0) and the upper right corner will have coordinates (300,200). Anything that is drawn outside this boundary will be automatically clipped. FUNCTIONS aquaOpen Open a new AquaTerm window Usage: aquaOpen(); # open the window with the defaults Usage: aquaOpen({SIZE_X => 200, SIZE_Y => 200, BACK_COLOR => [0.0, 0.0, 0.0]}); Opens a new AquaTerm window, it also starts AquaTerm if necessary. Options recognized : SIZE_X - window x size in pixels (default = 400) SIZE_Y - window y size in pixels (default = 300) WIN_NUM - The window number, used by the drawing commands to specify which window to draw in WIN_TITLE - A title for the window, if desired (default = "") BACK_COLOR - [r, g, b] the windows background color (default = [1.0, 1.0, 1.0], i.e. white) WARN_ON - set to 1 to turn on warning messages, 0 to turn off (default = 1) DEBUG_ON - set to 1 to turn on debugging message, 0 to turn off (default = 0) aquaBitmap Display a PDL as a bitmap. Usage: aquaDisplay($my_img); # display $my_img as a bitmap in the currently open window Usage: aquaDisplay($my_img, {AUTO_SCALE => 1.0, TEXT => "my image", TEXT_C => [1.0, 0.0, 0.0]}); Displays a PDL as a bitmap. The PDL can be of size either (m,n) or (3,m,n). PDLs of size (m,n) are converted to indexed color based on the current color table (see aquaSetColorTable). PDLs of size (3,m,n) are displayed as true-color images with the first dimension specifying the color (RGB). Unless a re-scaling is specified, the minimum value displayed is 0.0 and the maximum is 255.0. Options recognized : DEST_X - position of the left side of the bitmap in pixels (default = 0) DEST_Y - position of the bottom of the bitmap in pixels (default = 0) DEST_W - width of the bitmap to be displayed (default = width of the PDL) DEST_H - height of the bitmap to be displayed (default = height of the PDL) AUTO_SCALE - if set equal to 1, the PDL will be rescaled such that its minimum value is 1 and its max is 255 (default = 0) M_MIN - the minimum value to be displayed (default = 0.0) M_MAX - the maximum value to be displayed (default = 255.0) WIN_NUM - specify which window to draw in (default = current window) TEXT - text to display on the bitmap TEXT_X - x location of the text in pixels (default = 6) TEXT_Y - y location of the text in pixels (default = 10) TEXT_C - RGB color of the text, (default = [0.0, 0.0, 0.0], i.e. black) aquaSetColorTable Set the color table Usage: aquaSetColorTable(cat(lut_data(idl5))); # set the color table to idl5 Makes a local copy of a user supplied color table. The color table must be a 256 x 4 pdl of the form (l,r,g,b), as would be generated by the command $ct = cat(lut_data("xyz")). The l value is ignored. The r, g and b values should be in the range 0.0 - 1.0. aquaPolyLine Draws a (2,n) PDL as a line Usage: aquaPolyLine($line, {WIDTH => 3, COLOR => [0.0, 0.0, 0.0]}); # draw $line black with width 3 Draw a poly-line between a set of points given by a PDL of size (2,n). The first dimension of the PDL gives the x & y position of the individual points, n is the total number of points. Options recognized WIN_NUM - which window to draw the line in ERASE - clear the selected window prior to drawing the line WIDTH - line width (default = 1) CAPS - line cap style, Im still unsure exactly what this is... COLOR - RGB color of the line (default is black) aquaText Draw text # draw red hello world at position 20, 30 in the current window Usage: aquaText("hello world", X => 20, Y => 30, COLOR => [1.0, 0.0, 0.0]); Draws text. Options recognized WIN_NUM - which window to draw the text in ERASE - clear the current window prior to drawing the text NAME - name of the font to use (default = "Times-Roman") ANGLE - angle to display the text relative to the horizontal in degrees (default = 0.0) X - position in the window of the text anchor point (which depends on the justification of the text) (default = 6) Y - position in the window of the bottom of the text (default = 10) JUST - text justification, left = 0, center = 1, right = -1? (default = 0) SIZE - font size in points (default = 12) COLOR - text color (default is black) aquaMouse = for ref Returns location of next mouse click in the active window = for usage ($mx, $my) = aquaMouse(); Returns the location of the next mouse click in the active window as a 2 element array. The elements of the array are the x and y coordinates of the mouse click in pixels. The coordinates are relative to the bottom left corner of the active area of the window. Options recognized WIN_NUM - which window to get the mouse click in.

Requirements: No special requirements
Platforms: Linux
Keyword: Aquaterm Aquaterm Mac Os Bottom Left Corner Color Table Default Dest Mac Os-x Mouse Click Num Pdl Perl Module Size To Turn Window
Users rating: 0/10

License: Freeware Size: 8.19 KB
More Reviews or Write Review

Entertainment  -  Baby Tablet : Christmas 1.2
Here is a great application for your baby ! Let baby play with your iPad while learning letters of the alphabet in several languages ! The language is set by default in "English" but you can change it by touching the flag on the bottom...
18.8 MB  
Shell & Desktop  -  15 pieces puzzle
15 pieces (also known as 16 pieces) puzzle game where you have to arrange pieces in order from 1-15 counting from top left corner to bottom right corner. 15 pieces puzzle is a SuperKaramba theme.. Download Community Portal for KDE...
34.82 KB  
Libraries  -  Mac::PropertyList 1.29
Mac::PropertyList is a Perl module to work with Mac plists at a low level. SYNOPSIS use Mac::PropertyList; my $data = parse_plist( $text ); # == OR == my $data = parse_plist_file( $filename ); # == OR == open my( $fh ), $filename or...
17.41 KB  
Libraries  -  DateTime::Format::Epoch::MacOS 0.10
DateTime::Format::Epoch::MacOS is a Perl module that can convert DateTimes to/from Mac OS epoch seconds. SYNOPSIS use DateTime::Format::Epoch::MacOS; my $dt = DateTime::Format::Epoch::MacOS->parse_datetime( 1051488000 );...
17.41 KB  
Web Browser Tools  -  Livejournal Friends Checker
Livejournal Friends Checker is a Firefox extension that places an icon in the lower left corner of your browser when one of your friends post. Only works with paid accounts. *** This only work for paid users (on *** This code...
61.44 KB  
Libraries  -  Imager::Color 0.54
Imager::Color is a Perl module with color handling for Imager. SYNOPSIS $color = Imager::Color->new($red, $green, $blue); $color = Imager::Color->new($red, $green, $blue, $alpha); $color = Imager::Color->new("#C0C0FF"); # html color...
849.92 KB  
Libraries  -  Mac::Errors 1.13
Mac::Errors is a Perl module with constants for Mac error codes. SYNOPSIS use Mac::Errors qw(openErr); if( $value == openErr ) { ... } my $error = $MacErrors{ $symbol }; # -- OR -- my $error = $MacErrors{ $number }; my $symbol =...
54.27 KB  
Libraries  -  Mac::Apps::Seasonality::LoadICAOHistory 0.0.6
Mac::Apps::Seasonality::LoadICAOHistory is a Perl module to load data into an SQLite2 database with the Seasonality weather.db schema. SYNOPSIS use English qw{ -no_match_vars }; use DBI; use Mac::Apps::Seasonality::LoadICAOHistory qw{...
31.74 KB  
Libraries  -  Mac::Apps::Seasonality::Constants 0.0.4
Mac::Apps::Seasonality::Constants is a Perl module for static definitions of aspects of Seasonality. SYNOPSIS use Mac::Apps::Seasonality::Constants qw{ $SEASONALITY_NAME $SEASONALITY_CREATOR $SEASONALITY_HISTORY_DATABASE_PATH }; use...
8.19 KB  
Libraries  -  PDL::Graphics::X 0.04
PDL::Graphics::X is a PDL OO access to X windows. SYNOPSIS # example 1 use PDL; use PDL::Graphics::X; my $x_size = 255; my $y_size = 255; my $win1 = PDL::Graphics::X->new({SIZE_X => $x_size, SIZE_Y => $y_size}); my $a =...
10.24 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB