Represents a polygon. The number of vertices is arbitrary. A EPolygon could be closed (last and first point connected) or open (like a polyline shape). More...
#include <eVision/Easy/EPolygon.h>
Public Member Functions | |
| EPolygon () | |
| Constructs a EPolygon. | |
| EPolygon (const eVision::EPolygon &other) | |
| Constructs a EPolygon. | |
| EPolygon (const std::vector< eVision::EPoint > &vertices, bool closed) | |
| Constructs a EPolygon. | |
| EPolygon (const std::vector< eVision::EPoint > &vertices) | |
| Constructs a EPolygon. | |
| virtual | ~EPolygon () throw () |
| eVision::EPolygon & | operator= (const eVision::EPolygon &other) |
| Copies all the data from another EPolygon object into the current EPolygon object. | |
| bool | operator== (const eVision::EPolygon &polygon) const |
| Compares the current EPolygon with another EPolygon object. | |
| bool | operator!= (const eVision::EPolygon &polygon) const |
| Compares the current EPolygon with another EPolygon object. | |
| void | CopyTo (eVision::EPolygon &other) const |
| Copies the content of this object to the other one. | |
| void | AppendVertex (const eVision::EPoint &pt) |
| Appends a polygon vertex after the last. | |
| void | InsertVertex (int index, const eVision::EPoint &pt) |
| Inserts a vertex before the given index. | |
| void | RemoveVertex (int index) |
| Removes vertex at the given index. | |
| void | SetVertex (int index, const eVision::EPoint &pt) |
| Sets a polygon vertex. | |
| eVision::EPoint | GetVertex (int index) const |
| Gets a polygon vertex. | |
| void | SetIsClosed (bool state) |
| The polygon close attribute. | |
| bool | GetIsClosed () const |
| The polygon close attribute. | |
| int | GetNumVertices () const |
| Returns the number of polygon's vertices. | |
| int | GetNumEdges () const |
| Returns the number of polygon's edges (or sides). Depends on the EPolygon::SetIsClosed status. | |
| std::vector< eVision::EPoint > | GetVertices () const |
| Returns the list of polygon vertices. | |
| bool | IsValid () const |
| Returns true if the polygon is valid. A valid polygon has at least 2 (when open) or 3 (when closed) distinct and valid vertices and no duplicate points. | |
| float | GetLength () const |
| Returns the length (perimeter) of the polygon. | |
| float | GetArea () const |
| Returns the area of the polygon. | |
| eVision::EPoint | GetCenter () const |
| The center of the polygon (average position of all the vertices). | |
| float | GetEdgeLength (int index) const |
| Length of an edge. | |
| float | GetEdgeAngle (int index) const |
| Angle of the edge with respect to the X-axis. | |
| eVision::ELine | GetEdge (int index) const |
| Edge of the polygon as a ELine object. | |
| virtual eVision::EEditionMode | GetAvailableEditionModes () const |
| Available edition modes for the shape. | |
| virtual std::string | GetDescription () const |
| Textual description of the shape and its parameters. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY, float panX) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| eVision::EEditionMode | AddVertexAtDisplayPosition (int32_t x, int32_t y) |
| Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, const eVision::EFrame &frame) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY, float panX) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX, float zoomY) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y, float zoomX) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition (int32_t x, int32_t y) |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| void | RemoveVertexAtDisplayPosition () |
| Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest. | |
| EPolygon (CppWrapperInternal::InternalConstructor) | |
| Public Member Functions inherited from eVision::EShape | |
| 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. | |
| 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) | |
Additional Inherited Members | |
| Public Attributes inherited from eVision::EShape | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a polygon. The number of vertices is arbitrary. A EPolygon could be closed (last and first point connected) or open (like a polyline shape).
License(s): BasicTypes
| eVision::EPolygon::EPolygon | ( | ) |
Constructs a EPolygon.
| eVision::EPolygon::EPolygon | ( | const eVision::EPolygon & | other | ) |
| eVision::EPolygon::EPolygon | ( | const std::vector< eVision::EPoint > & | vertices, |
| bool | closed ) |
Constructs a EPolygon.
| vertices | A vector of at least 3 points. |
| closed | An optional parameter to set the closed properties. When closed, an edge exists between the last and first points of the polygon. By default, created polygons are closed. |
| eVision::EPolygon::EPolygon | ( | const std::vector< eVision::EPoint > & | vertices | ) |
Constructs a EPolygon.
| vertices | A vector of at least 3 points. |
|
virtual | ||||||||||||
| eVision::EPolygon::EPolygon | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| eVision::EEditionMode eVision::EPolygon::AddVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
Returns EEditionMode.Stretch for the new vertex.
| 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. |
| void eVision::EPolygon::AppendVertex | ( | const eVision::EPoint & | pt | ) |
Appends a polygon vertex after the last.
| pt | The point to append. |
| void eVision::EPolygon::CopyTo | ( | eVision::EPolygon & | other | ) | const |
Copies the content of this object to the other one.
| other | Other EPolygon object in which to copy the content of this object. |
| float eVision::EPolygon::GetArea | ( | ) | const |
Returns the area of the polygon.
|
virtual |
Available edition modes for the shape.
Implements eVision::EShape.
| eVision::EPoint eVision::EPolygon::GetCenter | ( | ) | const |
The center of the polygon (average position of all the vertices).
|
virtual |
Textual description of the shape and its parameters.
Implements eVision::EShape.
| eVision::ELine eVision::EPolygon::GetEdge | ( | int | index | ) | const |
Edge of the polygon as a ELine object.
| index | Index of the edge between 0 and EPolygon::GetNumEdges - 1. |
| float eVision::EPolygon::GetEdgeAngle | ( | int | index | ) | const |
Angle of the edge with respect to the X-axis.
| index | Index of the edge between 0 and EPolygon::GetNumEdges - 1. |
| float eVision::EPolygon::GetEdgeLength | ( | int | index | ) | const |
Length of an edge.
| index | Index of the edge between 0 and EPolygon::GetNumEdges - 1. |
| bool eVision::EPolygon::GetIsClosed | ( | ) | const |
The polygon close attribute.
| float eVision::EPolygon::GetLength | ( | ) | const |
Returns the length (perimeter) of the polygon.
| int eVision::EPolygon::GetNumEdges | ( | ) | const |
Returns the number of polygon's edges (or sides). Depends on the EPolygon::SetIsClosed status.
| int eVision::EPolygon::GetNumVertices | ( | ) | const |
Returns the number of polygon's vertices.
| eVision::EPoint eVision::EPolygon::GetVertex | ( | int | index | ) | const |
Gets a polygon vertex.
| index | The index of the vertex. |
| std::vector< eVision::EPoint > eVision::EPolygon::GetVertices | ( | ) | const |
Returns the list of polygon vertices.
| void eVision::EPolygon::InsertVertex | ( | int | index, |
| const eVision::EPoint & | pt ) |
Inserts a vertex before the given index.
| index | The index after which the vertex will be inserted. |
| pt | The point to insert. |
| bool eVision::EPolygon::IsValid | ( | ) | const |
Returns true if the polygon is valid. A valid polygon has at least 2 (when open) or 3 (when closed) distinct and valid vertices and no duplicate points.
| bool eVision::EPolygon::operator!= | ( | const eVision::EPolygon & | polygon | ) | const |
| eVision::EPolygon & eVision::EPolygon::operator= | ( | const eVision::EPolygon & | other | ) |
| bool eVision::EPolygon::operator== | ( | const eVision::EPolygon & | polygon | ) | const |
| void eVision::EPolygon::RemoveVertex | ( | int | index | ) |
Removes vertex at the given index.
| index | The index of the vertex to remove. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::RemoveVertexAtDisplayPosition | ( | int32_t | x, |
| int32_t | y, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Removes the vertex at the given position or the vertex hit during the last call to EShape::HitTest.
| 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. |
| void eVision::EPolygon::SetIsClosed | ( | bool | state | ) |
The polygon close attribute.
| state | Use true to close the polygon. |
| void eVision::EPolygon::SetVertex | ( | int | index, |
| const eVision::EPoint & | pt ) |
Sets a polygon vertex.
| index | The index of the vertex. |
| pt | The vertex position. |