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 29.641.143 Times

CAD::Drawing::IO::Tk 0.04

  Date Added: September 06, 2010  |  Visits: 1.026

CAD::Drawing::IO::Tk

Report Broken Link
Printer Friendly Version


Product Homepage
Download (82 downloads)



CAD::Drawing::IO::Tk is a Perl module with GUI I/O methods for CAD::Drawing. This module is considered extremely pre-ALPHA and its use is probably deprecated by the time you read this. Methods There is no constructor for this class, its methods are inherited via CAD::Drawing::IO Thoughts Need to re-structure the entire deal to have its own object which belongs to the drawing object (or does the drawing object belong to this object?) Either way, we need to be able to build-up into interactive commands (possibly using eval("$drw->$command"); ?) Ultimately, the focus here will likely drift toward supporting perlcad and enabling use of perlcad from within CAD::Drawing scripts. However, the nature of lights-out scripting vs the nature of on-screen drafting is quite different, so there will be some tricks involved. Once each entity has its own class, the ability to install callbacks and the resolution of notifications should get easier. But, there will still be the issue that a debug popup does not know it will appear when the entities are created, while a drafting viewport does (or does it?) Possibly, adding a list of tk-ids to each $obj as it is drawn would be a good starting point, but this gets us into trouble with multiple viewports. show Creates a new window (no options are required.) $drw->show(%options); Available Options forkokay => bool -- Attempt to fork the new window window => MainWindow -- Use the pre-existing Tk object stl => Message -- Use pre-existing Message widget size => [W,H] -- Specify window size in pixels width => W -- alias to size height => H -- ditto center => [X,Y] -- Center the drawing at (X,Y) scale => factor -- Zoom by factor (default to fit) bgcolor => color -- defaults to "white" hang => boolean -- if not, you just get the canvas widget items => @list -- sorry, not compatible with select_addr :( Draw Draws geometry on the Tk canvas $cnv. List of items to draw must be specified via addresses stored in $options{items}. The newest fad (:e) is the $options{tag} argument, which uses addr_to_tktag() to tag the item. $drw->Draw($cnv, %options); tkbindings Setup the keybindings. $drw->tkbindings($mw, $cnv); text_size_reset text_size_reset($cnv); free_dist free_dist(); windowzoom Creates temporary bindings to drawing a rubber-band box. windowzoom($cnv); tksetview No longer used $drw->tksetview($cnv, %options); scalebox Returns the scaling required to create a view which most closely matches @ext to @size of canvas. $scale = $drw->scalebox(@size, @ext); dsp subroutine refs each of these should do everything necessary to draw the item on the canvas (but they might like to have a few options available?) and then return a list of the Tk ids of the created items. Caller will then assign identical tags to each id which is returned by each per-entity call. tkpoint Returns only the first and second element of an array reference as a list. @xy_point = tkpoint(@pt); addr_to_tktag Returns a stringified tag of form: ### ### my $tag = $drw->addr_to_tktag($addr); tktag_to_addr Returns an anonymous hash reference which should serve as an address, provided that $tag is a valid < layer >###< type >###< id > tag (and that the entity exists in the $drw object (check this yourself.) my $addr = $drw->tktag_to_addr($tag);.

Requirements: No special requirements
Platforms: Linux
Keyword: Cad Caddrawingiotk Cnv Gui Gui I I O Methods Io Libraries Methods Module Object Perl Module Size Tag
Users rating: 0/10

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


CAD::DRAWING::IO::TK RELATED
Libraries  -  Sys::PortIO 0.1
Sys::PortIO is a Perl module to perform direct port I/O from Perl. SYNOPSIS use Sys::PortIO; port_open($portnum); write_byte($portnum, $value); $value = read_byte($portnum); port_close($portnum); This module provides a Perl interface to...
737.28 KB  
Libraries  -  CAD::Drawing::IO::Compressed 0.26
CAD::Drawing::IO::Compressed is a Perl module to load and save compressed data. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "compressed" or $filename...
39.94 KB  
Libraries  -  CAD::Drawing::IO::Image 0.02
CAD::Drawing::IO::Image is a Perl module with output methods for images. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "img" or $filename matches one of...
5.12 KB  
Libraries  -  dtRdr::GUI::Wx::SearchTree 0.0.11
dtRdr::GUI::Wx::SearchTree is a Perl module that can display search results as a tree. SYNOPSIS Methods book_root Create a root for the book. $tree->book_root($book); When were displaying multiple books, this will not be the root of...
2.8 MB  
Libraries  -  CAD::Drawing::Manipulate 0.26
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...
39.94 KB  
Libraries  -  CAD::Drawing::IO::PostScript 0.03
CAD::Drawing::IO::PostScript is a Perl module with PostScript output methods. I would like this module to both load and save PostScript vector graphics, but I have not yet found a suitable PostScript parsing package. This module should be...
8.19 KB  
Libraries  -  AAC::Pvoice 0.91
AAC::Pvoice is a Perl module to create GUI software for disabled people. SYNOPSIS use AAC::Pvoice # this includes all AAC::Pvoice modules AAC::Pvoice is a set of modules to create software for people who cant use a normal mouse and/or...
25.6 KB  
Libraries  -  Gtk2::Ex::Dialogs 0.11
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design. SYNOPSIS use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE, modal => TRUE, no_separator => FALSE ); # do some stuff like creating your apps main...
20.48 KB  
Libraries  -  DBIx::DWIW 0.44
DBIx::DWIW is a Perl module for robust and simple DBI wrapper to Do What I Want (DWIW). SYNOPSIS When used directly: use DBIx::DWIW; my $db = DBIx::DWIW->Connect(DB => $database, User => $user, Pass => $password, Host => $host); my...
22.53 KB  
Libraries  -  CAD::Drawing 0.26
CAD::Drawing is a Perl module with methods to create, load, and save vector graphics. SYNOPSIS The primary intention of this module is to provide high-level operations for creating, loading, saving and manipulating vector graphics without...
39.94 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
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...
2.73 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