本文整理汇总了Python中suit.cf.BaseModeLogic.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseModeLogic.__init__方法的具体用法?Python BaseModeLogic.__init__怎么用?Python BaseModeLogic.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类suit.cf.BaseModeLogic
的用法示例。
在下文中一共展示了BaseModeLogic.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
"""Constructor
"""
BaseModeLogic.__init__(self)
# view modes
self._modes = {ois.KC_V: flash_modes.FlashDefaultViewMode(self)}
self.switchMode(ois.KC_V)
self.gui = render_engine._gui
self.x, self.y = render_engine._ogreRenderWindow.getWidth(),render_engine._ogreRenderWindow.getHeight()
self.panel = False
self.isRoot = False
self.playing = False
self.material = None
self.swfFile = None
self.mat_size = [1024, 1024]
self.coord_mult = [1.0, 1.0]
self.coord_offset = [0, 0]
self.rectAttached = False
self.listenersRegistered = False
# creating rectangle (surface)
self.rect_corners = [-1.0, 1.0, 1.0, -1.0]
self.rect = None
self._createRect()
示例2: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
"""Constructor
"""
BaseModeLogic.__init__(self)
#ogre.FrameListener.__init__(self)
self.gui = render_engine._gui
self.x, self.y = render_engine._ogreRenderWindow.getWidth(), render_engine._ogreRenderWindow.getHeight()
self.panel = False
self.wpanel = None
self.isRoot = False
#self.kernel.ogreRoot.addFrameListener(self)
# video player
self.videoPlayer = None
self.videoFile = ""
self.materialName = None
self.playing = False
self.runTime = 0
self.needUpdateMaterial = True
# attach flags
# self.listenerRegistered = False
self.rectAttached = False
# creating rectangle (surface)
self.rect = ogre.Rectangle2D(True)
self.rect.setCorners(-1.0, 1.0, 1.0, -1.0)
self.rect.setRenderQueueGroup(ogre.RENDER_QUEUE_8)
self.rect.setBoundingBox(ogre.AxisAlignedBox(ogre.Vector3(-100000.0, -100000.0, -100000.0), ogre.Vector3(100000.0, 100000.0, 100000.0)))
示例3: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
BaseModeLogic.__init__(self)
# view modes
self._modes = {}
self.mode = None
self.is_root = False # flag for root mode, need to store there for grow speed up
示例4: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
BaseModeLogic.__init__(self)
self._old_color_back = None
import ogre.io.OIS as ois
self.appendMode(ois.KC_V, chem_modes.ChemistryViewMode(self))
self.switchMode(ois.KC_V)
示例5: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
"""Constructor
"""
BaseModeLogic.__init__(self)
# addr of viewed set
self.view_set_addr = None
# view modes
self.appendMode(ois.KC_V, scg_modes.SCgViewMode(self))
self.switchMode(ois.KC_V)
示例6: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
"""constructor
"""
BaseModeLogic.__init__(self)
# view modes
# self.appendMode(ois.KC_X, FlyMode(self))
# self._active_mode = self._modes[ois.KC_X]
self.appendMode(ois.KC_S, SpaceViewMode(self))
self.switchMode(ois.KC_S)
self.is_root = False
示例7: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
'''
Constructor
'''
BaseModeLogic.__init__(self)
# texture object
self.texture = None
self.imageName = None
self.sceneNodeRect = render_engine.SceneManager.createSceneNode()
self.rect = None
self._createRect()
示例8: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self, _viewer = None):
BaseModeLogic.__init__(self)
if not _viewer:
self._viewer = ChemistryViewer()
else:
raise RuntimeError("Chemistry editor doesn't support existing viewers for now")
self.mergeModes(self._viewer)
import ogre.io.OIS as ois
self.appendMode(ois.KC_E, chem_modes.ChemistryEditMode(self))
self.switchMode(ois.KC_E)
示例9: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self, _viewer = None):
BaseModeLogic.__init__(self)
# creating geometry viewer if need
if _viewer is not None:
self._viewer = _viewer
sheet = self._viewer._getSheet()
if sheet is None: raise RuntimeError("There is no sheet")
else:
self._viewer = geom_viewer.GeometryViewer()
# merging viewer modes
self.mergeModes(self._viewer)
self.appendMode(ois.KC_E, geom_modes.GeometryEditMode(self))
self.switchMode(ois.KC_E)
示例10: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self, viewer = None):
"""Constructor
"""
BaseModeLogic.__init__(self)
# setting new logic for a sheet if viewer already exists
if viewer is not None:
self.__viewer = viewer
sheet = self.__viewer._getSheet()
if sheet is None: raise RuntimeError("There is no sheet")
else:
self.__viewer = SCgViewer()
self.mergeModes(self.__viewer)
self.appendMode(ois.KC_E, scg_modes.SCgEditMode(self))
self.switchMode(ois.KC_E)
示例11: __init__
# 需要导入模块: from suit.cf import BaseModeLogic [as 别名]
# 或者: from suit.cf.BaseModeLogic import __init__ [as 别名]
def __init__(self):
BaseModeLogic.__init__(self)
self.sceneNodeRect = render_engine.SceneManager.createSceneNode()
self.rect = None
self._createRect()
self.material = None
self.texture = None
self.origin = [0.5, 0.5]
self.field = None
self.drawer = None
self.mapSurface = None
self.layerData = []
self.zoomRectCorners = [[0, 0], [0, 0]]
self.tex_size = (1024, 1024)
self.appendMode(ois.KC_V, map_modes.MapViewMode(self))
self.switchMode(ois.KC_V)