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


Python common.debugMsg函数代码示例

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


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


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