Manages a rectangle shape. More...


Public Member Functions | |
| None | SetCenterXY (self, float centerX, float centerY) |
| Sets the center coordinates of a eVision.Legacy.ERectangleShape object. | |
| None | SetFromTwoPoints (self, eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using two opposed corners. | |
| None | SetFromOppositeCorners (self, eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using two opposed corners. | |
| None | SetFromOriginMiddleEnd (self, eVision.EPoint origin, eVision.EPoint middle, eVision.EPoint end) |
| Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using three corners. | |
| None | SetFromThreeCorners (self, eVision.EPoint origin, eVision.EPoint middle, eVision.EPoint end) |
| Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using three corners. | |
| None | SetSize (self, float sizeX, float sizeY) |
| Sets the size of a eVision.Legacy.ERectangleShape object. | |
| eVision.EPoint | GetPoint (self, float fractionX, float fractionY) |
| Returns the coordinates of a particular point, specified by its location in the eVision.Legacy.ERectangleShape area. | |
| None | GetMidEdges (self, eVision.EPoint x, eVision.EPoint XX, eVision.EPoint y, eVision.EPoint YY) |
| Retrieves the center coordinates of each edge of a eVision.Legacy.ERectangleShape object. | |
| None | GetCorners (self, eVision.EPoint xy, eVision.EPoint XXy, eVision.EPoint xYY, eVision.EPoint XXYY) |
| Retrieves the coordinates of each corner of a eVision.Legacy.ERectangleShape object. | |
| None | GetEdges (self, eVision.Legacy.ELine x, eVision.Legacy.ELine XX, eVision.Legacy.ELine y, eVision.Legacy.ELine YY) |
| Retrieves each edge of a eVision.Legacy.ERectangleShape object. | |
| None | CopyTo (self, eVision.Legacy.ERectangleShape dest, bool bRecursive) |
| Copies all the data of the current eVision.Legacy.ERectangleShape object into another eVision.Legacy.ERectangleShape object and returns it. | |
| None | CopyTo (self, eVision.Legacy.ERectangleShape dest) |
| Copies all the data of the current eVision.Legacy.ERectangleShape object into another eVision.Legacy.ERectangleShape object and returns it. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, bool daughters) |
| Draws a graphical representation of a shape, as defined by eVision.EDrawingMode. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode) |
| Draws a graphical representation of a shape, as defined by eVision.EDrawingMode. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws a graphical representation of a shape, as defined by eVision.EDrawingMode. | |
| None | Closest (self) |
| Find the daughter shape that is the closest to this shape. | |
| bool | HitTest (self, bool bDaughters) |
| Checks if there is a handle under the cursor. | |
| bool | HitTest (self) |
| Checks if there is a handle under the cursor. | |
| None | Drag (self, int n32CursorX, int n32CursorY) |
| Moves a handle to a new position and updates the position parameters of the shape. | |
| eVision.EPoint | Center (self) |
| Center point of the shape. | |
| Center (self, eVision.EPoint value) | |
| Center point of the shape. | |
| float | CenterX (self) |
| Abscissa of the origin point of the shape. | |
| float | CenterY (self) |
| Ordinate of the origin point of the shape. | |
| float | Angle (self) |
| Orientation of the shape. | |
| Angle (self, float value) | |
| Orientation of the shape. | |
| float | Scale (self) |
| Horizontal sensor resolution, in pixels per unit. | |
| Scale (self, float value) | |
| Horizontal sensor resolution, in pixels per unit. | |
| float | SizeX (self) |
| X size of the eVision.Legacy.ERectangleShape. | |
| float | SizeY (self) |
| Y size of the eVision.Legacy.ERectangleShape. | |
| eVision.EShapeType | Type (self) |
| Shape type. | |
| Public Member Functions inherited from eVision.Legacy.EShape | |
| eVision.Legacy.EShape|None | GetShapeNamed (self, str name) |
| Returns a pointer to a daughter gauge or shape specified by its name. | |
| bool | GetFound (self) |
| Flag indicating whether a measured shape has been found. | |
| bool | GetAutoArrange (self) |
| None | SetAutoArrange (self, bool bAutoArrange, bool bDaughters) |
| None | SetAutoArrange (self, bool bAutoArrange) |
| None | SetFound (self, bool bFound, bool bDaughters) |
| None | SetFound (self, bool bFound) |
| bool | GetInspected (self) |
| None | SetInspected (self, bool bFound, bool bDaughters) |
| None | SetInspected (self, bool bFound) |
| bool | GetPassed (self) |
| None | SetPassed (self, bool bFound, bool bDaughters) |
| None | SetPassed (self, bool bFound) |
| bool | GetQuickDraw (self) |
| None | SetQuickDraw (self, bool bFound, bool bDaughters) |
| None | SetQuickDraw (self, bool bFound) |
| bool | GetOptionalDraw (self) |
| None | SetOptionalDraw (self, bool bFound, bool bDaughters) |
| None | SetOptionalDraw (self, bool bFound) |
| bool | GetUserFlag (self) |
| None | SetUserFlag (self, bool bUserFlag, bool bDaughters) |
| None | SetUserFlag (self, bool bUserFlag) |
| bool | GetAllocated (self) |
| Gets the allocated flag. | |
| None | EnableBehaviorFilter (self, eVision.EShapeBehavior behavior, bool value) |
| Modifies the so-called behavior filter that is a conjunction of conditions specifying when a shape or a gauge should be displayed or taken into consideration when monitoring the mouse interactions. | |
| None | EnableBehaviorFilter (self, eVision.EShapeBehavior behavior) |
| Modifies the so-called behavior filter that is a conjunction of conditions specifying when a shape or a gauge should be displayed or taken into consideration when monitoring the mouse interactions. | |
| None | DisableBehaviorFilter (self, eVision.EShapeBehavior behavior) |
| Disables (i.e. | |
| None | Attach (self, eVision.Legacy.EShape|None mother) |
| Attaches the gauge to a mother gauge or shape. | |
| None | Detach (self) |
| Detaches the gauge from its mother gauge or shape. | |
| None | DetachDaughters (self) |
| Detaches the daughter gauges or shapes. | |
| eVision.Legacy.EShape|None | GetDaughter (self, int index) |
| Returns a pointer to the specified daughter gauge or shape. | |
| bool | IsWorld (self) |
| None | InvalidateWorld (self) |
| Invalidates the world shape for this shape and all its ancestors. | |
| eVision.EPoint | LocalToSensor (self, eVision.EPoint LPoint) |
| Transforms a point from local coordinates to sensor coordinates. | |
| eVision.EPoint | SensorToLocal (self, eVision.EPoint SPoint) |
| Transforms a point from sensor coordinates to local coordinates. | |
| None | SetZoom (self, float zoomX, float zoomY) |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| None | SetZoom (self, float zoomX) |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| None | SetZoom (self) |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| None | SetPan (self, float panX, float panY) |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| None | SetPan (self, float panX) |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| None | SetPan (self) |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| None | SetDraggingMode (self, eVision.EDraggingMode eDraggingMode, bool bDaughters) |
| Sets the dragging mode which defines how the shape could be dragged. | |
| None | SetDraggingMode (self, eVision.EDraggingMode eDraggingMode) |
| Sets the dragging mode which defines how the shape could be dragged. | |
| eVision.EDraggingMode | GetDraggingMode (self) |
| Gets the dragging mode which defines how the shape could be dragged. | |
| None | SetCursor (self, int x, int y) |
| Sets the cursor current coordinates. | |
| None | Process (self, eVision.EROIBW8|None pSrc, bool bDaughters) |
| None | Process (self, eVision.EROIBW8|None pSrc) |
| None | Process (self, eVision.EROIBW8|None pSrc, eVision.ERegion region, bool bDaughters) |
| None | Process (self, eVision.EROIBW8|None pSrc, eVision.ERegion region) |
| None | Save (self, str path, bool daughters) |
| Loads a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Save (self, str path) |
| Loads a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Save (self, eVision.ESerializer|None serializer, bool daughters) |
| Loads a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Loads a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Load (self, str path, bool daughters) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| None | Load (self, str path) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| None | Load (self, eVision.ESerializer|None serializer, bool daughters) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| bool | HasProperty (self, str aProperty) |
| Returns whether a eVision.Legacy.EShape has a property named aProperty. | |
| str | GetProperty (self, str aProperty) |
| Gets the value of property aProperty. | |
| None | SetProperty (self, str aProperty, str aValue) |
| Sets the value of property aProperty to aValue for this eVision.Legacy.EShape. | |
| None | SetPropertyRecursive (self, str aProperty, str aValue) |
| Sets the value of property aProperty to aValue for this eVision.Legacy.EShape and all of its daughters. | |
| None | RemoveProperty (self, str aProperty) |
| Removes the property name aProperty from the eVision.Legacy.EShape. | |
| bool | HasValidPolarityProperty (self) |
| Returns whether the eVision.Legacy.EShape has a valid polarity property. | |
| None | EnableTypeFilter (self, int un32Types) |
| Enables the filter of the specified shape type. | |
| None | DisableTypeFilter (self) |
| Enables all shape types. | |
| str | Name (self) |
| Name of the eVision.Legacy.EShape object. | |
| Name (self, str value) | |
| Name of the eVision.Legacy.EShape object. | |
| bool | Visible (self) |
| Flag indicating whether the shape is visible or not. | |
| Visible (self, bool value) | |
| Flag indicating whether the shape is visible or not. | |
| bool | Selected (self) |
| Flag indicating whether the shape is selected or not. | |
| Selected (self, bool value) | |
| Flag indicating whether the shape is selected or not. | |
| bool | Selectable (self) |
| Flag indicating whether the shape can be selected or not. | |
| Selectable (self, bool value) | |
| Flag indicating whether the shape can be selected or not. | |
| bool | Dragable (self) |
| Flag indicating whether the shape can be dragged or not. | |
| Dragable (self, bool value) | |
| Flag indicating whether the shape can be dragged or not. | |
| bool | Resizable (self) |
| Flag indicating whether the shape can be resized or not. | |
| Resizable (self, bool value) | |
| Flag indicating whether the shape can be resized or not. | |
| bool | Rotatable (self) |
| Flag indicating whether the shape can be rotated or not. | |
| Rotatable (self, bool value) | |
| Flag indicating whether the shape can be rotated or not. | |
| bool | Labeled (self) |
| Flag indicating whether the shape label should be displayed or not. | |
| Labeled (self, bool value) | |
| Flag indicating whether the shape label should be displayed or not. | |
| bool | Active (self) |
| Flag indicating whether the shape is active or not. | |
| Active (self, bool value) | |
| Flag indicating whether the shape is active or not. | |
| bool | ActualShape (self) |
| Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). | |
| ActualShape (self, bool value) | |
| Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). | |
| int | NumDaughters (self) |
| Number of daughters attached to the shape. | |
| eVision.Legacy.EShape|None | Mother (self) |
| Pointer to the mother shape. | |
| eVision.Legacy.EWorldShape|None | WorldShape (self) |
| World ancestor. | |
| float | ZoomX (self) |
| Current horizontal zooming factor for drawing operations. | |
| float | ZoomY (self) |
| Current vertical zooming factor for drawing operations. | |
| float | PanX (self) |
| Current horizontal panning value for drawing operations, expressed in pixels. | |
| float | PanY (self) |
| Current vertical panning value for drawing operations, expressed in pixels. | |
| eVision.EDragHandle | HitHandle (self) |
| Handle currently under the cursor. | |
| eVision.Legacy.EShape|None | HitShape (self) |
| Pointer to the shape currently under the cursor. | |
| eVision.Legacy.EShape|None | ClosestShape (self) |
| Closest shape among the daughters. | |
Protected Member Functions | |
| _Rectangle__setter (self, eVision.Legacy.ERectangle value) | |
| Sets the parameters of the rectangle according to a known eVision.Legacy.ERectangle object. | |
| Protected Member Functions inherited from eVision.Legacy.EShape | |
| _VisibleRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and its daughter shapes are visible or not. | |
| _SelectedRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters are selected or not. | |
| _SelectableRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters can be selected or not. | |
| _DragableRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters can be dragged or not. | |
| _ResizableRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters can be resized or not. | |
| _RotatableRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters can be rotated or not. | |
| _LabeledRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape label should be displayed or not. | |
| _ActiveRecursive__setter (self, bool value) | |
| Sets the flag indicating whether the shape and all its daughters are active or not. | |
| _ActualShapeRecursive__setter (self, bool value) | |
| Sets the flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). | |
Properties | |
| Rectangle | |
| Properties inherited from eVision.Legacy.EShape | |
| VisibleRecursive | |
| SelectedRecursive | |
| SelectableRecursive | |
| DragableRecursive | |
| ResizableRecursive | |
| RotatableRecursive | |
| LabeledRecursive | |
| ActiveRecursive | |
| ActualShapeRecursive | |
Manages a rectangle shape.
Remarks:
License(s): BasicTypes
|
protected |
Sets the parameters of the rectangle according to a known eVision.Legacy.ERectangle object.
| float eVision.Legacy.ERectangleShape.Angle | ( | self | ) |
Orientation of the shape.
| eVision.Legacy.ERectangleShape.Angle | ( | self, | |
| float | value ) |
Orientation of the shape.
| eVision.EPoint eVision.Legacy.ERectangleShape.Center | ( | self | ) |
Center point of the shape.
| eVision.Legacy.ERectangleShape.Center | ( | self, | |
| eVision.EPoint | value ) |
Center point of the shape.
| float eVision.Legacy.ERectangleShape.CenterX | ( | self | ) |
Abscissa of the origin point of the shape.
| float eVision.Legacy.ERectangleShape.CenterY | ( | self | ) |
Ordinate of the origin point of the shape.
| None eVision.Legacy.ERectangleShape.Closest | ( | self | ) |
Find the daughter shape that is the closest to this shape.
To retrieve the closest shape, use eVision.Legacy.EShape.ClosestShape.
Reimplemented from eVision.Legacy.EShape.
| None eVision.Legacy.ERectangleShape.CopyTo | ( | self, | |
| eVision.Legacy.ERectangleShape | dest ) |
Copies all the data of the current eVision.Legacy.ERectangleShape object into another eVision.Legacy.ERectangleShape object and returns it.
Remarks:
In the overload taking a pointer, in case of a NULL pointer, a new eVision.Legacy.ERectangleShape object will be created and returned.
| dest | Pointer to the eVision.Legacy.ERectangleShape object in which the current eVision.Legacy.ERectangleShape object data have to be copied. |
Reimplemented in eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.CopyTo | ( | self, | |
| eVision.Legacy.ERectangleShape | dest, | ||
| bool | bRecursive ) |
Copies all the data of the current eVision.Legacy.ERectangleShape object into another eVision.Legacy.ERectangleShape object and returns it.
Remarks:
In the overload taking a pointer, in case of a NULL pointer, a new eVision.Legacy.ERectangleShape object will be created and returned.
| dest | Pointer to the eVision.Legacy.ERectangleShape object in which the current eVision.Legacy.ERectangleShape object data have to be copied. |
| bRecursive | true if the children shapes have to be copied as well, false otherwise. |
Reimplemented in eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.Drag | ( | self, | |
| int | n32CursorX, | ||
| int | n32CursorY ) |
Moves a handle to a new position and updates the position parameters of the shape.
| n32CursorX | Current cursor coordinates. |
| n32CursorY | Current cursor coordinates. |
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge, eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EDrawingMode | drawingMode ) |
Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
| drawingMode | Indicates how the point location or model fitting gauge must be displayed, as defined by eVision.EDrawingMode. |
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge, eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EDrawingMode | drawingMode, | ||
| bool | daughters ) |
Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
| drawingMode | Indicates how the point location or model fitting gauge must be displayed, as defined by eVision.EDrawingMode. |
| daughters | true if the daughters gauges are to be displayed also. |
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge, eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| None eVision.Legacy.ERectangleShape.GetCorners | ( | self, | |
| eVision.EPoint | xy, | ||
| eVision.EPoint | XXy, | ||
| eVision.EPoint | xYY, | ||
| eVision.EPoint | XXYY ) |
Retrieves the coordinates of each corner of a eVision.Legacy.ERectangleShape object.
| xy | Coordinates of the lower leftmost corner of the eVision.Legacy.ERectangleShape object. |
| XXy | Coordinates of the lower rightmost corner of the eVision.Legacy.ERectangleShape object. |
| xYY | Coordinates of the upper leftmost corner of the eVision.Legacy.ERectangleShape object. |
| XXYY | Coordinates of the upper rightmost corner of the eVision.Legacy.ERectangleShape object. |
| None eVision.Legacy.ERectangleShape.GetEdges | ( | self, | |
| eVision.Legacy.ELine | x, | ||
| eVision.Legacy.ELine | XX, | ||
| eVision.Legacy.ELine | y, | ||
| eVision.Legacy.ELine | YY ) |
Retrieves each edge of a eVision.Legacy.ERectangleShape object.
| x | Leftmost edge of the eVision.Legacy.ERectangleShape object. |
| XX | Rightmost edge of the eVision.Legacy.ERectangleShape object. |
| y | Lower edge of the eVision.Legacy.ERectangleShape object. |
| YY | Upper edge of the eVision.Legacy.ERectangleShape object. |
| None eVision.Legacy.ERectangleShape.GetMidEdges | ( | self, | |
| eVision.EPoint | x, | ||
| eVision.EPoint | XX, | ||
| eVision.EPoint | y, | ||
| eVision.EPoint | YY ) |
Retrieves the center coordinates of each edge of a eVision.Legacy.ERectangleShape object.
| x | Center coordinates of the leftmost edge of the eVision.Legacy.ERectangleShape object. |
| XX | Center coordinates of the rightmost edge of the eVision.Legacy.ERectangleShape object. |
| y | Center coordinates of the lower edge of the eVision.Legacy.ERectangleShape object. |
| YY | Center coordinates of the upper edge of the eVision.Legacy.ERectangleShape object. |
| eVision.EPoint eVision.Legacy.ERectangleShape.GetPoint | ( | self, | |
| float | fractionX, | ||
| float | fractionY ) |
Returns the coordinates of a particular point, specified by its location in the eVision.Legacy.ERectangleShape area.
| fractionX | Point location expressed as a fraction of the eVision.Legacy.ERectangleShape vertical edges (range -1, +1). |
| fractionY | Point location expressed as a fraction of the eVision.Legacy.ERectangleShape horizontal edges (range -1, +1). |
| bool eVision.Legacy.ERectangleShape.HitTest | ( | self | ) |
Checks if there is a handle under the cursor.
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| bool eVision.Legacy.ERectangleShape.HitTest | ( | self, | |
| bool | bDaughters ) |
Checks if there is a handle under the cursor.
| bDaughters | Indicates if the check must be done in the whole hierarchy or just this object. |
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge, and eVision.Legacy.ERectangleGauge.
| float eVision.Legacy.ERectangleShape.Scale | ( | self | ) |
Horizontal sensor resolution, in pixels per unit.
| eVision.Legacy.ERectangleShape.Scale | ( | self, | |
| float | value ) |
Horizontal sensor resolution, in pixels per unit.
| None eVision.Legacy.ERectangleShape.SetCenterXY | ( | self, | |
| float | centerX, | ||
| float | centerY ) |
Sets the center coordinates of a eVision.Legacy.ERectangleShape object.
| centerX | Center coordinates of the eVision.Legacy.ERectangleShape object. |
| centerY | Center coordinates of the eVision.Legacy.ERectangleShape object. |
| None eVision.Legacy.ERectangleShape.SetFromOppositeCorners | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using two opposed corners.
Remarks:
In a direct coordinate system, the abscissa extends rightwards and the ordinate extends upwards. The coordinate system is said to be inverse if the abscissa extends rightwards and the ordinate extends downwards.
| origin | Origin point coordinates of the rectangle. |
| end | End point coordinates of the rectangle. |
| None eVision.Legacy.ERectangleShape.SetFromOriginMiddleEnd | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | middle, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using three corners.
Remarks:
In a direct coordinate system, the abscissa extends rightwards and the ordinate extends upwards. The coordinate system is said to be inverse if the abscissa extends rightwards and the ordinate extends downwards.
Use eVision.Legacy.ERectangleShape.SetFromThreeCorners instead.
Deprecated in version 25.10. Scheduled to be removed in version 27.6.
| origin | Origin point coordinates of the rectangle. |
| middle | Middle point coordinates of the rectangle. |
| end | End point coordinates of the rectangle. |
| None eVision.Legacy.ERectangleShape.SetFromThreeCorners | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | middle, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using three corners.
Remarks:
In a direct coordinate system, the abscissa extends rightwards and the ordinate extends upwards. The coordinate system is said to be inverse if the abscissa extends rightwards and the ordinate extends downwards.
| origin | Origin point coordinates of the rectangle. |
| middle | Middle point coordinates of the rectangle. |
| end | End point coordinates of the rectangle. |
| None eVision.Legacy.ERectangleShape.SetFromTwoPoints | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters of an eVision.Legacy.ERectangleShape object using two opposed corners.
Remarks:
In a direct coordinate system, the abscissa extends rightwards and the ordinate extends upwards. The coordinate system is said to be inverse if the abscissa extends rightwards and the ordinate extends downwards.
Use eVision.Legacy.ERectangleShape.SetFromOppositeCorners instead.
Deprecated in version 25.10. Scheduled to be removed in version 27.6.
| origin | Origin point coordinates of the rectangle. |
| end | End point coordinates of the rectangle. |
| None eVision.Legacy.ERectangleShape.SetSize | ( | self, | |
| float | sizeX, | ||
| float | sizeY ) |
Sets the size of a eVision.Legacy.ERectangleShape object.
Remarks:
A eVision.Legacy.ERectangleShape object is fully defined knowing its nominal position (given by the coordinates of its center), its nominal size, its rotation angle and its outline tolerance. By default, the width and height values are 100, which means 100 pixels when the field of view is not calibrated and 100 "units" in case of a calibrated field of view.
| sizeX | Nominal size X of the eVision.Legacy.ERectangleShape object. Default values is 100. |
| sizeY | Nominal size Y of the eVision.Legacy.ERectangleShape object. Default values is 100. |
| float eVision.Legacy.ERectangleShape.SizeX | ( | self | ) |
X size of the eVision.Legacy.ERectangleShape.
| float eVision.Legacy.ERectangleShape.SizeY | ( | self | ) |
Y size of the eVision.Legacy.ERectangleShape.
| eVision.EShapeType eVision.Legacy.ERectangleShape.Type | ( | self | ) |
Shape type.
Reimplemented from eVision.Legacy.EShape.
Reimplemented in eVision.Legacy.ERectangleGauge.
|
static |