コード例 #1
0
ファイル: preview.py プロジェクト: sampsonbryce/cdatgui
def continents():
    global __continents__
    if __continents__ is None:
        __continents__ = QtGui.QImage(data_file("resources/continents.jpeg"))
    return __continents__
コード例 #2
0
ファイル: selector.py プロジェクト: CDAT/cdatgui
'''
Created on Oct 31, 2011

@author: tpmaxwel
'''
from __future__ import division
import sys
import os
from PySide import QtCore, QtGui
from cdatgui.utils import data_file

defaultMapDir = data_file("resources")


class QtROISelectorMapFrame(object):

    def __init__( self, name, map_dir, map_file, grid_extent, latlon_bounds, map_scale ):
        self.name = name
        self.map_dir = map_dir
        self.map_file = map_file
        self.grid_extent = grid_extent
        self.latlon_bounds = latlon_bounds
        self.mapScale = map_scale
        self.view = None

    def getMapGridExtent(self):
        return self.grid_extent

    def getMapFilePath(self):
        return os.path.join( self.map_dir, self.map_file )
コード例 #3
0
def continents():
    global __continents__
    if __continents__ is None:
        __continents__ = QtGui.QImage(data_file("resources/continents.jpeg"))
    return __continents__