Package windSimSuite :: Package interface :: Module nacelle
[hide private]

Source Code for Module windSimSuite.interface.nacelle

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # 
 4  # This file is part of MBDyn sim suite. 
 5  # Copyright (C) 2007 André ESPAZE, as part of a Master thesis supervised by 
 6  # Martin O.L.Hansen (DTU) and Nicolas Chauvat (Logilab) 
 7   
 8  # MBDyn sim suite is free software; you can redistribute it and/or modify 
 9  # it under the terms of the GNU General Public License as published by 
10  # the Free Software Foundation; either version 2 of the License, or 
11  # (at your option) any later version. 
12  # 
13  # This program is distributed in the hope that it will be useful, 
14  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  # GNU General Public License for more details. 
17  # 
18  # You should have received a copy of the GNU General Public License 
19  # along with this program; if not, write to the Free Software 
20  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
21  # 
22  """The nacelle definition in a graphical environment.  
23  This module is still at an early development stage 
24  and until now the L{windSimSuite.interface.common} module 
25  does all the work. 
26  """ 
27  from windSimSuite.nacelle import Nacelle as NacelleBase 
28   
29  from windSimSuite.interface.common import WithNodesAndElemsMenu 
30  from windSimSuite.interface.common import GobjectWithNodesAndElems 
31   
32  from mbdyn.interface.nodes import NODE_CLASS 
33   
34 -class NacelleMenu(WithNodesAndElemsMenu):
35 """The nacelle menu""" 36 pass
37
38 -class Nacelle(NacelleBase, GobjectWithNodesAndElems):
39 """The GTK nacelle, with nodes and elements. 40 """ 41
42 - def __init__(self, name="nacelle"):
43 NacelleBase.__init__(self, name) 44 GobjectWithNodesAndElems.__init__(self) 45 self.set_node_class(NODE_CLASS) 46 self.menu_type = "nacelle"
47