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


Python BaseEditMode.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from suit.cf import BaseEditMode [as 别名]
# 或者: from suit.cf.BaseEditMode import __init__ [as 别名]
 def __init__(self, _logic):
     BaseEditMode.__init__(self, _logic, "Geometry edit")
     
     # last scroll position
     self.last_scroll_pos = None
     
     # grid align mode
     self.grid_align = True
     self.mouse_pos = (0, 0)
     self.objectInfoPanel = geom_controls.ObjectInfoPanel()
     
     # objects we works with
     self.highlighted_obj = None
     # current edit state
     self.state = GeometryEditMode.ES_None
     # current object we worked with
     self.active_object = None
     # candidate object to be processed with mouse
     self.candidate_object = None
     # line creation mode
     self.__pointSpirit = GeometryPoint()
     self.__pointSpirit.setState(Object.OS_Normal)
     self.__pointSpirit.setScale(ogre.Vector3(0.5, 0.5, 0.5))
     self.__lineSpirit = GeometryLineSection()
     self.__lineSpirit.setState(Object.OS_Normal)        
     self.__lineSpirit.setEnd(self.__pointSpirit) 
     self.__lineBegin = None
开发者ID:aifabregaz,项目名称:pyUI,代码行数:29,代码来源:geom_modes.py

示例2: __init__

# 需要导入模块: from suit.cf import BaseEditMode [as 别名]
# 或者: from suit.cf.BaseEditMode import __init__ [as 别名]
    def __init__(self, _logic):
        BaseEditMode.__init__(self, _logic, "Edit mode")
        
        # mouse objects for line creation mode
        self.line_mode_beg = None
        self.line_mode_obj = scg_alphabet.createSCgNode('mnode')
        self.line_mode_obj.setScale(ogre.Vector3(0.1, 0.1, 0.1))
        self.line_mode_obj.setPosition(ogre.Vector3(0, 0, 0))
        self.line_mode_line = scg_alphabet.createSCgPair('mpair')
        self.line_mode_line.setEnd(self.line_mode_obj)
        self.line_mode_line.setState(objects.Object.OS_Normal)
        # highlighted object
        self.highlighted_obj = None
        
        # widgets
        self.type_combo = None
        self.content_combo = None
        
        # object we worked on in current state
        self.object_active = None
        # current editor state
        self.state = SCgEditMode.ES_None
        # current mouse position
        self.mouse_pos = (0, 0)
        
        # visual menu
#        self.vis_menu = None
#        self._createVisualMenu()
        
        # 3d navigation mode
        self.rotX = 0.0 
        self.rotY = 0.0
        self.move = ogre.Vector3(0.0, 0.0, 0.0)
        self.moveSpeed = 5.0
        self.moveScale = 5.0
        
        self.animationState = None
        
        # tool bar
#        self.toolbar = ToolBar()
#        self.toolbar.setVisible(False)
#        self.toolbar.setEnabled(True)
#        for idx in xrange(self.EM_Count):
#            button = self.toolbar.appendButton("", "scg_toolbar_icons.png", idx, (32, 32), (0, 0, 256, 32))
#            button.setCheckable(True)
#            button.setUserData(idx)
#            button.eventPush = self._onToolBarButtonPush
#            
#        self.toolbar.setButtonSize(38)

        #contour points
        self.contour_points = []
        self.contour_lines = []
开发者ID:Prokopenko,项目名称:pyUI,代码行数:55,代码来源:scg_modes.py

示例3: __init__

# 需要导入模块: from suit.cf import BaseEditMode [as 别名]
# 或者: from suit.cf.BaseEditMode import __init__ [as 别名]
 def __init__(self, _logic):
     BaseEditMode.__init__(self, _logic)
     
     self.mouse_pos = (0, 0)
     # objects we works with
     self.highlighted_obj = None
     
     # 3d navigation mode
     self.rotX = 0.0 
     self.rotY = 0.0
     self.move = ogre.Vector3(0.0, 0.0, 0.0)
     self.moveSpeed = 15.0
     self.moveScale = 1.0
     self.navigation = False
开发者ID:Alexandra-H,项目名称:pyUI,代码行数:16,代码来源:chem_modes.py

示例4: __init__

# 需要导入模块: from suit.cf import BaseEditMode [as 别名]
# 或者: from suit.cf.BaseEditMode import __init__ [as 别名]
 def __init__(self, _logic):
     BaseEditMode.__init__(self, _logic, "Graph edit")
     
     # last scroll position
     self.last_scroll_pos = None
     
     # grid align mode
     self.mouse_pos = (0, 0)
     
     # objects we works with
     self.highlighted_obj = None
     # current edit state
     self.state = GraphEditMode.ES_None
     # current object we worked with
     self.active_object = None
     # line creation mode
     self.__pointSpirit = GraphVertex()
     self.__pointSpirit.setState(Object.OS_Normal)
     self.__pointSpirit.setScale(ogre.Vector3(0.5, 0.5, 0.5))
     self.__lineSpirit = GraphLink()
     self.__lineSpirit.setState(Object.OS_Normal)        
     self.__lineSpirit.setEnd(self.__pointSpirit) 
     self.__lineBegin = None
开发者ID:Alexandra-H,项目名称:pyUI,代码行数:25,代码来源:graph_modes.py

示例5: __init__

# 需要导入模块: from suit.cf import BaseEditMode [as 别名]
# 或者: from suit.cf.BaseEditMode import __init__ [as 别名]
    def __init__(self, _logic):
        BaseEditMode.__init__(self, _logic, "Edit mode")
        
        # mouse objects for line creation mode
        self.line_mode_beg = None
        self.line_mode_obj = scg_alphabet.createSCgNode('mnode')
        self.line_mode_obj.setScale(ogre.Vector3(0.1, 0.1, 0.1))
        self.line_mode_obj.setPosition(ogre.Vector3(0, 0, 0))
        self.line_mode_line = scg_alphabet.createSCgPair('mpair')
        self.line_mode_line.setEnd(self.line_mode_obj)
        self.line_mode_line.setState(objects.Object.OS_Normal)
        # highlighted object
        self.highlighted_obj = None
        
        # widgets
        self.type_combo = None
        self.content_combo = None
        
        # object we worked on in current state
        self.object_active = None
        # current editor state
        self.state = SCgEditMode.ES_None
        # current mouse position
        self.mouse_pos = (0, 0)
        
        # visual menu
#        self.vis_menu = None
#        self._createVisualMenu()
        
        # 3d navigation mode
        self.rotX = 0.0 
        self.rotY = 0.0
        self.move = ogre.Vector3(0.0, 0.0, 0.0)
        self.moveSpeed = 5.0
        self.moveScale = 5.0
        
        self.animationState = None
开发者ID:Okne,项目名称:ymapostis,代码行数:39,代码来源:scg_modes.py


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