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


Python QGLWidget.height方法代码示例

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


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

示例1: _get_bg_image_comparison_data

# 需要导入模块: from PyQt4.QtOpenGL import QGLWidget [as 别名]
# 或者: from PyQt4.QtOpenGL.QGLWidget import height [as 别名]
    def _get_bg_image_comparison_data(self):
        """
        """
        data = (
            self.graphicsMode,
                # often too conservative, but not always
                # bug: some graphicsModes use prefs or PM settings to decide
                # how much of the model to display; this ignores those
                # bug: some GMs do extra drawing in .Draw; this ignores prefs etc that affect that
            self._fog_test_enable,
            self.displayMode, # display style
            self.part,
            self.part.assy.all_change_indicators(), # TODO: fix view change indicator for this to work fully
                # note: that's too conservative, since it notices changes in other parts (e.g. from Copy Selection)

            # KLUGE until view change indicator is fixed -- include view data
            # directly; should be ok indefinitely
            + self.quat, # this hit a bug in same_vals (C version), fixed by Eric M 080922 in samevalshelp.c rev 14311
            ## + self.quat.vec, # workaround for that bug (works)
            + self.pov, self.scale, self.zoomFactor,
            
            self.width,
            self.height,
            QGLWidget.width(self), # in case it disagrees with self.width
            QGLWidget.height(self),
            self._resize_counter, # redundant way to force new grab after resize
                # (tho it might be safer to completely disable the feature
                #  for a frame, after resize ### TRYIT)
            self.ortho,
           )
        return data
开发者ID:pmetzger,项目名称:nanoengineer,代码行数:33,代码来源:GLPane_image_methods.py


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