当前位置: 首页>>代码示例>>Python>>正文


Python NeuroObject._defaultVisualizationParams方法代码示例

本文整理汇总了Python中neuro_object.NeuroObject._defaultVisualizationParams方法的典型用法代码示例。如果您正苦于以下问题:Python NeuroObject._defaultVisualizationParams方法的具体用法?Python NeuroObject._defaultVisualizationParams怎么用?Python NeuroObject._defaultVisualizationParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在neuro_object.NeuroObject的用法示例。


在下文中一共展示了NeuroObject._defaultVisualizationParams方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['shape'] = 'Line' if hasattr(osgUtil, 'PolytopeIntersector') else 'Cylinder'
     params['color'] = (0.55, 0.35, 0.25)
     params['pathIsFixed'] = None
     params['flowTo'] = True
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:9,代码来源:innervation.py

示例2: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['shape'] = 'Cone'
     params['size'] = (.02, .02, .02) # so the label is in front (hacky...)
     params['color'] = (0.5, 0.5, 0.5)
     params['weight'] = 5.0
     params['pathIsFixed'] = True
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:10,代码来源:stimulus.py

示例3: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     # NOTE: Fixed now that PolytopeIntersector works on windows.
     # Used to default to cylinder on windows
     params['shape'] = 'Line' if hasattr(osgUtil, 'PolytopeIntersector') else 'Cylinder' # and not os.name.startswith('nt')) 
     params['color'] = (0.0, 0.0, 0.0)
     params['pathIsFixed'] = None
     params['weight'] = 1.0
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:11,代码来源:arborization.py

示例4: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['shape'] = 'Capsule'
     params['size'] = (.05, .1, .02)
     params['color'] = (0.75, 0.5, 0.5)
     try:
         params['texture'] = neuroptikon.library.texture('Stripes')
     except:
         pass
     params['textureScale'] = 20.0
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:13,代码来源:muscle.py

示例5: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     # TODO fix this when PolytopIntersector works on windows.
     # Defaults to cylinder on windows, because polytope intersector
     # builds but doesn't work
     params['shape'] = 'Line' if (hasattr(osgUtil, 'PolytopeIntersector') and not
      os.name.startswith('nt')) else 'Cylinder'
     params['color'] = (0.0, 0.0, 0.0)
     params['pathIsFixed'] = None
     params['weight'] = 1.0
     return params
开发者ID:mthunemann,项目名称:Neuroptikon,代码行数:13,代码来源:arborization.py

示例6: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['shape'] = 'Line' if hasattr(osgUtil, 'PolytopeIntersector') else 'Cylinder'
     params['color'] = (1.0, 0.5, 1.0)
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:7,代码来源:synapse.py

示例7: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['size'] = (0.1, 0.1, 0.1)
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:6,代码来源:region.py

示例8: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params["shape"] = "Line" if hasattr(osgUtil, "PolytopeIntersector") else "Cylinder"
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:6,代码来源:neurite.py

示例9: _defaultVisualizationParams

# 需要导入模块: from neuro_object import NeuroObject [as 别名]
# 或者: from neuro_object.NeuroObject import _defaultVisualizationParams [as 别名]
 def _defaultVisualizationParams(cls):
     params = NeuroObject._defaultVisualizationParams()
     params['shape'] = 'Ball'
     params['size'] = (.01, .01, .01)
     params['sizeIsAbsolute'] = True
     return params
开发者ID:JaneliaSciComp,项目名称:Neuroptikon,代码行数:8,代码来源:neuron.py


注:本文中的neuro_object.NeuroObject._defaultVisualizationParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。