skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.view_rotate ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/analyze_plugins/analyze_utilities/view_rotate.py

Previous / Next / Contents

`
Viewpoint rotate is a mouse tool to rotate the viewpoint around the origin.
When the mouse is clicked, dragged and released on the canvas, viewpoint rotate will rotate the longitude by the amount the mouse is dragged around the origin. If the mouse is moved towards the origin, the latitude will be increased, so the viewpoint will be closer to the top. If the mouse is moved away from the origin, the latitude will be decreased. If the shift key is also pressed, only the latitude or longitude will be changed, whichever is being changed the most.
When the viewpoint rotate tool is chosen and the canvas has the focus, viewpoint rotate will listen to the arrow keys. Clicking in the canvas gives the canvas the focus, and when the canvas has the focus a thick black border is drawn around the canvas. When the right arrow key is pressed, viewpoint rotate will increase the preview longitude by one degree. When the left arrow key is pressed, the preview longitude will be decreased. The up arrow key increase the preview latitude by one degree and the down arow decreases the preview latitude. Pressing the <Return> key implements the preview.`

Previous / Next / Contents

Modules
`` |  |
__init__ | fabmetheus_utilities.euclidean | math | fabmetheus_utilities.settings

Classes
`` |  | skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase ViewpointRotate LatitudeLongitude
class LatitudeLongitude
`` | `A latitude and longitude.`
| Methods defined here: __init__(self, buttonOnePressedCanvasCoordinate, newCoordinate, skeinWindow, shift) `Set the latitude and longitude.`
class ViewpointRotate(skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase)
`` | `Display the line when it is clicked.`
| Methods defined here: button1(self, event, shift=False) `Print line text and connection line.` buttonRelease1(self, event, shift=False) `The left button was released, <ButtonRelease-1> function.` destroyEverything(self) `Destroy items.` getMoveCoordinate(self) `Get the movement coordinate from the class relative latitude and longitude.` keyPressDown(self, event) `The down arrow was pressed.` keyPressLeft(self, event) `The left arrow was pressed.` keyPressMotion(self) `Move the motion viewpoint for the class key press coordinates.` keyPressReturn(self, event) `The return key was pressed.` keyPressRight(self, event) `The right arrow was pressed.` keyPressStart(self) `If necessary, destroy everything and calculate the keyStartCanvasCoordinate.` keyPressUp(self, event) `The up arrow was pressed.` motion(self, event, shift=False) `Move the motion viewpoint if the mouse was moved.` motionGivenCoordinates(self, motionCoordinate, shift, startCoordinate) `Move the motion viewpoint given the motion coordinates.` moveViewpointGivenCoordinates(self, moveCoordinate, shift, startCoordinate) `Move the viewpoint given the move coordinates.` Methods inherited from skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase: destroyEverythingGetFocus(self) `Destroy items and get the focus for the canvas.` getReset(self, window) `Reset the mouse tool to default.` getTagsGivenXY(self, x, y) `Get the tag for the x and y.` isSelectionTool(self) `Return if this mouse tool is a selection tool.` setWindowItems(self, window) `Set the canvas and items.` update(self) `Update the mouse tool.`

Functions
`` |  | getBoundedLatitude(latitude) `Get the bounded latitude.later get rounded` getNewMouseTool() `Get a new mouse tool.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)