本文整理汇总了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')