|
def | __init__ (self, parent) |
|
def | connectPoly (self) |
| Emit signal for add polygon. More...
|
|
def | getCoordinate (self, event) |
| Add coordinates of polygon, coordinates are from mouse clicked on the QGraphicsView. More...
|
|
def | draw (self) |
| Draw all drawn polygons. More...
|
|
def | addCoordToTable (self, x, y) |
|
def | checkPolygonIsValid (self, polNew) |
| Checks if the polygon is valid. More...
|
|
def | saveObject (self) |
| Save drawn object as Shapefile. More...
|
|
def | setCoordinate (self) |
| Returns points coordinates as numpy array. More...
|
|
def | cleanLayer (self) |
|
def | saveObject (self) |
|
def | deleteVerticle (self) |
| Delete verticle of object. More...
|
|
def | deleteObject (self, selectedRow, signal, numVertices) |
| Delete object, from selected row. More...
|
|
def | newDraw (self) |
| Redraw polygons. More...
|
|
§ __init__()
def agroeyepy.View.addnewobjecttolayer.Polygon.__init__ |
( |
|
self, |
|
|
|
parent |
|
) |
| |
§ addCoordToTable()
def agroeyepy.View.addnewobjecttolayer.Polygon.addCoordToTable |
( |
|
self, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
§ checkPolygonIsValid()
def agroeyepy.View.addnewobjecttolayer.Polygon.checkPolygonIsValid |
( |
|
self, |
|
|
|
polNew |
|
) |
| |
Checks if the polygon is valid.
Returns True if polygon is valid, False if not valid.
- Parameters
-
polNew | list of coordinates of new polygon. |
§ cleanLayer()
def agroeyepy.View.addnewobjecttolayer.Polygon.cleanLayer |
( |
|
self | ) |
|
§ connectPoly()
def agroeyepy.View.addnewobjecttolayer.Polygon.connectPoly |
( |
|
self | ) |
|
Emit signal for add polygon.
§ deleteObject()
def agroeyepy.View.addnewobjecttolayer.Polygon.deleteObject |
( |
|
self, |
|
|
|
selectedRow, |
|
|
|
signal, |
|
|
|
numVertices |
|
) |
| |
Delete object, from selected row.
- Parameters
-
selectedRow | index of selected row. |
signal | signal to remove object. |
numVertices | number of vertices. |
§ deleteVerticle()
def agroeyepy.View.addnewobjecttolayer.Polygon.deleteVerticle |
( |
|
self | ) |
|
Delete verticle of object.
§ draw()
def agroeyepy.View.addnewobjecttolayer.Polygon.draw |
( |
|
self | ) |
|
§ getCoordinate()
def agroeyepy.View.addnewobjecttolayer.Polygon.getCoordinate |
( |
|
self, |
|
|
|
event |
|
) |
| |
Add coordinates of polygon, coordinates are from mouse clicked on the QGraphicsView.
- Parameters
-
event | Mouse click wheel triggers this event |
§ newDraw()
def agroeyepy.View.addnewobjecttolayer.Polygon.newDraw |
( |
|
self | ) |
|
§ saveObject() [1/2]
def agroeyepy.View.addnewobjecttolayer.Polygon.saveObject |
( |
|
self | ) |
|
Save drawn object as Shapefile.
§ saveObject() [2/2]
def agroeyepy.View.addnewobjecttolayer.Polygon.saveObject |
( |
|
self | ) |
|
§ setCoordinate()
def agroeyepy.View.addnewobjecttolayer.Polygon.setCoordinate |
( |
|
self | ) |
|
Returns points coordinates as numpy array.
§ alpha
agroeyepy.View.addnewobjecttolayer.Polygon.alpha |
§ brushStyle
agroeyepy.View.addnewobjecttolayer.Polygon.brushStyle |
§ idObject
agroeyepy.View.addnewobjecttolayer.Polygon.idObject |
§ idVertice
agroeyepy.View.addnewobjecttolayer.Polygon.idVertice |
§ parent
agroeyepy.View.addnewobjecttolayer.Polygon.parent |
§ penStyle
agroeyepy.View.addnewobjecttolayer.Polygon.penStyle |
§ Polygons
agroeyepy.View.addnewobjecttolayer.Polygon.Polygons |
§ selectedPoly
def agroeyepy.View.addnewobjecttolayer.Polygon.selectedPoly |
Save drawn object as Shapefile.
Lists of all drawn polygons during creating shapefile.
Delete object, from selected row.
- Parameters
-
selectedRow | index of selected row. |
signal | signal to remove object. |
numVertices | number of vertices. |
§ signal
agroeyepy.View.addnewobjecttolayer.Polygon.signal |
§ verticleCount
agroeyepy.View.addnewobjecttolayer.Polygon.verticleCount |
The documentation for this class was generated from the following file: