Package arcmap :: Module editortools :: Class PhysicsSelectTool
[hide private]
[frames] | no frames]

Class PhysicsSelectTool

source code

mapcontroller.MapListener --+        
                            |        
                   EditorTool --+    
                                |    
                        ShapeTool --+
                                    |
                                   PhysicsSelectTool

Instance Methods [hide private]
 
__init__(self, controller) source code
bool
mouseButtonPress(self, button, time)
Returns: True if this event causes a redraw to be necessary.
source code
bool
mouseButtonRelease(self, button, time)
Returns: True if this event causes a redraw to be necessary.
source code
bool
mouseMotion(self, x, y)
Returns: True if this event causes a redraw to be necessary.
source code
 
draw(self, context) source code
 
popupShapeMenu(self, shape, button, time) source code
 
deleteCB(self, menuitem, shape)
callback for the delete item in popupShapeMenu
source code
 
propertiesCB(self, menuitem, shape)
callback for the properties item in popupShapeMenu
source code
shapes.Shape
selectShape(self, x, y)
Returns: the shape selected, or None
source code
 
listenRemoveShape(self, shape)
Notify the listener that a shape was removed
source code

Inherited from EditorTool: getID, getInstructions, getPointer, keyPress, mouseEnter, mouseLeave, setInstructions, undo, x, y

Inherited from mapcontroller.MapListener: getController, listenAddLayer, listenAddShape, listenAddTile, listenAddTileSet, listenFileClosed, listenFileOpened, listenModified, listenRemoveLayer, listenRemoveTile, listenResize, listenSelectLayer, listenSetSelection, listenSetVisibilty, listenSwapLayers, listenUndoRedo

Method Details [hide private]

__init__(self, controller)
(Constructor)

source code 
Parameters:
  • controller - The controller that this will listen to
Overrides: mapcontroller.MapListener.__init__
(inherited documentation)

mouseButtonPress(self, button, time)

source code 
Parameters:
  • button - button that was pressed
  • time - the time that the button press happened. Necessary for popping up menus
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseButtonPress
(inherited documentation)

mouseButtonRelease(self, button, time)

source code 
Parameters:
  • button - button that was pressed
  • time - the time that the button press happened. Necessary for popping up menus
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseButtonRelease
(inherited documentation)

mouseMotion(self, x, y)

source code 
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseMotion
(inherited documentation)

draw(self, context)

source code 
Overrides: EditorTool.draw

popupShapeMenu(self, shape, button, time)

source code 
Parameters:
  • shape (shapes.Shape) - the shape that this is a context menu for
  • button (int) - the button pressed
  • time (int?) - the time that this event was triggered

deleteCB(self, menuitem, shape)

source code 

callback for the delete item in popupShapeMenu

Parameters:
  • menuitem (gtk.MenuItem) - ignored
  • shape (shapes.Shape) - the shape to delete

propertiesCB(self, menuitem, shape)

source code 

callback for the properties item in popupShapeMenu

Parameters:
  • menuitem (gtk.MenuItem) - ignored
  • shape (shapes.Shape) - the shape whose properties should be changed

selectShape(self, x, y)

source code 
Parameters:
  • x (int) - x-coordinate to test
  • y (int) - y-coordinate to test
Returns: shapes.Shape
the shape selected, or None

listenRemoveShape(self, shape)

source code 

Notify the listener that a shape was removed

Parameters:
  • shape - the shape added
Overrides: mapcontroller.MapListener.listenRemoveShape
(inherited documentation)