• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python common.debugMsg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getAzimuth

    def getAzimuth(self):
        """
        Get the azimuthal angle (in degrees) of the Camera
        """
        debugMsg("Called Camera.getAzimuth()")

        return self.azimuth
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:camera.py


示例2: __init__

    def __init__(self, scene):
        """
        Initialisation of the Camera object

        @param scene: The Scene object to add the Camera object to
        @type scene: Scene object
        """
        Item.__init__(self)
        debugMsg("Called Camera.__init__()")

        # default x,y,z positions of Camera (specific to vtk)
        self.xPos = 0.0
        self.yPos = 0.0
        self.zPos = 3.0

        # default x,y,z positions of the Camers's focal point (specific to vtk)
        self.xFocalPoint = 0.0
        self.yFocalPoint = 0.0
        self.zFocalPoint = 0.0

        # default elevation and azimuth
        self.elevation = 30  ####### we should try for matlab defaults
        self.azimuth = 30

        # keep a reference to the renderer so we can send stuff to it
        self.renderer = scene.renderer

        # some vtk initialisation commands
        self.renderer.runString("# Camera.__init__()\n")

        # initialise the position of the Camera
        self.setPosition(self.xPos, self.yPos, self.zPos)
        self.setFocalPoint(self.xFocalPoint, self.yFocalPoint, self.zFocalPoint)
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:33,代码来源:camera.py


示例3: save

    def save(self, fname, format):
        """
        Save the scene to a file

        @param fname: The name of the file to save the scene to
        @type fname: string

        @param format: The format in which to save the scene
        @type format: Image object or string
        """
        debugMsg("Called Scene.save()")

        if fname is None or fname == "":
            raise ValueError, "You must specify an output filename"

        if format is None or format == "":
            raise ValueError, "You must specify an image format"

        # now check the type of arguments sent in
        if __debug__:
            assert isinstance(fname, str),  "Incorrect data type; expected str"
            assert isinstance(format, str), "Incorrect data type; expected str"

        # do a check to see if the file exists
        fileCheck(fname)

        # print a warning message if get to here
        overrideWarning("Scene.save")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:30,代码来源:scene.py


示例4: getElevation

 def getElevation(self):
     """
     Gets the elevation angle (in degrees) of the Camera
     """
     debugMsg("Called Camera.getElevation()")
     
     return self.elevation
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:camera.py


示例5: resetInitStack

 def resetInitStack(self):
     """
     Reset/flush the initialisation stack
     """
     debugMsg("Called Renderer.resetInitStack()")
     self._initStack = ""
     return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:renderer.py


示例6: getName

    def getName(self):
        """
        Return the name of the item
        """
        debugMsg("Called Item.getName()")

        return self.name
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:item.py


示例7: render

    def render(self):
        """
        Does PdfImage object specific (pre)rendering stuff
        """
        debugMsg("Called PdfImage.render()")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:image.py


示例8: setLineStyle

    def setLineStyle(self, linestyle):
        """
        Sets the linestyle of the LinePlot

        Linestyles may be either a word in the Gnuplot style, or a symbol 
        shortcut in the Matlab style.  Some of the options do not have a
        Matlab equivalent but do have a Gnuplot equivalent, or vice versa.

        What this method does, is take the linestyles possible as defined by
        PyVisi, and then does some conversion as best it can to get the
        relevant output from (in this case) gnuplot.  

        Possible linestyles are:
            1. lines ('-')
            2. points ('o')
            3. linespoints ('-o')
            4. dots ('.')
            5. dotted (':')
            6. dashes ('--')
            7. dotdashes ('-.')

        @param linestyle: the style to use for the lines
        @type linestyle: string
        """
        debugMsg("Called LinePlot.setLineStyle()")

        self.linestyle = linestyle

        # print a warning if get to here
        overrideWarning("LinePlot.setLineStyle")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:32,代码来源:plot.py


示例9: resetEvalStack

 def resetEvalStack(self):
     """
     Reset/flush the evaluation stack
     """
     debugMsg("Called Renderer.resetEvalStack()")
     self._evalStack = ""
     return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:7,代码来源:renderer.py


示例10: getRenderWindowDimensions

    def getRenderWindowDimensions(self):
        """
        Gets the render window dimensions

        @return: tuple of window width and window height, respectively
        """
        debugMsg("Called Renderer.getRenderWindowDimensions()")
        return (self.renderWindowWidth, self.renderWindowHeight)
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:8,代码来源:renderer.py


示例11: __init__

    def __init__(self):
        """
        Initialisation
        """
        object.__init__(self)
        debugMsg("Called Item.__init__()")

        self.name = None
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:8,代码来源:item.py


示例12: getLineStyle

    def getLineStyle(self):
        """
        Gets the current linestyle of the LinePlot

        @return: the linestyle as a string
        """
        debugMsg("Called LinePlot.getLineStyle()")

        return self.linestyle
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:9,代码来源:plot.py


示例13: getPosition

    def getPosition(self):
        """
        Get the position of Camera within Scene

        Returns the position in a tuple of form (xPos, yPos, zPos)
        """
        debugMsg("Called Camera.getPosition()")

        return (self.xPos, self.yPos, self.zPos)
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:9,代码来源:camera.py


示例14: setName

    def setName(self, name):
        """
        Set the name of the item
        """
        debugMsg("Called Item.setName()")

        self.name = name

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:9,代码来源:item.py


示例15: render

    def render(self):
        """
        Render the object
        """
        debugMsg("Called Item.render()")

        # print a warning if get to here
        overrideWarning("Item.render")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:item.py


示例16: render

    def render(self):
        """
        Perform ScatterPlot3D specific rendering stuff
        """
        debugMsg("Called ScatterPlot3D.render()")

        # print a warning message if get to here
        overrideWarning("ScatterPlot3D.render")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:plot.py


示例17: getSize

    def getSize(self):
        """
        Gets the current size of the scene

        This size is effectively the renderer window size.  Returns a tuple
        of the x and y dimensions respectively, in pixel units(??).
        """
        debugMsg("Called Scene.getSize()")

        return (self.xSize, self.ySize)
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:scene.py


示例18: render

    def render(self):
        """
        Perform Plane object specific (pre)rendering tasks
        """
        debugMsg("Called Plane.mapImageToPlane()")

        # print a warning message if get to here
        overrideWarning("Plane.render")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:plane.py


示例19: getBackgroundColor

    def getBackgroundColor(self):
        """
        Gets the current background color setting of the Scene
        """
        debugMsg("Called Scene.getBackgroundColor()")

        # print a warning message if get to here
        overrideWarning("Scene.getBackgroundColor")

        return
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:scene.py


示例20: getFocalPoint

    def getFocalPoint(self):
        """
        Get the position of the focal point of the Camera

        Returns the position of the focal point in a tuple of form 
        (xPos, yPos, zPos)
        """
        debugMsg("Called Camera.getFocalPoint()")

        return (self.xFocalPoint, self.yFocalPoint, self.zFocalPoint)
开发者ID:paultcochrane,项目名称:pyvisi,代码行数:10,代码来源:camera.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python common.debugMsg函数代码示例发布时间:2022-05-27
下一篇:
Python executer.execute_soap函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap