Base class for geometrical shapes. More...
#include <eVision/Easy/EShape.h>
Public Member Functions | |
| virtual | ~EShape () throw () |
| void | Load (const std::string &path) |
| Load the EShape configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Load the EShape configuration. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Save the EShape configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Save the EShape configuration. The given ESerializer must have been created for writing. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws the EShape shape. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const 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 (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| void | Drag (int32_t x, int32_t 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. | |
| void | Drag (int32_t x, int32_t y, float zoomX, float zoomY, float panX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, const 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. | |
| void | Drag (int32_t x, int32_t y, const 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. | |
| void | Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, const eVision::EFrame &frame) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | SetEditionMode (eVision::EEditionMode modes) |
| Current edition mode for the shape. Default: EEditionMode_None. | |
| eVision::EEditionMode | GetEditionMode () const |
| Current edition mode for the shape. Default: EEditionMode_None. | |
| virtual eVision::EEditionMode | GetAvailableEditionModes () const =0 |
| Available edition modes for the shape. | |
| virtual std::string | GetDescription () const =0 |
| Textual description of the shape and its parameters. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const |
| Converts the shape to a frame. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &shapeFrame) const |
| Converts the shape to a frame. | |
| EShape (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Base class for geometrical shapes.
License(s): BasicTypes
|
virtual | ||||||||||||
| eVision::EShape::EShape | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| const 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.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| const 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.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Moves the specified handle to a new position and updates all placement parameters of the region.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Drag | ( | int32_t | x, |
| int32_t | 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.
| 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. |
If zooming and/or panning were used when drawing the region, the same values must be used with EShape::HitTest and EShape::Drag.
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
Draws the EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
Draws the EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the shape is defined. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
Draws the EShape shape.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the 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. |
| void eVision::EShape::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the 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. |
|
pure virtual |
Available edition modes for the shape.
Implemented in eVision::ECircle, eVision::EEllipse, eVision::ELine, eVision::EPointSet, eVision::EPolygon, eVision::ERectangle, and eVision::EWedge.
|
pure virtual |
Textual description of the shape and its parameters.
Implemented in eVision::ECircle, eVision::EEllipse, eVision::ELine, eVision::EPointSet, eVision::EPolygon, eVision::ERectangle, and eVision::EWedge.
| eVision::EEditionMode eVision::EShape::GetEditionMode | ( | ) | const |
Current edition mode for the shape. Default: EEditionMode_None.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX ) |
Detects if the cursor is placed over one of the dragging handles.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| eVision::EEditionMode eVision::EShape::HitTest | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Detects if the cursor is placed over one of the dragging handles.
| 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. |
Returns an 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 EShape::HitTest and EShape::Drag.
| void eVision::EShape::Load | ( | const std::string & | path | ) |
Load the EShape configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::EShape::Load | ( | eVision::ESerializer * | serializer | ) |
Load the EShape configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| void eVision::EShape::Save | ( | const std::string & | path | ) |
Save the EShape configuration. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::EShape::Save | ( | eVision::ESerializer * | serializer | ) |
Save the EShape configuration. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| void eVision::EShape::SetEditionMode | ( | eVision::EEditionMode | modes | ) |
Current edition mode for the shape. Default: EEditionMode_None.
| modes | New edition modes |
| eVision::EFrame eVision::EShape::ToFrame | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling ) const |
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 | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling, | ||
| const eVision::EFrame & | shapeFrame ) const |
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 |
| CppWrapperInternal::WrappedClass eVision::EShape::wrappedClass_ |