Logo10.3.177.165 
  News  Recent  Stats  Forums  Discord  GitHub  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   List Content
 
 Projects
   All projects
  View project
[All projects][View on GitHub][Git Log]
Name:Drawing-datatype
Short description:drawing.datatype: AmigaOS 4 DataTypes superclass for structured (vector) drawings, with IFF DR2D and SVG subclasses; by Chris Young
Full description:

Drawing datatype

drawing.datatype: AmigaOS 4 DataTypes superclass for structured (vector) drawings, with IFF DR2D and SVG subclasses. By Chris Young; some code is based on source by Fredrik Wikstrom and Stefan Ruppert.

Picture datatypes turn drawings into pixels and lose the benefits of vector art. drawing.datatype is a superclass like picture.datatype but for structured drawings, so MultiView and other programs can show them, and structured art programs can use the DataTypes system to support more formats. dr2d.datatype and svg.datatype are subclasses for IFF DR2D and SVG files.

Versions

The latest release, in release/DrawingDT/, has drawing.datatype 53.9 (2022-10-29), dr2d.datatype 53.7 (2021-07-08) and svg.datatype 53.6 (2021-07-08). The svg.datatype source is 53.7 (2022-10-29), one version ahead of the release. release/DrawingDT_beta1/ and release/DrawingDT_RC1/ are earlier releases. The change history is in release/DrawingDT/drawing_dt.readme; TODO.TXT lists open work.

Installation

Run the Install script in release/DrawingDT/: it copies the datatypes from data/ to SYS:Classes/DataTypes/ and the DR2D and SVG descriptors to DEVS:DataTypes/. The public class header is in release/DrawingDT/include/datatypes/drawingclass.h.

Building

src/Makefile builds all three datatypes with GCC on AmigaOS (make in src/, also install and clean). svg.datatype needs libsvgtiny and its libraries (libdom, libwapcaplet, libparserutils) and expat.

Contents

  • src/drawing_dt/: the superclass; src/dr2d_dt/: the DR2D subclass; src/svg_dt/: the SVG subclass.
  • release/: the DrawingDT releases (beta 1, RC1 and the latest).
  • test files/: DR2D and SVG drawings for testing.
  • contributors.txt, TODO.TXT.

The documentation/ folder was empty in the Subversion repository, so it is not in this repository.

Original project description

The OpenAmiga.org project page described the goal like this:

There are a number of Amiga programs to create, edit and use structured drawings, and a defined IFF standard for them (IFF DR2D), which is well supported by Amiga software. However, there is no way of displaying such drawings in Multiview except by using a datatype which is a subclass of picture.datatype. This converts the drawing into a pixel-based image and loses the benefits of vector-based art. It is also impossible to use the DataTypes system to extend software like DrawStudio to support more formats.

This proposal is for a drawing.datatype which is a superclass similar to picture.datatype but for structured drawings.

Requirements

Initial requirements are for drawing.datatype to be able to support reading, rendering (GM_RENDER) and access to the art in a form that is suitable for structured art software (suggest to either supply a IFF DR2D data block, or an Exec linked list of polygon structures). Supporting writing (DTM_WRITE) is high priority but not essential for initial version. Internal data must be able to support ARGB colour definitions (this may need an extension to the DR2D format when DTM_WRITE is implemented - maybe as simple as "if there is no CMAP chunk, the colours are specified as ARGB", however compatiblity with existing software should be a priority. The CMAP chunk is perfectly capable of storing an entire 32-bit palette if absolutely necessary, or could be extended to RGBA without breaking existing software)

The project must also include an IFF DR2D sub-class datatype. DR2D should be the superclass/clipboard format for structured art, perhaps with extensions for features that other formats have, which can't be described in existing DR2D.

Other suggested drawing.datatype sub-classes (optional): CGM, EPS, SVG, IFF-DSDR, WMF

History

Developed by Chris Young in the OpenAmiga.org Subversion repository from 2009 to 2022, with contributions by Fredrik Wikstrom in 2011. Moved to GitHub in November 2026, with its full commit history.

Open Amiga project website, Created in 2008 by Björn Hagström