| General Remarks | General Remarks | Naming Conventions |
The source is divided into the core sources, containing the basic graphics classes, the UI code and some utility modules. Import filters and other plugins are maintained outside of this core source. Other external packages provide direct access to Xlib functions and objects (Pax) and stream filter objects (Filter).
The top level directory holds the main scripts sketch.py and sk2ps.py
The top-level directory for the core sources. This works as a Python package which export many of the commonly needed support and graphics objects (classes, functions, constants etc.).
Ideally, the Sketch package should export every thing a
`normal' plugin may need. This is not yet the case, as some
interfaces are not very stable yet and may need to be
redesigned. Once they have reached a certain level of stability,
they will be moved into Sketch.
Contains the most fundamental modules such as the modules for file IO, undo/redo, the plugin manager and code for user preferences.
The C-Modules.
Base/ and Modules/ are accessible as
Sketch.modulename. These directories are not
currently subpackages.
The subpackage for the graphics modules.
It contains all of the builtin graphics classes: primitives, compound objects, special effects (blend/mask/...), the document object, ...
It also holds the graphics devices for drawing into the window or PostScript file.
The Graphics modules are accesible as
Sketch.Graphics.modulename. Many of the
objects defined in Graphics modules are exported
directly by the Sketch module.
The subpackage for user interface related code.
Contains the user interface code including the application object.
A subpackage for some support modules that are not really Sketch specific, such as a Type 1 font interpreter (simply extracts the outline information) and a simple parser for PostScript files adhering to the DSC.
Pixmap files used by Sketch.
The subdirectories contain the various plugins:
Contains the import filters and export filters for SK-files and other formats.
The subdirectories contain platform/UI independent resources:
Fontmetrics (*.afm) for standard PostScript fonts and `font directory files' (*.sfd) that describe fonts for Sketch.
Files that define arrows (*.arrow), dashes (*.dashes), palettes (*.spl) and Tk-resources.
Modules that allow Sketch direct access to Xlib. This is a heavily modified version of the Xt-module.
A module for stream filters. A stream filter behaves just like a (non seekable) file and comes in two variants: An encoding filter encodes the data written to it and writes the encoded data to a data target (a file or another filter); a decoding filter reads data from a data source (a file or another filter) and provides it in decoded form.
These stream filters are modeled after the filters in PostScript Level 2.
Don't confuse these filters with the Import filters in the Plugins/Filters/ directory (although import filters might use stream filters to decode the data).
Some example drawings.
| General Remarks | General Remarks | Naming Conventions |