本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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