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


Python selectionOverlay.generateSelectionGraphicsItems函数代码示例

本文整理汇总了Python中selectionOverlay.generateSelectionGraphicsItems函数的典型用法代码示例。如果您正苦于以下问题:Python generateSelectionGraphicsItems函数的具体用法?Python generateSelectionGraphicsItems怎么用?Python generateSelectionGraphicsItems使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Angular Dimension', dialogIconPath=os.path.join( iconPath , 'angularDimension.svg' ), endFunction=self.Activated )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doLines=True,
         maskPen= line_maskPen, 
         maskHoverPen= line_maskHoverPen, 
         maskBrush = line_maskBrush
         )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, 
         maskPen= point_maskPen, 
         maskHoverPen= point_maskHoverPen, 
         maskBrush = point_maskBrush, #clear
         clearPreviousSelectionItems = False,
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:ulikoehler,项目名称:FreeCAD_drawing_dimensioning,代码行数:25,代码来源:angularDimension.py

示例2: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Center Lines', dialogIconPath=':/dd/icons/centerLine.svg', endFunction=self.Activated )
     d.SVGFun = centerLineSVG
     d.ProxyClass = Proxy_CenterLines
     d.proxy_svgFun = centerLineSVG
     maskBrush  =   QtGui.QBrush( QtGui.QColor(0,160,0,100) )
     maskPen =      QtGui.QPen( QtGui.QColor(0,160,0,100) )
     maskPen.setWidth(0.0)
     maskHoverPen = QtGui.QPen( QtGui.QColor(0,255,0,255) )
     maskHoverPen.setWidth(0.0)
     selectionOverlay.generateSelectionGraphicsItems( 
         dimensionableObjects( V.page ), 
         selectFun,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, doMidPoints=True,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush
         )
     selectionOverlay.generateSelectionGraphicsItems( 
         dimensionableObjects( V.page ),
         clearPreviousSelectionItems = False,
         doLines=True, 
         onClickFun=selectFun,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         maskPen= line_maskPen, 
         maskHoverPen= line_maskHoverPen, 
         maskBrush = line_maskBrush
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:BKSpurgeon,项目名称:FreeCAD_drawing_dimensioning,代码行数:34,代码来源:centerLines.py

示例3: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     dimensioning.activate(V, ['strokeWidth','arrowL1','arrowL2','arrowW','gap_datum_points', 'dimension_line_overshoot'], ['lineColor'], ['textRenderer'] )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doLines=True,
         maskPen= line_maskPen, 
         maskHoverPen= line_maskHoverPen, 
         maskBrush = line_maskBrush
         )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, 
         maskPen= point_maskPen, 
         maskHoverPen= point_maskHoverPen, 
         maskBrush = point_maskBrush, #clear
         clearPreviousSelectionItems = False,
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:SebXcxl,项目名称:FreeCAD_drawing_dimensioning,代码行数:25,代码来源:angularDimension.py

示例4: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Center Lines', dialogIconPath=os.path.join( iconPath , 'centerLine.svg' ), endFunction=self.Activated )
     d.SVGFun = centerLineSVG
     maskBrush  =   QtGui.QBrush( QtGui.QColor(0,160,0,100) )
     maskPen =      QtGui.QPen( QtGui.QColor(0,160,0,100) )
     maskPen.setWidth(0.0)
     maskHoverPen = QtGui.QPen( QtGui.QColor(0,255,0,255) )
     maskHoverPen.setWidth(0.0)
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim') and not obj.Name.startswith('center')], 
         selectFun,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, doMidPoints=True,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush
         )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim') and not obj.Name.startswith('center')],
         clearPreviousSelectionItems = False,
         doLines=True, 
         onClickFun=selectFun,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         maskPen= line_maskPen, 
         maskHoverPen= line_maskHoverPen, 
         maskBrush = line_maskBrush
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:ulikoehler,项目名称:FreeCAD_drawing_dimensioning,代码行数:32,代码来源:centerLines.py

示例5: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Angular Dimension', dialogIconPath=':/dd/icons/angularDimension.svg', endFunction=self.Activated )
     selectionOverlay.generateSelectionGraphicsItems( 
         dimensionableObjects( V.page ), 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doLines=True,
         maskPen= line_maskPen, 
         maskHoverPen= line_maskHoverPen, 
         maskBrush = line_maskBrush
         )
     selectionOverlay.generateSelectionGraphicsItems( 
         dimensionableObjects( V.page ),
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, 
         maskPen= point_maskPen, 
         maskHoverPen= point_maskHoverPen, 
         maskBrush = point_maskBrush, #clear
         clearPreviousSelectionItems = False,
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems(V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:badele,项目名称:dotfiles,代码行数:25,代码来源:angularDimension.py

示例6: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     dimensioning.activate(V)
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doLines=True,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = QtGui.QBrush() #clear
         )
开发者ID:cblt2l,项目名称:FreeCAD_drawing_dimensioning,代码行数:13,代码来源:angularDimension.py

示例7: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, 'Add Radial Dimension', dialogIconPath=':/dd/icons/radiusDimension.svg', endFunction=self.Activated)
     selectionOverlay.generateSelectionGraphicsItems(
         dimensionableObjects( V.page ),
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene,
         doCircles=True, doFittedCircles=True,
         maskPen=maskPen,
         maskHoverPen=maskHoverPen,
         maskBrush = QtGui.QBrush() #clear
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:BKSpurgeon,项目名称:FreeCAD_drawing_dimensioning,代码行数:14,代码来源:radiusDimension.py

示例8: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, 'Add Radial Dimension', dialogIconPath=os.path.join( iconPath , 'radiusDimension.svg' ), endFunction=self.Activated)
     selectionOverlay.generateSelectionGraphicsItems(
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')],
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene,
         doCircles=True, doFittedCircles=True,
         maskPen=maskPen,
         maskHoverPen=maskHoverPen,
         maskBrush = QtGui.QBrush() #clear
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:ulikoehler,项目名称:FreeCAD_drawing_dimensioning,代码行数:14,代码来源:radiusDimension.py

示例9: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     dimensioning.activate(V)
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectDimensioningPoint ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, 
         pointWid=2.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush
         )
开发者ID:cblt2l,项目名称:FreeCAD_drawing_dimensioning,代码行数:14,代码来源:linearDimension.py

示例10: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Delete Dimension', dialogIconPath=':/dd/icons/deleteDimension.svg' , endFunction=self.Activated, grid=False)
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if hasattr(obj,'Proxy') and isinstance(obj.Proxy, Proxy_DimensionObject_prototype)], 
         doSelectViewObjectPoints = True, 
         onClickFun=deleteDimension,
         sceneToAddTo = V.graphicsScene, 
         transform = V.transform,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems(V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:badele,项目名称:dotfiles,代码行数:15,代码来源:deleteDimension.py

示例11: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Welding Note', dialogIconPath=self.generateIcon(), endFunction=self.Activated )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim') and not obj.Name.startswith('center')], 
         self.selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, doMidPoints=True,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush #clear
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:gokmonk,项目名称:FreeCAD_drawing_dimensioning,代码行数:15,代码来源:weldingSymbols.py

示例12: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     dimensioning.activate(V, ['strokeWidth','arrowL1','arrowL2','arrowW'], ['lineColor'], ['textRenderer'] )
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim') and not obj.Name.startswith('center')], 
         self.selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, doMidPoints=True,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush #clear
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:SebXcxl,项目名称:FreeCAD_drawing_dimensioning,代码行数:15,代码来源:weldingSymbols.py

示例13: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Note Circle', dialogIconPath=':/dd/icons/noteCircle.svg', endFunction=self.Activated )
     from grabPointAdd import  Proxy_grabPoint
     selectionOverlay.generateSelectionGraphicsItems(
         dimensionableObjects( V.page ) + [obj for obj in V.page.Group if hasattr(obj,'Proxy') and isinstance( obj.Proxy, Proxy_grabPoint) ],
         selectFun,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene,
         doPoints=True, doMidPoints=True, doSelectViewObjectPoints = True, 
         pointWid=1.0,
         maskPen=maskPen,
         maskHoverPen=maskHoverPen,
         maskBrush = maskBrush
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems(V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:badele,项目名称:dotfiles,代码行数:16,代码来源:noteCircle.py

示例14: Activated

 def Activated(self):
     crudeDebuggerPrint('''angularDimension.py:49  	        V = getDrawingPageGUIVars() ''')
     V = getDrawingPageGUIVars()
     crudeDebuggerPrint('''angularDimension.py:50  	        dimensioning.activate(V) ''')
     dimensioning.activate(V)
     crudeDebuggerPrint('''angularDimension.py:51  	        selectionOverlay.generateSelectionGraphicsItems( ''')
     selectionOverlay.generateSelectionGraphicsItems( 
         [obj for obj in V.page.Group  if not obj.Name.startswith('dim')], 
         selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doLines=True,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = QtGui.QBrush() #clear
         )
开发者ID:hamish2014,项目名称:FreeCAD_drawing_dimensioning,代码行数:16,代码来源:angularDimension_crudeDebugging.py

示例15: Activated

 def Activated(self):
     V = getDrawingPageGUIVars()
     d.activate(V, dialogTitle='Add Welding Note', dialogIconPath=self.generateIcon(), endFunction=self.Activated )
     d.proxy_svgFun = Command_svg_fun_wrapper(self)
     from grabPointAdd import  Proxy_grabPoint
     selectionOverlay.generateSelectionGraphicsItems( 
         dimensionableObjects( V.page ) + [obj for obj in V.page.Group if hasattr(obj,'Proxy') and isinstance( obj.Proxy, Proxy_grabPoint) ],
         self.selectFun ,
         transform = V.transform,
         sceneToAddTo = V.graphicsScene, 
         doPoints=True, doMidPoints=True,
         pointWid=1.0,
         maskPen=maskPen, 
         maskHoverPen=maskHoverPen, 
         maskBrush = maskBrush #clear
         )
     selectionOverlay.addProxyRectToRescaleGraphicsSelectionItems( V.graphicsScene, V.graphicsView, V.width, V.height)
开发者ID:BKSpurgeon,项目名称:FreeCAD_drawing_dimensioning,代码行数:17,代码来源:weldingSymbols.py


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