A manipulator is the heart of any add-on that is used by ArtPaint. The manipulator is a class that is based on one of manipulator base-classes. Depending on which base-class the manipulator's class is based on, it must implement a certain set of functions. Currently there are three base-classes that can be used as a base for the manipulator and one intermediary class that should not be used as a direct base for manipulators. The classes are:
The classes form the following class-hierarchy:
The class GUIManipulator is just an intermediary class and should not be used as a direct base for any manipulator. The class Manipulator should be used as a base for those manipulators that do not accept any user input. Of current add-ons Emboss is an example of this kind of manipulator. The StatusBarGUIManipulator and WindowGUIManipulator classes should be used as a base for manipulators that allow for some kind of user input that affects how the image is manipulated. For example rotation in ArtPaint is handled by a subclass of StatusBarGUIManipulator and for example Blur is a subclass of WindowGUIManipulator. |
||