Abstract class to federate the classes that can be hierarchically attached together (from a geometrical point of view). More...
#include <eVision/EasyGauge/Legacy/EShape.h>
Public Member Functions | |
| virtual | ~EShape () throw () |
| virtual eVision::EShapeType | GetType () const =0 |
| Shape type. | |
| std::string | GetName () const |
| Name of the EShape object. | |
| void | SetName (const std::string &name) |
| Name of the EShape object. | |
| eVision::Legacy::EShape * | GetShapeNamed (const std::string &name) |
| Returns a pointer to a daughter gauge or shape specified by its name. | |
| bool | GetVisible () const |
| Flag indicating whether the shape is visible or not. | |
| void | SetVisible (bool visible) |
| Flag indicating whether the shape is visible or not. | |
| void | SetVisibleRecursive (bool visible) |
| Sets the flag indicating whether the shape and its daughter shapes are visible or not. | |
| bool | GetSelected () const |
| Flag indicating whether the shape is selected or not. | |
| void | SetSelected (bool selected) |
| Flag indicating whether the shape is selected or not. | |
| void | SetSelectedRecursive (bool selected) |
| Sets the flag indicating whether the shape and all its daughters are selected or not. | |
| bool | GetSelectable () const |
| Flag indicating whether the shape can be selected or not. | |
| void | SetSelectable (bool selectable) |
| Flag indicating whether the shape can be selected or not. | |
| void | SetSelectableRecursive (bool selectable) |
| Sets the flag indicating whether the shape and all its daughters can be selected or not. | |
| bool | GetDragable () const |
| Flag indicating whether the shape can be dragged or not. | |
| void | SetDragable (bool dragable) |
| Flag indicating whether the shape can be dragged or not. | |
| void | SetDragableRecursive (bool dragable) |
| Sets the flag indicating whether the shape and all its daughters can be dragged or not. | |
| bool | GetResizable () const |
| Flag indicating whether the shape can be resized or not. | |
| void | SetResizable (bool resizable) |
| Flag indicating whether the shape can be resized or not. | |
| void | SetResizableRecursive (bool resizable) |
| Sets the flag indicating whether the shape and all its daughters can be resized or not. | |
| bool | GetRotatable () const |
| Flag indicating whether the shape can be rotated or not. | |
| void | SetRotatable (bool rotatable) |
| Flag indicating whether the shape can be rotated or not. | |
| void | SetRotatableRecursive (bool rotatable) |
| Sets the flag indicating whether the shape and all its daughters can be rotated or not. | |
| bool | GetLabeled () const |
| Flag indicating whether the shape label should be displayed or not. | |
| void | SetLabeled (bool labeled) |
| Flag indicating whether the shape label should be displayed or not. | |
| void | SetLabeledRecursive (bool labeled) |
| Sets the flag indicating whether the shape label should be displayed or not. The flag is set in this shape and all its daughters. | |
| virtual bool | GetActive () const |
| Flag indicating whether the shape is active or not. | |
| virtual void | SetActive (bool active) |
| Flag indicating whether the shape is active or not. | |
| virtual void | SetActiveRecursive (bool active) |
| Sets the flag indicating whether the shape and all its daughters are active or not. | |
| bool | GetActualShape () const |
| Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). | |
| void | SetActualShape (bool actualShape) |
| Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). | |
| void | SetActualShapeRecursive (bool actualShape) |
| Sets the flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). The flag is set in this shape and all its daughters. | |
| bool | GetFound () const |
| Flag indicating whether a measured shape has been found. | |
| bool | GetAutoArrange () const |
| void | SetAutoArrange (bool bAutoArrange, bool bDaughters) |
| void | SetAutoArrange (bool bAutoArrange) |
| virtual void | SetFound (bool bFound, bool bDaughters) |
| virtual void | SetFound (bool bFound) |
| bool | GetInspected () const |
| void | SetInspected (bool bFound, bool bDaughters) |
| void | SetInspected (bool bFound) |
| bool | GetPassed () const |
| void | SetPassed (bool bFound, bool bDaughters) |
| void | SetPassed (bool bFound) |
| bool | GetQuickDraw () const |
| void | SetQuickDraw (bool bFound, bool bDaughters) |
| void | SetQuickDraw (bool bFound) |
| bool | GetOptionalDraw () const |
| void | SetOptionalDraw (bool bFound, bool bDaughters) |
| void | SetOptionalDraw (bool bFound) |
| bool | GetUserFlag () const |
| void | SetUserFlag (bool bUserFlag, bool bDaughters) |
| void | SetUserFlag (bool bUserFlag) |
| bool | GetAllocated () const |
| Gets the allocated flag. | |
| void | EnableBehaviorFilter (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. | |
| void | EnableBehaviorFilter (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. | |
| void | DisableBehaviorFilter (eVision::EShapeBehavior behavior) |
| Disables (i.e. removes) a condition from the list of conditions in the behavior filter. | |
| void | Attach (eVision::Legacy::EShape *mother) |
| Attaches the gauge to a mother gauge or shape. | |
| void | Detach () |
| Detaches the gauge from its mother gauge or shape. | |
| void | DetachDaughters () |
| Detaches the daughter gauges or shapes. | |
| uint32_t | GetNumDaughters () const |
| Number of daughters attached to the shape. | |
| eVision::Legacy::EShape * | GetMother () const |
| Pointer to the mother shape. | |
| virtual eVision::Legacy::EShape * | GetDaughter (uint32_t index) const |
| Returns a pointer to the specified daughter gauge or shape. | |
| eVision::Legacy::EWorldShape * | GetWorldShape () const |
| World ancestor. | |
| bool | IsWorld () const |
| void | InvalidateWorld () |
| Invalidates the world shape for this shape and all its ancestors. | |
| eVision::EPoint | LocalToSensor (const eVision::EPoint &LPoint) |
| Transforms a point from local coordinates to sensor coordinates. | |
| eVision::EPoint | SensorToLocal (const eVision::EPoint &SPoint) |
| Transforms a point from sensor coordinates to local coordinates. | |
| virtual void | Draw (eVision::EDrawAdapter *graphicContext, eVision::EDrawingMode drawingMode, bool daughters)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (eVision::EDrawAdapter *graphicContext, eVision::EDrawingMode drawingMode)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (eVision::EDrawAdapter *graphicContext)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext, eVision::EDrawingMode drawingMode, bool daughters)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext, eVision::EDrawingMode drawingMode)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext, const eVision::ERGBColor &color, eVision::EDrawingMode drawingMode, bool daughters)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext, const eVision::ERGBColor &color, eVision::EDrawingMode drawingMode)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | Draw (HDC graphicContext, const eVision::ERGBColor &color)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | DrawWithCurrentPen (HDC graphicContext, eVision::EDrawingMode drawingMode, bool daughters)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | DrawWithCurrentPen (HDC graphicContext, eVision::EDrawingMode drawingMode)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual void | DrawWithCurrentPen (HDC graphicContext)=0 |
| Draws a graphical representation of a shape, as defined by EDrawingMode. | |
| virtual float | GetZoomX () const |
| Current horizontal zooming factor for drawing operations. | |
| virtual float | GetZoomY () const |
| Current vertical zooming factor for drawing operations. | |
| virtual float | GetPanX () const |
| Current horizontal panning value for drawing operations, expressed in pixels. By default, no panning occurs. | |
| virtual float | GetPanY () const |
| Current vertical panning value for drawing operations, expressed in pixels. By default, no panning occurs. | |
| virtual void | SetZoom (float zoomX, float zoomY) |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| virtual void | SetZoom (float zoomX) |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| virtual void | SetZoom () |
| Sets the horizontal and vertical zooming factors for drawing operations. | |
| virtual void | SetPan (float panX, float panY) |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| virtual void | SetPan (float panX) |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| virtual void | SetPan () |
| Sets the horizontal and vertical panning values for drawing operations, expressed in pixels. | |
| virtual bool | HitTest (bool bDaughters)=0 |
| Checks if there is a handle under the cursor. | |
| virtual bool | HitTest ()=0 |
| Checks if there is a handle under the cursor. | |
| eVision::EDragHandle | GetHitHandle () const |
| Handle currently under the cursor. | |
| eVision::Legacy::EShape * | GetHitShape () const |
| Pointer to the shape currently under the cursor. | |
| void | SetDraggingMode (eVision::EDraggingMode eDraggingMode, bool bDaughters) |
| Sets the dragging mode which defines how the shape could be dragged. | |
| void | SetDraggingMode (eVision::EDraggingMode eDraggingMode) |
| Sets the dragging mode which defines how the shape could be dragged. | |
| eVision::EDraggingMode | GetDraggingMode () const |
| Gets the dragging mode which defines how the shape could be dragged. | |
| void | SetCursor (int32_t x, int32_t y) |
| Sets the cursor current coordinates. | |
| virtual void | Drag (int32_t n32CursorX, int32_t n32CursorY)=0 |
| Moves a handle to a new position and updates the position parameters of the shape. | |
| virtual void | Closest ()=0 |
| Find the daughter shape that is the closest to this shape. To retrieve the closest shape, use EShape::GetClosestShape. | |
| eVision::Legacy::EShape * | GetClosestShape () const |
| Closest shape among the daughters. | |
| virtual void | Process (eVision::EROIBW8 *pSrc, bool bDaughters) |
| virtual void | Process (eVision::EROIBW8 *pSrc) |
| virtual void | Process (eVision::EROIBW8 *pSrc, const eVision::ERegion ®ion, bool bDaughters) |
| virtual void | Process (eVision::EROIBW8 *pSrc, const eVision::ERegion ®ion) |
| void | Save (const std::string &path, bool daughters) |
| Loads a Shape.The given ESerializer must have been created for writing. | |
| void | Save (const std::string &path) |
| Loads a Shape.The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer, bool daughters) |
| Loads a Shape.The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Loads a Shape.The given ESerializer must have been created for writing. | |
| void | Load (const std::string &path, bool daughters) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| void | Load (const std::string &path) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer, bool daughters) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| bool | HasProperty (const std::string &aProperty) const |
| Returns whether a EShape has a property named aProperty. | |
| std::string | GetProperty (const std::string &aProperty) const |
| Gets the value of property aProperty. Throws an exception if no such property exists. | |
| void | SetProperty (const std::string &aProperty, const std::string &aValue) |
| Sets the value of property aProperty to aValue for this EShape. | |
| void | SetPropertyRecursive (const std::string &aProperty, const std::string &aValue) |
| Sets the value of property aProperty to aValue for this EShape and all of its daughters. | |
| void | RemoveProperty (const std::string &aProperty) |
| Removes the property name aProperty from the EShape. | |
| bool | HasValidPolarityProperty () const |
| Returns whether the EShape has a valid polarity property. | |
| virtual void | EnableTypeFilter (uint32_t un32Types) |
| Enables the filter of the specified shape type. | |
| virtual void | DisableTypeFilter () |
| Enables all shape types. | |
| EShape (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Abstract class to federate the classes that can be hierarchically attached together (from a geometrical point of view).
License(s): BasicTypes
|
virtual | ||||||||||||
| eVision::Legacy::EShape::EShape | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::Legacy::EShape::Attach | ( | eVision::Legacy::EShape * | mother | ) |
Attaches the gauge to a mother gauge or shape.
| mother | Pointer to the mother gauge or shape. |
When attached to a mother gauge, be aware that daughter gauges are not positioned according to the nominal mother gauge position, but to its corresponding fitted model.
|
pure virtual |
Find the daughter shape that is the closest to this shape. To retrieve the closest shape, use EShape::GetClosestShape.
Implemented in eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineShape, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
| void eVision::Legacy::EShape::Detach | ( | ) |
Detaches the gauge from its mother gauge or shape.
| void eVision::Legacy::EShape::DetachDaughters | ( | ) |
Detaches the daughter gauges or shapes.
| void eVision::Legacy::EShape::DisableBehaviorFilter | ( | eVision::EShapeBehavior | behavior | ) |
Disables (i.e. removes) a condition from the list of conditions in the behavior filter.
| behavior | The behavior of the shape to be removed from the behavior filter. |
The condition to be disabled is identified by the behavior about which the condition is. Disabling a behavior leads to less restrictive conditions for the Draw and HitTest methods to be actually carried on.
|
virtual |
Enables all shape types.
Reimplemented in eVision::Legacy::EWorldShape.
|
pure virtual |
Moves a handle to a new position and updates the position parameters of the shape.
| n32CursorX | Current cursor coordinates. |
| n32CursorY | Current cursor coordinates. |
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
| daughters | true if the daughters gauges are to be displayed also. |
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
| color | The color to draw with. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
| color | The color to draw with. |
| drawingMode | Indicates how the point location or model fitting gauge must be displayed, as defined by EDrawingMode. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
| color | The color to draw with. |
| drawingMode | Indicates how the point location or model fitting gauge must be displayed, as defined by EDrawingMode. |
| daughters | true if the daughters gauges are to be displayed also. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
| daughters | true if the daughters gauges are to be displayed also. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by EDrawingMode.
| graphicContext | Handle of the device context on which to draw. |
Use the overload of EShape::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
Use the overload of EShape::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
Draws a graphical representation of a shape, as defined by 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 EDrawingMode. |
| daughters | true if the daughters gauges are to be displayed also. |
Use the overload of EShape::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
| void eVision::Legacy::EShape::EnableBehaviorFilter | ( | 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.
| behavior | The behavior of the shape to be tested. |
This method registers a new necessary condition for the Draw and HitTest families of methods to be actually carried on. Such a condition is about the behavior of the shape, as specified by the behavior argument. Initially, the behavior filter contains an empty list of conditions, which means that the Draw and HitTest methods will always be executed. Adding a new condition through EShape::EnableBehaviorFilter will introduce a new restriction on the effective execution of these methods. Use EShape::DisableBehaviorFilter to remove a condition from the behavior filter.
| void eVision::Legacy::EShape::EnableBehaviorFilter | ( | 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.
| behavior | The behavior of the shape to be tested. |
| value | The value at which the behavior property should be set to pass the test. By default, equals True. |
This method registers a new necessary condition for the Draw and HitTest families of methods to be actually carried on. Such a condition is about the behavior of the shape, as specified by the behavior argument. Initially, the behavior filter contains an empty list of conditions, which means that the Draw and HitTest methods will always be executed. Adding a new condition through EShape::EnableBehaviorFilter will introduce a new restriction on the effective execution of these methods. Use EShape::DisableBehaviorFilter to remove a condition from the behavior filter.
|
virtual |
Enables the filter of the specified shape type.
| un32Types | The type of the shape to filter. |
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Flag indicating whether the shape is active or not.
| bool eVision::Legacy::EShape::GetActualShape | ( | ) | const |
Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true).
| bool eVision::Legacy::EShape::GetAllocated | ( | ) | const |
Gets the allocated flag.
| bool eVision::Legacy::EShape::GetAutoArrange | ( | ) | const |
| eVision::Legacy::EShape * eVision::Legacy::EShape::GetClosestShape | ( | ) | const |
Closest shape among the daughters.
Use EShape::Closest to recompute the closest shape.
|
virtual |
Returns a pointer to the specified daughter gauge or shape.
| index | Daughter gauge or shape index. |
| bool eVision::Legacy::EShape::GetDragable | ( | ) | const |
Flag indicating whether the shape can be dragged or not.
| eVision::EDraggingMode eVision::Legacy::EShape::GetDraggingMode | ( | ) | const |
Gets the dragging mode which defines how the shape could be dragged.
| bool eVision::Legacy::EShape::GetFound | ( | ) | const |
Flag indicating whether a measured shape has been found.
After calling Process() or Measure() on a gauge object, use GetFound() to get the status of the measurement.
| eVision::EDragHandle eVision::Legacy::EShape::GetHitHandle | ( | ) | const |
Handle currently under the cursor.
When the cursor is over a particular handle, its shape could be changed for feedback.
| eVision::Legacy::EShape * eVision::Legacy::EShape::GetHitShape | ( | ) | const |
Pointer to the shape currently under the cursor.
When the cursor is over a particular shape, its shape could be changed for feedback.
| bool eVision::Legacy::EShape::GetInspected | ( | ) | const |
| bool eVision::Legacy::EShape::GetLabeled | ( | ) | const |
Flag indicating whether the shape label should be displayed or not.
| eVision::Legacy::EShape * eVision::Legacy::EShape::GetMother | ( | ) | const |
Pointer to the mother shape.
| std::string eVision::Legacy::EShape::GetName | ( | ) | const |
Name of the EShape object.
| uint32_t eVision::Legacy::EShape::GetNumDaughters | ( | ) | const |
Number of daughters attached to the shape.
| bool eVision::Legacy::EShape::GetOptionalDraw | ( | ) | const |
|
virtual |
Current horizontal panning value for drawing operations, expressed in pixels. By default, no panning occurs.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Current vertical panning value for drawing operations, expressed in pixels. By default, no panning occurs.
Reimplemented in eVision::Legacy::EWorldShape.
| bool eVision::Legacy::EShape::GetPassed | ( | ) | const |
| std::string eVision::Legacy::EShape::GetProperty | ( | const std::string & | aProperty | ) | const |
Gets the value of property aProperty. Throws an exception if no such property exists.
| aProperty | The name of the property. |
| bool eVision::Legacy::EShape::GetQuickDraw | ( | ) | const |
| bool eVision::Legacy::EShape::GetResizable | ( | ) | const |
Flag indicating whether the shape can be resized or not.
| bool eVision::Legacy::EShape::GetRotatable | ( | ) | const |
Flag indicating whether the shape can be rotated or not.
| bool eVision::Legacy::EShape::GetSelectable | ( | ) | const |
Flag indicating whether the shape can be selected or not.
| bool eVision::Legacy::EShape::GetSelected | ( | ) | const |
Flag indicating whether the shape is selected or not.
| eVision::Legacy::EShape * eVision::Legacy::EShape::GetShapeNamed | ( | const std::string & | name | ) |
Returns a pointer to a daughter gauge or shape specified by its name.
| name | Name of the daughter gauge or shape. |
|
pure virtual |
Shape type.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
| bool eVision::Legacy::EShape::GetUserFlag | ( | ) | const |
| bool eVision::Legacy::EShape::GetVisible | ( | ) | const |
Flag indicating whether the shape is visible or not.
| eVision::Legacy::EWorldShape * eVision::Legacy::EShape::GetWorldShape | ( | ) | const |
World ancestor.
|
virtual |
Current horizontal zooming factor for drawing operations.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Current vertical zooming factor for drawing operations.
Reimplemented in eVision::Legacy::EWorldShape.
| bool eVision::Legacy::EShape::HasProperty | ( | const std::string & | aProperty | ) | const |
Returns whether a EShape has a property named aProperty.
| aProperty | The name of the property. |
| bool eVision::Legacy::EShape::HasValidPolarityProperty | ( | ) | const |
Returns whether the EShape has a valid polarity property.
I.e. if it has a property named "polarity" whose value is either "inverted" or "direct".
The "polarity" property is mostly used to define the orientation of the gradient in a shape of a EVectorModel.
|
pure virtual |
Checks if there is a handle under the cursor.
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
|
pure virtual |
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. |
Implemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ECircleShape, eVision::Legacy::EFrameShape, eVision::Legacy::ELineGauge, eVision::Legacy::ELineShape, eVision::Legacy::EPointGauge, eVision::Legacy::EPointShape, eVision::Legacy::EPolygonGauge, eVision::Legacy::EPolygonShape, eVision::Legacy::ERectangleGauge, eVision::Legacy::ERectangleShape, eVision::Legacy::EWedgeGauge, eVision::Legacy::EWedgeShape, and eVision::Legacy::EWorldShape.
| void eVision::Legacy::EShape::InvalidateWorld | ( | ) |
Invalidates the world shape for this shape and all its ancestors.
| bool eVision::Legacy::EShape::IsWorld | ( | ) | const |
| void eVision::Legacy::EShape::Load | ( | const std::string & | path | ) |
Loads a Shape.The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Legacy::EShape::Load | ( | const std::string & | path, |
| bool | daughters ) |
Loads a Shape.The given ESerializer must have been created for reading.
| path | The file path. |
| daughters | Indicates if the load must be done on the whole hierarchy or just this object. |
| void eVision::Legacy::EShape::Load | ( | eVision::ESerializer * | serializer | ) |
Loads a Shape.The given ESerializer must have been created for reading.
| serializer | Pointer to the ESerializer created for reading. |
| void eVision::Legacy::EShape::Load | ( | eVision::ESerializer * | serializer, |
| bool | daughters ) |
Loads a Shape.The given ESerializer must have been created for reading.
| serializer | Pointer to the ESerializer created for reading. |
| daughters | Indicates if the load must be done on the whole hierarchy or just this object. |
| eVision::EPoint eVision::Legacy::EShape::LocalToSensor | ( | const eVision::EPoint & | LPoint | ) |
Transforms a point from local coordinates to sensor coordinates.
| LPoint | The point in local coordinates. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void eVision::Legacy::EShape::RemoveProperty | ( | const std::string & | aProperty | ) |
Removes the property name aProperty from the EShape.
| aProperty | The name of the property. |
| void eVision::Legacy::EShape::Save | ( | const std::string & | path | ) |
Loads a Shape.The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Legacy::EShape::Save | ( | const std::string & | path, |
| bool | daughters ) |
Loads a Shape.The given ESerializer must have been created for writing.
| path | The file path. |
| daughters | Indicates if the save must be done on the whole hierarchy or just this object. |
| void eVision::Legacy::EShape::Save | ( | eVision::ESerializer * | serializer | ) |
Loads a Shape.The given ESerializer must have been created for writing.
| serializer | Pointer to the ESerializer created for writing. |
| void eVision::Legacy::EShape::Save | ( | eVision::ESerializer * | serializer, |
| bool | daughters ) |
Loads a Shape.The given ESerializer must have been created for writing.
| serializer | Pointer to the ESerializer created for writing. |
| daughters | Indicates if the save must be done on the whole hierarchy or just this object. |
| eVision::EPoint eVision::Legacy::EShape::SensorToLocal | ( | const eVision::EPoint & | SPoint | ) |
Transforms a point from sensor coordinates to local coordinates.
| SPoint | The point in sensor coordinates. |
|
virtual |
Flag indicating whether the shape is active or not.
Reimplemented in eVision::Legacy::ECircleGauge, eVision::Legacy::ELineGauge, eVision::Legacy::EPointGauge, eVision::Legacy::EPolygonGauge, eVision::Legacy::ERectangleGauge, and eVision::Legacy::EWedgeGauge.
|
virtual |
Sets the flag indicating whether the shape and all its daughters are active or not.
| active | Flag indicating whether the shapes are active (true, default) or not (false). |
When complex gauging is required, several gauges can be grouped together. Applying Process() to the mother gauge or shape triggers the measurement of the whole. Only the active gauges will participate in the process.
| void eVision::Legacy::EShape::SetActualShape | ( | bool | actualShape | ) |
Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true).
| void eVision::Legacy::EShape::SetActualShapeRecursive | ( | bool | actualShape | ) |
Sets the flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true). The flag is set in this shape and all its daughters.
| actualShape | Flag indicating whether an inquiry returns a result pertaining to the nominal gauge (false, default) or the fitted model (true) |
| void eVision::Legacy::EShape::SetAutoArrange | ( | bool | bAutoArrange | ) |
| void eVision::Legacy::EShape::SetAutoArrange | ( | bool | bAutoArrange, |
| bool | bDaughters ) |
| void eVision::Legacy::EShape::SetCursor | ( | int32_t | x, |
| int32_t | y ) |
Sets the cursor current coordinates.
| x | Cursor current coordinates. |
| y | Cursor current coordinates. |
| void eVision::Legacy::EShape::SetDragable | ( | bool | dragable | ) |
Flag indicating whether the shape can be dragged or not.
| void eVision::Legacy::EShape::SetDragableRecursive | ( | bool | dragable | ) |
Sets the flag indicating whether the shape and all its daughters can be dragged or not.
| dragable | Flag indicating whether the shape can be dragged (true) or not (false, default). |
| void eVision::Legacy::EShape::SetDraggingMode | ( | eVision::EDraggingMode | eDraggingMode | ) |
Sets the dragging mode which defines how the shape could be dragged.
| eDraggingMode | The draggingMode. |
| void eVision::Legacy::EShape::SetDraggingMode | ( | eVision::EDraggingMode | eDraggingMode, |
| bool | bDaughters ) |
Sets the dragging mode which defines how the shape could be dragged.
| eDraggingMode | The draggingMode. |
| bDaughters | Indicates if the set must be done in the whole hierarchy or just this object. |
|
virtual |
|
virtual |
| void eVision::Legacy::EShape::SetInspected | ( | bool | bFound | ) |
| void eVision::Legacy::EShape::SetInspected | ( | bool | bFound, |
| bool | bDaughters ) |
| void eVision::Legacy::EShape::SetLabeled | ( | bool | labeled | ) |
Flag indicating whether the shape label should be displayed or not.
| void eVision::Legacy::EShape::SetLabeledRecursive | ( | bool | labeled | ) |
Sets the flag indicating whether the shape label should be displayed or not. The flag is set in this shape and all its daughters.
| labeled | Flag indicating whether the shape label should be displayed (true) or not (false, default). |
| void eVision::Legacy::EShape::SetName | ( | const std::string & | name | ) |
Name of the EShape object.
| void eVision::Legacy::EShape::SetOptionalDraw | ( | bool | bFound | ) |
| void eVision::Legacy::EShape::SetOptionalDraw | ( | bool | bFound, |
| bool | bDaughters ) |
|
virtual |
Sets the horizontal and vertical panning values for drawing operations, expressed in pixels.
All objects attached to an EWorldShape object inherit of the same panning factor.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Sets the horizontal and vertical panning values for drawing operations, expressed in pixels.
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
All objects attached to an EWorldShape object inherit of the same panning factor.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Sets the horizontal and vertical panning values for drawing operations, expressed in pixels.
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
All objects attached to an EWorldShape object inherit of the same panning factor.
Reimplemented in eVision::Legacy::EWorldShape.
| void eVision::Legacy::EShape::SetPassed | ( | bool | bFound | ) |
| void eVision::Legacy::EShape::SetPassed | ( | bool | bFound, |
| bool | bDaughters ) |
| void eVision::Legacy::EShape::SetProperty | ( | const std::string & | aProperty, |
| const std::string & | aValue ) |
Sets the value of property aProperty to aValue for this EShape.
| aProperty | The name of the property. |
| aValue | The value of the property. |
You may use a shape property to define the orientation of the gradient in a shape of a EVectorModel. This is done by setting a property named "polarity" to "inverted" or "direct".
Additionally, you may set any property to any value for your own needs.
| void eVision::Legacy::EShape::SetPropertyRecursive | ( | const std::string & | aProperty, |
| const std::string & | aValue ) |
Sets the value of property aProperty to aValue for this EShape and all of its daughters.
| aProperty | The name of the property. |
| aValue | The value of the property. |
| void eVision::Legacy::EShape::SetQuickDraw | ( | bool | bFound | ) |
| void eVision::Legacy::EShape::SetQuickDraw | ( | bool | bFound, |
| bool | bDaughters ) |
| void eVision::Legacy::EShape::SetResizable | ( | bool | resizable | ) |
Flag indicating whether the shape can be resized or not.
| void eVision::Legacy::EShape::SetResizableRecursive | ( | bool | resizable | ) |
Sets the flag indicating whether the shape and all its daughters can be resized or not.
| resizable | Flag indicating whether the shape can be resized (true) or not (false, default). |
| void eVision::Legacy::EShape::SetRotatable | ( | bool | rotatable | ) |
Flag indicating whether the shape can be rotated or not.
| void eVision::Legacy::EShape::SetRotatableRecursive | ( | bool | rotatable | ) |
Sets the flag indicating whether the shape and all its daughters can be rotated or not.
| rotatable | Flag indicating whether the shape can be rotated (true) or not (false, default). |
| void eVision::Legacy::EShape::SetSelectable | ( | bool | selectable | ) |
Flag indicating whether the shape can be selected or not.
| void eVision::Legacy::EShape::SetSelectableRecursive | ( | bool | selectable | ) |
Sets the flag indicating whether the shape and all its daughters can be selected or not.
| selectable | Flag indicating whether the shape can be selected (true, default) or not (false). |
| void eVision::Legacy::EShape::SetSelected | ( | bool | selected | ) |
Flag indicating whether the shape is selected or not.
| void eVision::Legacy::EShape::SetSelectedRecursive | ( | bool | selected | ) |
Sets the flag indicating whether the shape and all its daughters are selected or not.
| selected | Flag indicating whether the shape is selected (true) or not (false). |
| void eVision::Legacy::EShape::SetUserFlag | ( | bool | bUserFlag | ) |
| void eVision::Legacy::EShape::SetUserFlag | ( | bool | bUserFlag, |
| bool | bDaughters ) |
| void eVision::Legacy::EShape::SetVisible | ( | bool | visible | ) |
Flag indicating whether the shape is visible or not.
| void eVision::Legacy::EShape::SetVisibleRecursive | ( | bool | visible | ) |
Sets the flag indicating whether the shape and its daughter shapes are visible or not.
| visible | Flag indicating whether the shape is visible (true, default) or not (false). |
|
virtual |
Sets the horizontal and vertical zooming factors for drawing operations.
All objects attached to an EWorldShape inherit of the same zooming factor.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Sets the horizontal and vertical zooming factors for drawing operations.
| zoomX | Horizontal zooming factor. By default, true scale is used. |
All objects attached to an EWorldShape inherit of the same zooming factor.
Reimplemented in eVision::Legacy::EWorldShape.
|
virtual |
Sets the horizontal and vertical zooming factors for drawing operations.
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
All objects attached to an EWorldShape inherit of the same zooming factor.
Reimplemented in eVision::Legacy::EWorldShape.
| CppWrapperInternal::WrappedClass eVision::Legacy::EShape::wrappedClass_ |