本文整理匯總了Python中openalea.core.node.Node.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Node.__init__方法的具體用法?Python Node.__init__怎麽用?Python Node.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類openalea.core.node.Node
的用法示例。
在下文中一共展示了Node.__init__方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self, inputs):
"""
inputs : list of dict(name='', interface='', value'',...)
"""
Node.__init__(self, outputs=inputs)
self.internal_data['caption'] = "In"
示例2: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self, packagedata, editors=None, includes=[]):
"""
@packagedata : A file contained in a defined package.
@editors : A dictionary of commands which act on the file.
@includes : Other files that are included in the data file.
"""
Node.__init__(self, inputs=(dict(name='data', interface=IData, value=packagedata),
dict(name='editors', interface=None, value=editors),
dict(name='includes', interface=None, value=includes)),
outputs=(dict(name='data', interface=IData), ), )
self.caption = '%s' % (packagedata.name)
self.watch = None
self.monitor_file(str(packagedata))
if not includes:
self.set_port_hidden(2, True)
示例3: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__( self, inputs, outputs ):
Node.__init__( self, inputs, outputs )
示例4: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self):
Node.__init__(self)
self.add_input(name="geom", interface=None)
self.add_output(name="scene", interface=None)
示例5: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self, inputs, outputs):
Node.__init__(self, inputs, outputs)
self.world = World()
示例6: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self, *args):
""" Constructor """
Node.__init__(self, *args)
self.iterable = "Empty"
示例7: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self,*args):
Node.__init__(self,*args)
self.widget = None
self.enabled = not (QtCore.QCoreApplication .instance() is None)
示例8: __init__
# 需要導入模塊: from openalea.core.node import Node [as 別名]
# 或者: from openalea.core.node.Node import __init__ [as 別名]
def __init__(self, *args, **kwargs):
Node.__init__(self, *args, **kwargs)
self.internal_data["methodName"] = None
self.internal_data["methodSig"] = None
self.add_output(name='func_result')