本文整理汇总了Python中director.timercallback.TimerCallback.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python TimerCallback.__init__方法的具体用法?Python TimerCallback.__init__怎么用?Python TimerCallback.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类director.timercallback.TimerCallback
的用法示例。
在下文中一共展示了TimerCallback.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
def __init__(self, view):
TimerCallback.__init__(self)
self.view = view
self.flyTime = 0.5
self.startTime = 0.0
self.maintainViewDirection = False
self.positionZoom = 0.7
示例2: __init__
# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
def __init__(self, view, channelName, coordinateFrame, sensorName, intensityRange):
TimerCallback.__init__(self)
self.view = view
self.channelName = channelName
self.reader = None
self.displayedRevolution = -1
self.lastScanLine = 0
self.numberOfScanLines = 1000
self.nextScanLineId = 0
self.scanLines = []
self.pointSize = 1
self.alpha = 0.5
self.visible = True
self.colorBy = 'Solid Color'
self.initScanLines()
self.sensorName = sensorName
self.coordinateFrame = coordinateFrame
self.revPolyData = vtk.vtkPolyData()
self.polyDataObj = vis.PolyDataItem('Lidar Sweep', self.revPolyData, view)
self.polyDataObj.actor.SetPickable(1)
self.polyDataObj.setRangeMap('intensity', intensityRange)
self.setPointSize(self.pointSize)
self.setAlpha(self.alpha)
self.targetFps = 60
self.colorizeCallback = None
示例3: __init__
# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
def __init__(self, view, callbackFunc=None):
TimerCallback.__init__(self)
self.reader = None
self.folder = None
self.view = view
self.displayedMapIds = {}
self.polyDataObjects = {}
self.targetFps = 10
self.callbackFunc = callbackFunc
self.colorizeCallback = None
self.useMeshes = True
示例4: __init__
# 需要导入模块: from director.timercallback import TimerCallback [as 别名]
# 或者: from director.timercallback.TimerCallback import __init__ [as 别名]
def __init__(self, jointController):
TimerCallback.__init__(self)
self.controller = jointController
self.testTime = 2.0