Files related to Workspace Objects
Contents
- 1 Introduction
- 2 General File Info
- 3 File List
- 3.1 graphinfo.txt (required)
- 3.2 sample.png (optional)
- 3.3 graphpropertiesKEYWORD.m (required)
- 3.4 raveinitializeKEYWORD.m (required)
- 3.5 ravecreateKEYWORD.m (required)
- 3.6 viewtabKEYWORD.m (required)
- 3.7 formattabKEYWORD.m (required)
- 3.8 exploretabKEYWORD.m (optional)
- 3.9 raveupdateUPDATETYPEKEYWORD.m (optional)
- 3.10 ravedrawconstraintsKEYWORD.m (optional)
- 3.11 ravesetselectionmodeKEYWORD.m (optional)
- 3.12 pointselectKEYWORD.m (optional)
- 3.13 boxselectKEYWORD.m (optional)
- 3.14 lassoselectKEYWORD.m (optional)
Introduction
This page lists the various files that may comprise a workspace object. Each workspace object must have a unique keyword (unique in the sense that in any given Rave installation, each keyword must be unique). For this reason it is suggested that if you code your own workspace object and intend to distribute it to others, you give it a keyword that is specific enough to almost guarantee uniqueness. Conversely, the workspace objects that are distributed with Rave have very generic keywords. You may find it useful to code your workspace objects as specialized versions of these generic objects, by making copies of their folder and all its files, renaming them to have a new keyword, and making whatever changes are necessary. (Keep in mind that any modifications you make to the existing Rave files can only be distributed under the GPLv2 license.)
The files described below are named for a workspace object whose keyword is KEYWORD. All files related to this object must be placed in a folder named KEYWORD that is placed in one of the six folders below the graphics directory (rave\graphics\). Any time KEYWORD appears in a file name you must replace it with the unique keyword for the object you are coding. Otherwise, the filenames must be exactly as they appear below or Rave will not recognize them. Note that some file names do not include the keyword---Rave recognizes these by their location within the KEYWORD directory.
General File Info
All files must be functions except as indicated. None of the functions should have outputs. Each function must take two inputs. The first (usually called "src") is a handle to a graphics object in the main Rave window. The sole purpose of this input is to retrieve the handles structure. The second input (usually called "ev") is empty and unused, but must appear in the function definition at the top of the file. If you need to make additional functions used by any of the files below, you could include them as subfunctions inside one of the files listed below, or in separate files. Note that the preferred practice is to reserve the main identifying words that appear in the file names below (e.g. create, initialize, tab, etc...) for the files described below. To avoid confusion, other files you create should not include these words in their names.
File List
graphinfo.txt (required)
A plain text file. The first line of this file must contain only the (long) name of the workspace object as it will appear when selected in the New Workspace Object gui. The remainder of the file must contain a short (a few lines) description of the object, which also appears in the New Workspace Object gui.
sample.png (optional)
A 400x400 pixel png image that will appear in the "New Workspace Object" gui as a preview. If sample.png is not supplied, no preview image will be shown.