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


Python InfoPrintCapable.doPrint方法代码示例

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


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

示例1: Copyright

# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
# Copyright (c) 2006 Visenso GmbH


from VisItem import VisItem, VisItemParams
from PartModuleVis import PartModuleVis, PartModuleVisParams
from PartColoredVis import PartColoredVis, PartColoredVisParams
from PartInteractorVis import PartInteractorVis, PartInteractorVisParams

from coPyModules import Probe3D 

from Utils import ParamsDiff, CopyParams
from KeydObject import RUN_ALL, VIS_POINTPROBING

from printing import InfoPrintCapable
_infoer = InfoPrintCapable()
_infoer.doPrint = False # True

class PartPointProbingVis(PartModuleVis, PartColoredVis, PartInteractorVis):
    """ VisItem to compute probing point for 3d objects """
    def __init__(self):
        PartModuleVis.__init__(self,Probe3D, VIS_POINTPROBING, self.__class__.__name__,['meshIn'],['gOcttreesIn'],[],[],['gdataIn'],[],[], 1, True, True)
        PartColoredVis.__init__(self)
        PartInteractorVis.__init__(self)
        self.params = PartPointProbingVisParams()
        self.__initBase()

    def __initBase(self):
        """ __initBase is called from the constructor and after the class was unpickled """
        self.__startpoint1 = None
        self.__firstTime = True
开发者ID:nixz,项目名称:covise,代码行数:32,代码来源:PartPointProbingVis.py

示例2: import

# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
from CoviseMsgLoop import CoviseMsgLoop, CoviseMsgLoopAction
from paramAction import NotifyAction
from printing import InfoPrintCapable
from coviseCase import (
    CoviseCaseFileItem,
    CoviseCaseFile,
    GEOMETRY_2D,
    GEOMETRY_3D,
    SCALARVARIABLE,
    VECTOR3DVARIABLE)
from ErrorLogAction import ErrorLogAction
from CoviseMsgLoop import CoviseMsgLoop, CoviseMsgLoopAction


infoer = InfoPrintCapable()
infoer.doPrint = False # True  Toggle talkativeness of this script.


class PartDescriptionAnalyzer(object):

    def __init__(self, candidateString):
        # Regexp fitting for a 2d-part-description that comes with a covise-message.
        self.regexp2dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(2D|d).*'
        self.regexp3dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(3D|d).*'
        self.regexp2dOr3dPartDescription = r'(.*)\|(.*)\|(.*)\|(.*)\|.*(2|3D|d).*'
        self.candidateString = candidateString

    def is2dPartDescription(self):

        """Return if self.candidateString is a part-2d-description.
开发者ID:nixz,项目名称:covise,代码行数:32,代码来源:Ensight2CoviseBegin.py

示例3: InfoPrintCapable

# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
import os
import sys
#from itertools import ifilter

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import QObject, pyqtSignal

from printing import InfoPrintCapable

from auxils import OneToOne
from qtauxils import SelectedItemsIterator, itemFromProxyIndex
# import StaticImages

_infoer = InfoPrintCapable()
_infoer.doPrint = False # True

# Decorator for printing function-calls.
_logger = InfoPrintCapable()
_logger.doPrint = False # True
_logger.startString = '(log)'
_logger.module = __name__
def _log(func):
    def logged_func(*args, **kwargs):
        _logger.function = repr(func)
        _logger.write('')
        return func(*args, **kwargs)
    return logged_func

from vtrans import coTranslate 
开发者ID:nixz,项目名称:covise,代码行数:31,代码来源:KeyedTreeView.py

示例4: Copyright

# 需要导入模块: from printing import InfoPrintCapable [as 别名]
# 或者: from printing.InfoPrintCapable import doPrint [as 别名]
# Part of the vr-prepare program for dc

# Copyright (c) 2006 Visenso GmbH


from KeydObject import globalKeyHandler, RUN_ALL, globalColorMgrKey, coKeydObject, TYPE_COLOR_TABLE
from Utils import mergeGivenParams

from printing import InfoPrintCapable
_infoer = InfoPrintCapable()
_infoer.doPrint = False

import covise

class coColorTable(coKeydObject):
    def __init__(self):
        coKeydObject.__init__(self, TYPE_COLOR_TABLE, 'ColorTable')
        self.params = coColorTableParams()
        self.__initColorMapsFromConfig()
        
    def __initColorMapsFromConfig(self):
        # the Colormaps section has to be like
        #  Colormaps
        #  {
        #     <name of colormap>  <anyText>
        #  }
        #
        if not hasattr( covise, "getCoConfigSubEntries" ):
            self.params.colorMapList = coColorTableParams.defaultColorMapList ######["Standard", "Star", "ITMS", "Rainbow"]
            return
开发者ID:nixz,项目名称:covise,代码行数:32,代码来源:coColorTable.py


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