
Writing the Code
Using the Supplied Template
The easiest way to start is to use the supplied TemplateTool.C, located in the dkit/3.5/samples subdirectory of the directory where Eddie is installed. This template contains the basic include statements, definitions, classes and methods needed by custom tools, as well as useful comments to help you customize the code. If you were to compile the file as is, the result would be a custom tool that simply reads the source frame connected to it and passes the image unchanged to the next level in the hierarchy.
- Tip:
- If your tool is very complex and contains a great deal of code, you can isolate your class definition from its implementation by creating a separate .h file.
To begin, use the IRIX sed command to create a copy of the template, replacing each occurrence of the string "TemplateTool" with the name of your effect. For example, if you want to name your tool "MyEffect" (this should all be on one line):
sed 's/TemplateTool/MyEffect/g' TemplateTool.C >
MyEffect.C
The next step is to open the new file you just created with an ASCII text editor and write the code for your custom effect.
SOFTIMAGE Eddie 3.5 - 10 JAN 1997
