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