Package arcmap :: Module undo :: Class TileAddAction
[hide private]
[frames] | no frames]

Class TileAddAction

source code

object --+    
         |    
UndoAction --+
             |
            TileAddAction

Action for adding tiles to the map. Because tiles are often added in chunks, the appendTileAdd method must be used. This way the entire chunk can be undone at once

Instance Methods [hide private]
 
__init__(self, controller)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
appendTileAdd(self, coords, newImageCoords, oldImageCoords)
Adds a tile add operation to this undo action...
source code
 
undo(self)
Undo the action
source code
 
redo(self)
Redo the action
source code

Inherited from UndoAction: getController, getRedoString, getUndoString, setDescription

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

appendTileAdd(self, coords, newImageCoords, oldImageCoords)

source code 

Adds a tile add operation to this undo action
@type coords: (int, int, int)
@param coords: x-coordinate, y-coordinate, and layer
@type newImageCoords: (int, int, int)
@param newImageCoords: x-coordinate of new tile's image,
    x-coordinate of new tile's image, and image index of new tile's
        image
@type oldImageCoords: (int, int, int)
@param oldImageCoords: x-coordinate of old tile's image,
    x-coordinate of old tile's image, and image index of old tile's
        image

undo(self)

source code 

Undo the action

Overrides: UndoAction.undo
(inherited documentation)

redo(self)

source code 

Redo the action

Overrides: UndoAction.redo
(inherited documentation)