Base class for geometrical shapes. More...

Public Member Functions | |
| None | Load (self, str path) |
| Load the eVision.EShape configuration. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Load the eVision.EShape configuration. | |
| None | Save (self, str path) |
| Save the eVision.EShape configuration. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Save the eVision.EShape configuration. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame) |
| Draws the eVision.EShape shape. | |
| eVision.EEditionMode | HitTest (self, int x, int y, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, eVision.EFrame frame, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| None | Drag (self, int x, int y, float zoomX, float zoomY, float panX, float panY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, float zoomX, float zoomY, float panX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, eVision.EFrame frame, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, eVision.EFrame frame) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| eVision.EFrame | ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling) |
| Converts the shape to a frame. | |
| eVision.EFrame | ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame shapeFrame) |
| Converts the shape to a frame. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset, float stopOffset, eVision.EFramesOrientation orientation) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset, float stopOffset) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
Properties | |
| EditionMode = property(_EditionMode__getter, _EditionMode__setter) | |
| Current edition mode for the shape. | |
| AvailableEditionModes = property(_AvailableEditionModes__getter, None) | |
| Available edition modes for the shape. | |
| Description = property(_Description__getter, None) | |
| Textual description of the shape and its parameters. | |
Base class for geometrical shapes.
Remarks:
License(s): BasicTypes
| list[eVision._eVision.EFrame] eVision.EShape.CreateFramesOnShape | ( | self, | |
| int | numFrames ) |
Distributes eVision.EFrames evenly along this shape's path or perimeter.
Remarks:
The numFrames frames are evenly distributed on the sub-path defined by startOffset and stopOffset:
Use eVision.EGrid.CreateFramesOnGrid to Create Frames in a grid.
| numFrames | Number of frames to generate. |
| list[eVision._eVision.EFrame] eVision.EShape.CreateFramesOnShape | ( | self, | |
| int | numFrames, | ||
| float | startOffset ) |
Distributes eVision.EFrames evenly along this shape's path or perimeter.
Remarks:
The numFrames frames are evenly distributed on the sub-path defined by startOffset and stopOffset:
Use eVision.EGrid.CreateFramesOnGrid to Create Frames in a grid.
| numFrames | Number of frames to generate. |
| startOffset | Fractional position in [0, 1] of the first frame along the path. Defaults to 0. |
| list[eVision._eVision.EFrame] eVision.EShape.CreateFramesOnShape | ( | self, | |
| int | numFrames, | ||
| float | startOffset, | ||
| float | stopOffset ) |
Distributes eVision.EFrames evenly along this shape's path or perimeter.
Remarks:
The numFrames frames are evenly distributed on the sub-path defined by startOffset and stopOffset:
Use eVision.EGrid.CreateFramesOnGrid to Create Frames in a grid.
| numFrames | Number of frames to generate. |
| startOffset | Fractional position in [0, 1] of the first frame along the path. Defaults to 0. |
| stopOffset | Fractional position in [0, 1] of the last frame along the path. Must be >= startOffset. Defaults to 1. |
| list[eVision._eVision.EFrame] eVision.EShape.CreateFramesOnShape | ( | self, | |
| int | numFrames, | ||
| float | startOffset, | ||
| float | stopOffset, | ||
| eVision.EFramesOrientation | orientation ) |
Distributes eVision.EFrames evenly along this shape's path or perimeter.
Remarks:
The numFrames frames are evenly distributed on the sub-path defined by startOffset and stopOffset:
Use eVision.EGrid.CreateFramesOnGrid to Create Frames in a grid.
| numFrames | Number of frames to generate. |
| startOffset | Fractional position in [0, 1] of the first frame along the path. Defaults to 0. |
| stopOffset | Fractional position in [0, 1] of the last frame along the path. Must be >= startOffset. Defaults to 1. |
| orientation | Whether each frame keeps the shape's base angle (eVision.EFramesOrientation.AlignedOnShape), follows the local tangent of the path (eVision.EFramesOrientation.AlignedLocally) or uses an angle of 0° (eVision.EFramesOrientation.Fixed). Defaults to eVision.EFramesOrientation.Fixed. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| None eVision.EShape.Drag | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
Remarks:
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| drawDiagonals | If relevant, draw the diagonals of the shape. By default, the diagonals are not drawn. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) |
Draws the eVision.EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| drawDiagonals | If relevant, draw the diagonals of the shape. By default, the diagonals are not drawn. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| eVision.EEditionMode eVision.EShape.HitTest | ( | self, | |
| int | x, | ||
| int | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Detects if the cursor is placed over one of the dragging handles.
Remarks:
Returns an eVision.EEditionMode indicating the type of handle under the mouse.
If zooming and/or panning were used when drawing the region, the same values must be used with eVision.EShape.HitTest and eVision.EShape.Drag.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| None eVision.EShape.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Load the eVision.EShape configuration.
The given eVision.ESerializer must have been created for reading.
| serializer | The serializer. |
Reimplemented in eVision.ELine, and eVision.ELine.
| None eVision.EShape.Load | ( | self, | |
| str | path ) |
Load the eVision.EShape configuration.
The given eVision.ESerializer must have been created for reading.
| path | The file path. |
Reimplemented in eVision.ELine, and eVision.ELine.
| None eVision.EShape.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Save the eVision.EShape configuration.
The given eVision.ESerializer must have been created for writing.
| serializer | The serializer. |
Reimplemented in eVision.ELine, and eVision.ELine.
| None eVision.EShape.Save | ( | self, | |
| str | path ) |
Save the eVision.EShape configuration.
The given eVision.ESerializer must have been created for writing.
| path | The file path. |
Reimplemented in eVision.ELine, and eVision.ELine.
| eVision.EFrame eVision.EShape.ToFrame | ( | self, | |
| bool | useAngle, | ||
| eVision.EFrameScaling | frameScaling ) |
Converts the shape to a frame.
| useAngle | Whether to use the angle of the shape as the orientation of the frame |
| frameScaling | How to change the scaling of the frame. |
| eVision.EFrame eVision.EShape.ToFrame | ( | self, | |
| bool | useAngle, | ||
| eVision.EFrameScaling | frameScaling, | ||
| eVision.EFrame | shapeFrame ) |
Converts the shape to a frame.
| useAngle | Whether to use the angle of the shape as the orientation of the frame |
| frameScaling | How to change the scaling of the frame. |
| shapeFrame | The frame in which the shape is defined |
|
static |
Available edition modes for the shape.
|
static |
Textual description of the shape and its parameters.
|
static |
Current edition mode for the shape.
Default: EEditionMode_None.