![]() |
Agroeye
1.0
|
Public Member Functions | |
def | __init__ (self, parent=None) |
def | addFilesModel (self, model) |
def | convertLayersToData (self, fileListVisible, fileListAll) |
Set parameters of views, run thread for all loaded files. More... | |
def | rescale (self, scale) |
def | addLayers (self, params) |
Add loaded files to view as QGraphicsPixmapItem. More... | |
def | getFileName (self, path) |
def | getVisibleLayers (self) |
def | setupViewAreaParameters (self, file=None, fullExtent=False) |
Setup ViewArea parameters such as: projection EPSG, size of ViewScene, coordinates of center. More... | |
def | newSceneParameters (self, event) |
Calculates new width and height of View Scene. More... | |
def | clearScene (self) |
Clears the scene in order to create space for new elements after for example resizing, zooming, adding new layer or removing it. More... | |
def | buildUpBoundary (self) |
Builds new boundary in the currently displayed window. More... | |
def | setZoomWheelScrollFactor (self, valueIn) |
Changes the strength of the zoom. More... | |
def | wheelEvent (self, event) |
Examines what type of mouse wheel event has just occured. More... | |
def | contextMenuEvent (self, event) |
Creates context menu if right mouse button clicked inside the view area. More... | |
def | mouseMoveEvent (self, event) |
Changes the coordinates in the main window if the mouse moves over the view area or moves layers if the middle button was pressed or proper tool was selected. More... | |
def | mouseReleaseEvent (self, event) |
Finishes moving layers triggering shift. More... | |
def | getMouseCoordinates (self, qPoint) |
Converts pixel coordinates into physical coordinates in the terrain. More... | |
def | revertCoordinates (self, xReal, yReal) |
def | mousePressEvent (self, event) |
def | mouseDoubleClickEvent (self, event) |
def | panActionToggled (self, isToogled) |
def | resizeEvent (self, event) |
def | properties (self) |
def | zoomIn (self, event=None, delta=120) |
def | zoomOut (self, event=None, delta=-120) |
def | updateUI (self) |
def | fromPixelsToCoordinates (self, qPoint) |
Re-Calculates point coordinates from pixel into Geo-Coordinates. More... | |
def | setUpEPSG (self, combobox, code) |
def | chooseEPSG (self, newIndex, combobox, isTemp=False) |
Choose EPSG code. More... | |
def | epsgChanged (self, newIndex, combobox=False, setupMain=False) |
Set EPSG code to Raster. More... | |
def | checkComboBoxValues (self, args, kwargs) |
Simply styling line with editing EPSG code. More... | |
def | zoomTyped (self, textTyped, combobox) |
def | changeZoom (self, lineEdit=None, expression=None) |
Does everything connected with change zoom. More... | |
def | setZoomComboBoxValue (self, scaleNominator) |
def | setNoStyleZoomComboBox (self, index) |
def | projectionFromFirst (self) |
def | transformCoordinates (self, oldProj4, xCoord, yCooord) |
Public Attributes | |
scene | |
Clears the scene in order to create space for new elements after for example resizing, zooming, adding new layer or removing it. More... | |
parent | |
wheelScrollZoomFactor | |
Changes the strength of the zoom. More... | |
panActionActive | |
stretchClass | |
vectorPixSize | |
vectorSymbolStyle | |
vectorLineStyle | |
vectorFillStyle | |
vectorOpacity | |
vectorColorIn | |
projectionFirst | |
Set EPSG code to Raster. More... | |
centralPaintPoint | |
paintSize | |
Size of the displaying widget. More... | |
projectionEPSG | |
EPGS of showed files. More... | |
viewAreaSpatialReference | |
viewAreaProj4 | |
mem_drv | |
viewAreaAsRaster | |
Builds new boundary in the currently displayed window. More... | |
viewAreaGeoMatrix | |
pixSize | |
Does everything connected with change zoom. More... | |
scaleNominator | |
ratio | |
Coefficient to convert file pix size into graphics scene size. More... | |
ratioHeight | |
ratioWidth | |
movePressed | |
Finishes moving layers triggering shift. More... | |
startPosition | |
Changes the coordinates in the main window if the mouse moves over the view area or moves layers if the middle button was pressed or proper tool was selected. More... | |
offset | |
Pixel coordinates indicate upper left corner whereas geographic coordinates indicates center position of center of pix. More... | |
viewBoundary | |
sceneHeight | |
sceneWidth | |
Setup ViewArea parameters such as: projection EPSG, size of ViewScene, coordinates of center. More... | |
factor | |
pressed | |
comboIndexEpsg | |
Dictionary with current used EPSG code, show in viewerApplication.coordinateSystemComboBox. More... | |
EPSG2Name | |
Dictionary with all EPSG (by name) More... | |
EPSG2Proj4 | |
Dictionary with all EPSG (by Proj4) More... | |
getImageList | |
thread | |
zoomObject | |
zoomThread | |
files | |
Set parameters of views, run thread for all loaded files. More... | |
filesAll | |
getDataThread | |
svgWidget | |
Add loaded files to view as QGraphicsPixmapItem. More... | |
transformation | |
def agroeyepy.View.viewarea.ViewArea.__init__ | ( | self, | |
parent = None |
|||
) |
def agroeyepy.View.viewarea.ViewArea.addFilesModel | ( | self, | |
model | |||
) |
def agroeyepy.View.viewarea.ViewArea.addLayers | ( | self, | |
params | |||
) |
Add loaded files to view as QGraphicsPixmapItem.
params | 0 - list of raster data; 1 - list of vector data; |
def agroeyepy.View.viewarea.ViewArea.buildUpBoundary | ( | self | ) |
Builds new boundary in the currently displayed window.
def agroeyepy.View.viewarea.ViewArea.changeZoom | ( | self, | |
lineEdit = None , |
|||
expression = None |
|||
) |
Does everything connected with change zoom.
lineEdit | Parameter send if rescale was caused by typing value on keyboard |
expression | Parameter send if rescale was caused by selecting value from QComboBox |
def agroeyepy.View.viewarea.ViewArea.checkComboBoxValues | ( | self, | |
args, | |||
kwargs | |||
) |
Simply styling line with editing EPSG code.
When background is yellow it means that more digits are required, When background is green the number of digits is satisfactory Red background never appears because right format of characters is imposed by Regular Expression Validator
def agroeyepy.View.viewarea.ViewArea.chooseEPSG | ( | self, | |
newIndex, | |||
combobox, | |||
isTemp = False |
|||
) |
Choose EPSG code.
User can choose EPSG code from list or enter new EPSG Code. If user EPSG Code is valid, new code is add to list.
newIndex | Index of EPSG code list |
combobox | Given QComboBox widget as a instance of a QComboBox class from PyQt |
def agroeyepy.View.viewarea.ViewArea.clearScene | ( | self | ) |
Clears the scene in order to create space for new elements after for example resizing, zooming, adding new layer or removing it.
def agroeyepy.View.viewarea.ViewArea.contextMenuEvent | ( | self, | |
event | |||
) |
Creates context menu if right mouse button clicked inside the view area.
def agroeyepy.View.viewarea.ViewArea.convertLayersToData | ( | self, | |
fileListVisible, | |||
fileListAll | |||
) |
Set parameters of views, run thread for all loaded files.
Returns nothing.
fileList | List of all loaded files |
def agroeyepy.View.viewarea.ViewArea.epsgChanged | ( | self, | |
newIndex, | |||
combobox = False , |
|||
setupMain = False |
|||
) |
Set EPSG code to Raster.
newIndex | Index of chosen EPSG code |
combobox | Given QComboBox widget as a instance of a QComboBox class from PyQt |
def agroeyepy.View.viewarea.ViewArea.fromPixelsToCoordinates | ( | self, | |
qPoint | |||
) |
Re-Calculates point coordinates from pixel into Geo-Coordinates.
qPoint | Given point as a instance of a QPoint class from PyQt |
def agroeyepy.View.viewarea.ViewArea.getFileName | ( | self, | |
path | |||
) |
def agroeyepy.View.viewarea.ViewArea.getMouseCoordinates | ( | self, | |
qPoint | |||
) |
Converts pixel coordinates into physical coordinates in the terrain.
qPoint | Pair of coordinates of pixel under current position of mouse |
def agroeyepy.View.viewarea.ViewArea.getVisibleLayers | ( | self | ) |
def agroeyepy.View.viewarea.ViewArea.mouseDoubleClickEvent | ( | self, | |
event | |||
) |
def agroeyepy.View.viewarea.ViewArea.mouseMoveEvent | ( | self, | |
event | |||
) |
Changes the coordinates in the main window if the mouse moves over the view area or moves layers if the middle button was pressed or proper tool was selected.
event | Mouse event |
def agroeyepy.View.viewarea.ViewArea.mousePressEvent | ( | self, | |
event | |||
) |
def agroeyepy.View.viewarea.ViewArea.mouseReleaseEvent | ( | self, | |
event | |||
) |
Finishes moving layers triggering shift.
event | Mouse event |
def agroeyepy.View.viewarea.ViewArea.newSceneParameters | ( | self, | |
event | |||
) |
Calculates new width and height of View Scene.
event | Event causes changes |
def agroeyepy.View.viewarea.ViewArea.panActionToggled | ( | self, | |
isToogled | |||
) |
def agroeyepy.View.viewarea.ViewArea.projectionFromFirst | ( | self | ) |
def agroeyepy.View.viewarea.ViewArea.properties | ( | self | ) |
def agroeyepy.View.viewarea.ViewArea.rescale | ( | self, | |
scale | |||
) |
def agroeyepy.View.viewarea.ViewArea.resizeEvent | ( | self, | |
event | |||
) |
event | Sets new value of view area after every resizing |
def agroeyepy.View.viewarea.ViewArea.revertCoordinates | ( | self, | |
xReal, | |||
yReal | |||
) |
def agroeyepy.View.viewarea.ViewArea.setNoStyleZoomComboBox | ( | self, | |
index | |||
) |
def agroeyepy.View.viewarea.ViewArea.setUpEPSG | ( | self, | |
combobox, | |||
code | |||
) |
def agroeyepy.View.viewarea.ViewArea.setupViewAreaParameters | ( | self, | |
file = None , |
|||
fullExtent = False |
|||
) |
Setup ViewArea parameters such as: projection EPSG, size of ViewScene, coordinates of center.
file | Required parameters are set up from provided file, raster and vector are possible. |
def agroeyepy.View.viewarea.ViewArea.setZoomComboBoxValue | ( | self, | |
scaleNominator | |||
) |
def agroeyepy.View.viewarea.ViewArea.setZoomWheelScrollFactor | ( | self, | |
valueIn | |||
) |
Changes the strength of the zoom.
valueIn | Parameter for changes |
def agroeyepy.View.viewarea.ViewArea.transformCoordinates | ( | self, | |
oldProj4, | |||
xCoord, | |||
yCooord | |||
) |
def agroeyepy.View.viewarea.ViewArea.updateUI | ( | self | ) |
def agroeyepy.View.viewarea.ViewArea.wheelEvent | ( | self, | |
event | |||
) |
Examines what type of mouse wheel event has just occured.
Overrides the default method.
event | Scrolling the mouse wheel triggers this event |
def agroeyepy.View.viewarea.ViewArea.zoomIn | ( | self, | |
event = None , |
|||
delta = 120 |
|||
) |
if event is not None: mousePos = self.mapFromGlobal(event.globalPos()) self.centralPaintPoint = self.fromPixelsToCoordinates(mousePos)
def agroeyepy.View.viewarea.ViewArea.zoomOut | ( | self, | |
event = None , |
|||
delta = -120 |
|||
) |
if event is not None: mousePos = self.mapFromGlobal(event.globalPos()) self.centralPaintPoint = self.fromPixelsToCoordinates(mousePos)
def agroeyepy.View.viewarea.ViewArea.zoomTyped | ( | self, | |
textTyped, | |||
combobox | |||
) |
agroeyepy.View.viewarea.ViewArea.centralPaintPoint |
def agroeyepy.View.viewarea.ViewArea.comboIndexEpsg |
Dictionary with current used EPSG code, show in viewerApplication.coordinateSystemComboBox.
def agroeyepy.View.viewarea.ViewArea.EPSG2Name |
Dictionary with all EPSG (by name)
def agroeyepy.View.viewarea.ViewArea.EPSG2Proj4 |
Dictionary with all EPSG (by Proj4)
agroeyepy.View.viewarea.ViewArea.factor |
if event is not None: mousePos = self.mapFromGlobal(event.globalPos()) self.centralPaintPoint = self.fromPixelsToCoordinates(mousePos)
agroeyepy.View.viewarea.ViewArea.files |
Set parameters of views, run thread for all loaded files.
Returns nothing.
fileList | List of all loaded files |
agroeyepy.View.viewarea.ViewArea.filesAll |
agroeyepy.View.viewarea.ViewArea.getDataThread |
agroeyepy.View.viewarea.ViewArea.getImageList |
agroeyepy.View.viewarea.ViewArea.mem_drv |
def agroeyepy.View.viewarea.ViewArea.movePressed |
Finishes moving layers triggering shift.
flag checking whether shifting button is pressed or not
event | Mouse event |
def agroeyepy.View.viewarea.ViewArea.offset |
Pixel coordinates indicate upper left corner whereas geographic coordinates indicates center position of center of pix.
def agroeyepy.View.viewarea.ViewArea.paintSize |
Size of the displaying widget.
event | Sets new value of view area after every resizing |
agroeyepy.View.viewarea.ViewArea.panActionActive |
agroeyepy.View.viewarea.ViewArea.parent |
def agroeyepy.View.viewarea.ViewArea.pixSize |
Does everything connected with change zoom.
Current size of the graphics pix in meters.
lineEdit | Parameter send if rescale was caused by typing value on keyboard |
expression | Parameter send if rescale was caused by selecting value from QComboBox |
agroeyepy.View.viewarea.ViewArea.pressed |
def agroeyepy.View.viewarea.ViewArea.projectionEPSG |
EPGS of showed files.
agroeyepy.View.viewarea.ViewArea.projectionFirst |
Set EPSG code to Raster.
newIndex | Index of chosen EPSG code |
combobox | Given QComboBox widget as a instance of a QComboBox class from PyQt |
def agroeyepy.View.viewarea.ViewArea.ratio |
Coefficient to convert file pix size into graphics scene size.
agroeyepy.View.viewarea.ViewArea.ratioHeight |
agroeyepy.View.viewarea.ViewArea.ratioWidth |
agroeyepy.View.viewarea.ViewArea.scaleNominator |
agroeyepy.View.viewarea.ViewArea.scene |
Clears the scene in order to create space for new elements after for example resizing, zooming, adding new layer or removing it.
agroeyepy.View.viewarea.ViewArea.sceneHeight |
agroeyepy.View.viewarea.ViewArea.sceneWidth |
Setup ViewArea parameters such as: projection EPSG, size of ViewScene, coordinates of center.
file | Required parameters are set up from provided file, raster and vector are possible. |
def agroeyepy.View.viewarea.ViewArea.startPosition |
Changes the coordinates in the main window if the mouse moves over the view area or moves layers if the middle button was pressed or proper tool was selected.
Cooridnates of the position of the beginning of the movement.
event | Mouse event |
agroeyepy.View.viewarea.ViewArea.stretchClass |
agroeyepy.View.viewarea.ViewArea.svgWidget |
Add loaded files to view as QGraphicsPixmapItem.
params | 0 - list of raster data; 1 - list of vector data; |
agroeyepy.View.viewarea.ViewArea.thread |
agroeyepy.View.viewarea.ViewArea.transformation |
agroeyepy.View.viewarea.ViewArea.vectorColorIn |
agroeyepy.View.viewarea.ViewArea.vectorFillStyle |
agroeyepy.View.viewarea.ViewArea.vectorLineStyle |
agroeyepy.View.viewarea.ViewArea.vectorOpacity |
agroeyepy.View.viewarea.ViewArea.vectorPixSize |
agroeyepy.View.viewarea.ViewArea.vectorSymbolStyle |
agroeyepy.View.viewarea.ViewArea.viewAreaAsRaster |
Builds new boundary in the currently displayed window.
agroeyepy.View.viewarea.ViewArea.viewAreaGeoMatrix |
agroeyepy.View.viewarea.ViewArea.viewAreaProj4 |
agroeyepy.View.viewarea.ViewArea.viewAreaSpatialReference |
agroeyepy.View.viewarea.ViewArea.viewBoundary |
agroeyepy.View.viewarea.ViewArea.wheelScrollZoomFactor |
Changes the strength of the zoom.
valueIn | Parameter for changes |
agroeyepy.View.viewarea.ViewArea.zoomObject |
agroeyepy.View.viewarea.ViewArea.zoomThread |