GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
nviz/main.py
Go to the documentation of this file.
1 """!
2 @package nviz.main
3 
4 @brief Nviz (3D view) module
5 
6 This module implements 3D visualization mode for map display.
7 
8 Map Display supports standard 2D view mode ('mapdisp' module) and
9 2.5/3D mode ('nviz_mapdisp' module).
10 
11 (C) 2008, 2010-2011 by the GRASS Development Team
12 
13 This program is free software under the GNU General Public License
14 (>=v2). Read the file COPYING that comes with GRASS for details.
15 
16 @author Martin Landa <landa.martin gmail.com> (Google SoC 2008/2010)
17 @author Anna Kratochvilova <KratochAnna seznam.cz> (Google SoC 2011)
18 """
19 
20 errorMsg = ''
21 
22 try:
23  from wx import glcanvas
24  from nviz import mapwindow
25  from nviz import tools
26  from nviz import workspace
27  import wxnviz
28  haveNviz = True
29 except (ImportError, NameError), err:
30  haveNviz = False
31  errorMsg = err
32 
33 if haveNviz:
34  GLWindow = mapwindow.GLWindow
35  NvizToolWindow = tools.NvizToolWindow
36  NvizSettings = workspace.NvizSettings
37 else:
38  GLWindow = None
39  NvizToolWindow = None
40  NvizSettings = None
Nviz (3D view) tools panel.
Definition: tools.py:59
OpenGL canvas for Map Display Window.