home *** CD-ROM | disk | FTP | other *** search
-
- README file for the ImportIntro application.
-
- The ImportIntro application is intended to highlight a few areas concerning importing of
- Encapsulated PostScript files (EPS) and TIFF images. This application includes parsing
- routines for extracting bounding boxes, skipping included documents and checking for
- included resources. It also images each file in an NXImage. This reduces the amount
- redrawing thats necessary during a scroll and redraw. In addition, each EPS file is imaged
- within a subclass of the NXEPSImageRep. This class provides a separate DPS context
- which protects the application context from any errors in an EPS file.
-
- A second application, ImportAdvanced, shows more features such as rotating and
- zooming in and out. Portions of the source code in this application are based on
- source code from the Draw example application provided by NeXT.
-
- Below lies an annotated list of the files used in the application. The
- classes listed first form the majority of the application and are
- the more important ones to note. The others fill support roles.
-
- ImportApp - A subclass of Application. Manages the global operations.
- Document - A subclass of Responder. Manages the operations for a document.
- Operations such as import, save, etc.
- DrawingView - A subclass of View. The view that manages the drawing for a
- document. Contains the list of graphics.
- GraphicImport - A subclass of Object. Each imported eps and tiff file is managed
- through an instance of this object. Uses an NXImage to retain
- the image of the file offscreen and an NXEPSImageRepSub
- to swiche DPS contexts when imaging to protect the application's
- context.
- NXEPSImageRepSub - A subclass of NXEPSImageRep. Adds the resource parsing and
- checking routines, the include file handling and the drawing
- with rotation.
- NXBitmapImageRepSub - A subclass of NXBitmapImageRep. Adds the drawing
- with rotation.
-
- SaveToPanel - A subclass of SavePanel.
- ResourcePanel - A subclass of Panel that displays the resources specified in the
- Epsf file but not found in the system.
-
- epsfreader.m - Routines for parsing Eps files.
- epsfwriter.m - Routines for writing Eps files.
- epsferror.m - Error codes and messages for parsing errors.
-
-
- Topics of interest from ImportIntro:
-
- Parsing an Eps file (epsfreader)
- Resource checking and error flagging (epsfreader, GraphicImport, ResourcePanel)
- Imaging an Eps file (epsfwriter, GraphicEpsf)
- Imaging an Eps file into an NXImage (GraphicImport)
- Dragging out the place for an Eps file (DrawingView, GraphicImport)
- Saving As EPS/Illustrator (Document, DrawingView, GraphicImport, NXEPSImageRepSub)
-