Agroeye  1.0
Public Member Functions | Public Attributes | List of all members
agroeyepy.Control.viewerApplication.AgroEye Class Reference

Main Class Everything runs from this point. More...

Inheritance diagram for agroeyepy.Control.viewerApplication.AgroEye:
Collaboration diagram for agroeyepy.Control.viewerApplication.AgroEye:

Public Member Functions

def __init__ (self, parent=None)
 Default constructor. More...
 
def update_ui (self)
 Updates display. More...
 
def setCoordinatesLineEdit (self, point)
 Sets received signal into bottom widget with coordinates. More...
 
def openFile (self, fname=None)
 Opens raster or vector file and adds it into model list. More...
 
def openProject (self)
 
def readFile (self, element)
 
def setupViewAreaFromXML (self, element)
 
def setupToolbars (self, element)
 
def setupMainToolbar (self, element)
 
def saveProject (self, fileLocation=None)
 
def saveProjectAs (self)
 
def setWindowTitleFromFilename (self, fh)
 
def checkFileIsValid (self, fname)
 Check if open file is supported file format. More...
 
def enableMenus (self)
 
def disableMenus (self)
 
def onRightClick (self, pos)
 Shows context menu on right click on list of loaded files. More...
 
def keyPressEvent (self, event)
 Quit AgroEye when Escape is pressed. More...
 
def openPreferencesDialog (self)
 Shows window to set preferences for view area, raster and vector file. More...
 
def about (self)
 Shows window about AgroEye. More...
 
def showMeasuringDistanceTool (self)
 Shows window to measure distance. More...
 
def showMeasuringAreaTool (self)
 Shows window to measure area. More...
 
def openGAECModel (self)
 Shows window to check GAEC rules. More...
 
def addNewVectorLayer (self)
 Shows window to add new vector layer shapefile. More...
 
def showRasterCalculator (self)
 Shows window to raster calculator. More...
 
def about_ext (self)
 
def closeEvent (self, event)
 

Public Attributes

 printer
 
 scaleFactor
 
 viewArea
 
 upLeft
 
 downRight
 
 ratio
 
 desktopWidget
 
 lastDirPath
 
 lastDirProjectPath
 
 fileLocation
 
 onOffActions
 
 loadedfiles_tableview
 
 loadedfiles_model
 
 preferencesDialog
 
 ext
 
 selection
 
 measureDistance
 
 measureArea
 
 model
 
 newVectorLayer
 
 rasterCalc
 

Detailed Description

Main Class Everything runs from this point.

Constructor & Destructor Documentation

§ __init__()

def agroeyepy.Control.viewerApplication.AgroEye.__init__ (   self,
  parent = None 
)

Default constructor.

Main body of the program.

Member Function Documentation

§ about()

def agroeyepy.Control.viewerApplication.AgroEye.about (   self)

Shows window about AgroEye.

§ about_ext()

def agroeyepy.Control.viewerApplication.AgroEye.about_ext (   self)

§ addNewVectorLayer()

def agroeyepy.Control.viewerApplication.AgroEye.addNewVectorLayer (   self)

Shows window to add new vector layer shapefile.

§ checkFileIsValid()

def agroeyepy.Control.viewerApplication.AgroEye.checkFileIsValid (   self,
  fname 
)

Check if open file is supported file format.

Parameters
fnameName of file
returnReturns name of file if file format is valid; otherwise returns None.
Here is the caller graph for this function:

§ closeEvent()

def agroeyepy.Control.viewerApplication.AgroEye.closeEvent (   self,
  event 
)

§ disableMenus()

def agroeyepy.Control.viewerApplication.AgroEye.disableMenus (   self)

§ enableMenus()

def agroeyepy.Control.viewerApplication.AgroEye.enableMenus (   self)

§ keyPressEvent()

def agroeyepy.Control.viewerApplication.AgroEye.keyPressEvent (   self,
  event 
)

Quit AgroEye when Escape is pressed.

Parameters
eventIf any key is pressed, checks an action to do
Here is the call graph for this function:

§ onRightClick()

def agroeyepy.Control.viewerApplication.AgroEye.onRightClick (   self,
  pos 
)

Shows context menu on right click on list of loaded files.

Parameters
posPosition of the context menu event.

§ openFile()

def agroeyepy.Control.viewerApplication.AgroEye.openFile (   self,
  fname = None 
)

Opens raster or vector file and adds it into model list.

Returns nothing.

Here is the call graph for this function:
Here is the caller graph for this function:

§ openGAECModel()

def agroeyepy.Control.viewerApplication.AgroEye.openGAECModel (   self)

Shows window to check GAEC rules.

§ openPreferencesDialog()

def agroeyepy.Control.viewerApplication.AgroEye.openPreferencesDialog (   self)

Shows window to set preferences for view area, raster and vector file.

§ openProject()

def agroeyepy.Control.viewerApplication.AgroEye.openProject (   self)
Here is the call graph for this function:

§ readFile()

def agroeyepy.Control.viewerApplication.AgroEye.readFile (   self,
  element 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ saveProject()

def agroeyepy.Control.viewerApplication.AgroEye.saveProject (   self,
  fileLocation = None 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ saveProjectAs()

def agroeyepy.Control.viewerApplication.AgroEye.saveProjectAs (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

§ setCoordinatesLineEdit()

def agroeyepy.Control.viewerApplication.AgroEye.setCoordinatesLineEdit (   self,
  point 
)

Sets received signal into bottom widget with coordinates.

Parameters
pointCoordinates of received point which are about to be set in the bottom.

§ setupMainToolbar()

def agroeyepy.Control.viewerApplication.AgroEye.setupMainToolbar (   self,
  element 
)
Here is the caller graph for this function:

§ setupToolbars()

def agroeyepy.Control.viewerApplication.AgroEye.setupToolbars (   self,
  element 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ setupViewAreaFromXML()

def agroeyepy.Control.viewerApplication.AgroEye.setupViewAreaFromXML (   self,
  element 
)
Here is the caller graph for this function:

§ setWindowTitleFromFilename()

def agroeyepy.Control.viewerApplication.AgroEye.setWindowTitleFromFilename (   self,
  fh 
)
Here is the caller graph for this function:

§ showMeasuringAreaTool()

def agroeyepy.Control.viewerApplication.AgroEye.showMeasuringAreaTool (   self)

Shows window to measure area.

§ showMeasuringDistanceTool()

def agroeyepy.Control.viewerApplication.AgroEye.showMeasuringDistanceTool (   self)

Shows window to measure distance.

§ showRasterCalculator()

def agroeyepy.Control.viewerApplication.AgroEye.showRasterCalculator (   self)

Shows window to raster calculator.

§ update_ui()

def agroeyepy.Control.viewerApplication.AgroEye.update_ui (   self)

Updates display.

Checks which layers are visible and show them. two list - all loaded files and all visible files.

Here is the caller graph for this function:

Member Data Documentation

§ desktopWidget

agroeyepy.Control.viewerApplication.AgroEye.desktopWidget

§ downRight

agroeyepy.Control.viewerApplication.AgroEye.downRight

§ ext

agroeyepy.Control.viewerApplication.AgroEye.ext

§ fileLocation

agroeyepy.Control.viewerApplication.AgroEye.fileLocation

§ lastDirPath

agroeyepy.Control.viewerApplication.AgroEye.lastDirPath

§ lastDirProjectPath

agroeyepy.Control.viewerApplication.AgroEye.lastDirProjectPath

§ loadedfiles_model

agroeyepy.Control.viewerApplication.AgroEye.loadedfiles_model

§ loadedfiles_tableview

agroeyepy.Control.viewerApplication.AgroEye.loadedfiles_tableview

§ measureArea

agroeyepy.Control.viewerApplication.AgroEye.measureArea

§ measureDistance

agroeyepy.Control.viewerApplication.AgroEye.measureDistance

§ model

agroeyepy.Control.viewerApplication.AgroEye.model

§ newVectorLayer

agroeyepy.Control.viewerApplication.AgroEye.newVectorLayer

§ onOffActions

agroeyepy.Control.viewerApplication.AgroEye.onOffActions

§ preferencesDialog

agroeyepy.Control.viewerApplication.AgroEye.preferencesDialog

§ printer

agroeyepy.Control.viewerApplication.AgroEye.printer

§ rasterCalc

agroeyepy.Control.viewerApplication.AgroEye.rasterCalc

§ ratio

agroeyepy.Control.viewerApplication.AgroEye.ratio

§ scaleFactor

agroeyepy.Control.viewerApplication.AgroEye.scaleFactor

§ selection

agroeyepy.Control.viewerApplication.AgroEye.selection

§ upLeft

agroeyepy.Control.viewerApplication.AgroEye.upLeft

§ viewArea

agroeyepy.Control.viewerApplication.AgroEye.viewArea

The documentation for this class was generated from the following file: