Agroeye  1.0
Public Member Functions | Public Attributes | List of all members
agroeyepy.View.addnewobjecttolayer.Polygon Class Reference
Collaboration diagram for agroeyepy.View.addnewobjecttolayer.Polygon:

Public Member Functions

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...
 

Public Attributes

 parent
 
 alpha
 
 idObject
 
 verticleCount
 
 idVertice
 
 selectedPoly
 Save drawn object as Shapefile. More...
 
 Polygons
 
 signal
 
 penStyle
 Draw all drawn polygons. More...
 
 brushStyle
 

Constructor & Destructor Documentation

§ __init__()

def agroeyepy.View.addnewobjecttolayer.Polygon.__init__ (   self,
  parent 
)

Member Function Documentation

§ addCoordToTable()

def agroeyepy.View.addnewobjecttolayer.Polygon.addCoordToTable (   self,
  x,
  y 
)
Here is the caller graph for this function:

§ 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
polNewlist of coordinates of new polygon.

§ cleanLayer()

def agroeyepy.View.addnewobjecttolayer.Polygon.cleanLayer (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

§ connectPoly()

def agroeyepy.View.addnewobjecttolayer.Polygon.connectPoly (   self)

Emit signal for add polygon.

Here is the call graph for this function:

§ deleteObject()

def agroeyepy.View.addnewobjecttolayer.Polygon.deleteObject (   self,
  selectedRow,
  signal,
  numVertices 
)

Delete object, from selected row.

Parameters
selectedRowindex of selected row.
signalsignal to remove object.
numVerticesnumber of vertices.
Here is the call graph for this function:
Here is the caller graph for this function:

§ deleteVerticle()

def agroeyepy.View.addnewobjecttolayer.Polygon.deleteVerticle (   self)

Delete verticle of object.

Here is the call graph for this function:

§ draw()

def agroeyepy.View.addnewobjecttolayer.Polygon.draw (   self)

Draw all drawn polygons.

Here is the caller graph for this function:

§ getCoordinate()

def agroeyepy.View.addnewobjecttolayer.Polygon.getCoordinate (   self,
  event 
)

Add coordinates of polygon, coordinates are from mouse clicked on the QGraphicsView.

Parameters
eventMouse click wheel triggers this event
Here is the call graph for this function:
Here is the caller graph for this function:

§ newDraw()

def agroeyepy.View.addnewobjecttolayer.Polygon.newDraw (   self)

Redraw polygons.

Here is the caller graph for this function:

§ saveObject() [1/2]

def agroeyepy.View.addnewobjecttolayer.Polygon.saveObject (   self)

Save drawn object as Shapefile.

Here is the caller graph for this function:

§ saveObject() [2/2]

def agroeyepy.View.addnewobjecttolayer.Polygon.saveObject (   self)
Here is the call graph for this function:

§ setCoordinate()

def agroeyepy.View.addnewobjecttolayer.Polygon.setCoordinate (   self)

Returns points coordinates as numpy array.

Here is the call graph for this function:

Member Data Documentation

§ 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

Draw all drawn polygons.

§ 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
selectedRowindex of selected row.
signalsignal to remove object.
numVerticesnumber 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: