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