GRASS Programmer's Manual  6.4.2(2012)
nviz.py
Go to the documentation of this file.
00001 """!
00002 @package nviz.py
00003 
00004 @brief Nviz (3D view) module
00005 
00006 This module implements 3D visualization mode for map display.
00007 
00008 Map Display supports standard 2D view mode ('mapdisp' module) and
00009 2.5/3D mode ('nviz_mapdisp' module).
00010 
00011 (C) 2008, 2010 by the GRASS Development Team
00012 
00013 This program is free software under the GNU General Public
00014 License (>=v2). Read the file COPYING that comes with GRASS
00015 for details.
00016 
00017 @author Martin Landa <landa.martin gmail.com> (Google SoC 2008/2010)
00018 """
00019 
00020 errorMsg = ''
00021 
00022 import os
00023 import sys
00024 
00025 import wx
00026 import globalvar
00027 try:
00028     # from wx import glcanvas
00029     # disable wxNviz for 6.4.2
00030     # TODO: backport wxNviz from devbr6 *after* releasing 6.4.2
00031     # import nviz_mapdisp
00032     # import nviz_tools
00033     # import wxnviz
00034     haveNviz = False
00035 except (ImportError, NameError), err:
00036     haveNviz = False
00037     errorMsg = err
00038 
00039 if haveNviz:
00040     GLWindow = nviz_mapdisp.GLWindow
00041     NvizToolWindow = nviz_tools.NvizToolWindow
00042 else:
00043     GLWindow = None
00044     NvizToolWindow = None
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines