本文整理汇总了Python中sfepy.postprocess.utils.mlab.roll函数的典型用法代码示例。如果您正苦于以下问题:Python roll函数的具体用法?Python roll怎么用?Python roll使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了roll函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _button_make_animation_fired
def _button_make_animation_fired(self):
view = mlab.view()
roll = mlab.roll()
## if self.anim_process and self.anim_process.is_alive():
## output('terminating previous animation process...')
## self.anim_process.terminate()
## output('...done')
## output('starting animation process...')
## self.anim_process = Process(target=make_animation,
## args=(self.viewer.filename,
## view[:2],
## roll,
## Struct(**self.viewer.options)))
## self.anim_process.daemon = True
## self.anim_process.start()
## output('...done')
make_animation(self.viewer.filename,
view,
roll,
'avi',
Struct(**self.viewer.options),
self.viewer)
示例2: _button_view_fired
def _button_view_fired(self):
self.scene.camera.print_traits()
view = mlab.view()
roll = mlab.roll()
print 'view:', view
print 'roll:', roll
print 'as args: --view=%.2e,%.2e,%.2e,%.2e,%.2e,%.2e --roll=%.2e' \
% (view[:3] + tuple(view[3]) + (roll,))
示例3: _button_make_snapshots_fired
def _button_make_snapshots_fired(self):
view = mlab.view()
roll = mlab.roll()
make_animation(self.viewer.filename,
view,
roll,
'png',
Struct(**self.viewer.options),
self.viewer)
示例4: _button_make_snapshots_times_fired
def _button_make_snapshots_times_fired(self):
view = mlab.view()
roll = mlab.roll()
times = nm.arange(self.set_step.seq_t0,
self.set_step.seq_t1 + 0.01 * self.set_step.seq_dt,
self.set_step.seq_dt, dtype=nm.float64)
make_animation(self.viewer.filename,
view, roll, 'png',
Struct(**self.viewer.options), times=times,
reuse_viewer=self.viewer)
示例5: _button_make_snapshots_steps_fired
def _button_make_snapshots_steps_fired(self):
view = mlab.view()
roll = mlab.roll()
steps = nm.arange(self.set_step.seq_start,
self.set_step.seq_stop,
self.set_step.seq_step, dtype=nm.int32)
make_animation(self.viewer.filename,
view, roll, 'png',
Struct(**self.viewer.options), steps=steps,
reuse_viewer=self.viewer)
示例6: reset_view
def reset_view(self):
mlab.view(*self.view)
mlab.roll(self.roll)
self.scene.scene.camera.zoom(1.0)
示例7: _button_view_fired
def _button_view_fired(self):
self.scene.camera.print_traits()
print 'view:', mlab.view()
print 'roll:', mlab.roll()