|
IDL Reference Guide: iTools Object Classes |
|
The IDLitDataOperation class is a subclass of IDLitOperation that automates data access and automatically records information for the undo-redo system. By automating this functionality, the IDLitDataOperation class eliminates much of the work required to implement a standard subclass of the IDLitOperation class. See IDLitOperation for additional information on iTool operations.
| Note The IDLitDataOperation class is designed for use in operations that affect data values. If you are creating an operation that acts on items other than the data that underlies a visualization, you should base your operation class on the IDLitOperation class. |
While the implementation of a standard subclass of an IDLitOperation class requires the developer to provide implementations of the DoAction, UndoOperation, and RedoOperation methods, the IDLitDataOperation class provides these methods automatically. The only method the developer of an IDLitDataOperation class is required to implement is the Execute method, which contains the logic for the specific operation being performed. Depending on the operation being performed, the developer of an IDLitDataOperation may also implement methods to undo the operation, display a user interface before performing the operation, get and set properties specific to the operation, and initialize the IDLitDataOperation object.
When an IDLitDataOperation is requested by a user, the following things occur:
For each data object that includes data of an iTool data type supported by the IDLitDataOperation, the following things occur:
Once all selected data items have been processed, the undo-redo command set is placed into the system undo-redo buffer for later use.
For a detailed discussion of both the IDLitOperation and IDLitDataOperation classes, see Creating an Operation.
This class is written in the IDL language. Its source code can be found in the file idlitdataoperation__define.pro in the lib/itools/framework subdirectory of the IDL distribution.
| Note See the iTools Object Model Diagram for a visual representation of the iTools object model hierarchy. |
Objects of this class have the following properties. See IDLitDataOperation Properties for details on individual properties.
This class has the following methods:
In addition, this class inherits the methods of its superclasses (if any).
See Creating a New Data-Centric Operation for examples using this class and its methods.
IDL Online Help (March 06, 2007)