# encoding: utf-8
# module vtkmodules.vtkRenderingMatplotlib
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkRenderingMatplotlib.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkRenderingFreeType as __vtkmodules_vtkRenderingFreeType


# no functions
# classes

class vtkMatplotlibMathTextUtilities(__vtkmodules_vtkRenderingFreeType.vtkMathTextUtilities):
    """
    vtkMatplotlibMathTextUtilities - Access to MatPlotLib MathText
    rendering
    
    Superclass: vtkMathTextUtilities
    
    vtkMatplotlibMathTextUtilities provides access to the MatPlotLib
    MathText implementation.
    
    This class is aware of a number of environment variables that can be
    used to configure and debug python initialization (all are optional):
    - VTK_MATPLOTLIB_DEBUG: Enable verbose debugging output during
      initialization of the python environment.
    
    This class handles rendering multiline and multicolumn strings into
    image data. Use '\n' to define a line, and '|' to define a column.
    
    This class does not support rendering multiline and multicolumn
    strings into a vtkPath.
    
    Example :
    
    str =    "$\\sum_{i=0}^\\infty x_i$ | 2 | 3 | 4 \n"
           +  1 | 2 | 3";
    
    The vertical space between two lines can be set with
    vtkTextProperty::SetLineSpacing and vtkTextProperty::SetLineOffset
    
    The horizontal space between two cells can be set with
    vtkTextProperty::SetCellOffset
    
    Line separators between grid cells can also be drawn.
    """
    def GetBoundingBox(self, tprop, p_str, dpi, bbox, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        GetBoundingBox(self, tprop:vtkTextProperty, str:str, dpi:int,
            bbox:[int, int, int, int]) -> bool
        C++: bool GetBoundingBox(vtkTextProperty *tprop, const char *str,
            int dpi, int bbox[4]) override;
        
        Given a text property and a string, get the bounding box {xmin,
        xmax, ymin, ymax} of the rendered string in pixels. The origin of
        the bounding box is the anchor point described by the horizontal
        and vertical justification text property variables. Returns true
        on success, false otherwise.
        """
        pass

    def GetNumberOfGenerationsFromBase(self, type): # real signature unknown; restored from __doc__
        """
        GetNumberOfGenerationsFromBase(self, type:str) -> int
        C++: vtkIdType GetNumberOfGenerationsFromBase(const char *type)
            override;
        
        Given the name of a base class of this class type, return the
        distance of inheritance between this class type and the named
        class (how many generations of inheritance are there between this
        class and the named class). If the named class is not in this
        class's inheritance tree, return a negative value. Valid
        responses will always be nonnegative. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def GetNumberOfGenerationsFromBaseType(self, type): # real signature unknown; restored from __doc__
        """
        GetNumberOfGenerationsFromBaseType(type:str) -> int
        C++: static vtkIdType GetNumberOfGenerationsFromBaseType(
            const char *type)
        
        Given a the name of a base class of this class type, return the
        distance of inheritance between this class type and the named
        class (how many generations of inheritance are there between this
        class and the named class). If the named class is not in this
        class's inheritance tree, return a negative value. Valid
        responses will always be nonnegative. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def GetScaleToPowerOfTwo(self): # real signature unknown; restored from __doc__
        """
        GetScaleToPowerOfTwo(self) -> bool
        C++: bool GetScaleToPowerOfTwo() override;
        
        Set to true if the graphics implementation requires texture image
        dimensions to be a power of two. Default is true, but this member
        will be set appropriately when GL is inited.
        """
        return False

    def IsA(self, type): # real signature unknown; restored from __doc__
        """
        IsA(self, type:str) -> int
        C++: vtkTypeBool IsA(const char *type) override;
        
        Return 1 if this class is the same type of (or a subclass of) the
        named class. Returns 0 otherwise. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def IsAvailable(self): # real signature unknown; restored from __doc__
        """
        IsAvailable(self) -> bool
        C++: bool IsAvailable() override;
        
        Returns true if mathtext rendering is available.
        """
        return False

    def IsTypeOf(self, type): # real signature unknown; restored from __doc__
        """
        IsTypeOf(type:str) -> int
        C++: static vtkTypeBool IsTypeOf(const char *type)
        
        Return 1 if this class type is the same type of (or a subclass
        of) the named class. Returns 0 otherwise. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def NewInstance(self): # real signature unknown; restored from __doc__
        """
        NewInstance(self) -> vtkMatplotlibMathTextUtilities
        C++: vtkMatplotlibMathTextUtilities *NewInstance()
        """
        return vtkMatplotlibMathTextUtilities

    def RenderString(self, p_str, image, tprop, dpi, textDims, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        RenderString(self, str:str, image:vtkImageData,
            tprop:vtkTextProperty, dpi:int, textDims:[int, int]=...)
            -> bool
        C++: bool RenderString(const char *str, vtkImageData *image,
            vtkTextProperty *tprop, int dpi, int textDims[2]=nullptr)
            override;
        
        Render the given string str into the vtkImageData image with a
        resolution of dpi. The image is resized automatically. textDims
        will be overwritten by the pixel width and height of the rendered
        string. This is useful when ScaleToPowerOfTwo is true, and the
        image dimensions may not match the dimensions of the rendered
        text. The origin of the image's extents is aligned with the
        anchor point described by the text property's vertical and
        horizontal justification options. This function supports
        multiline and multicolumn strings.
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkMatplotlibMathTextUtilities
        C++: static vtkMatplotlibMathTextUtilities *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkMatplotlibMathTextUtilities

    def SetScaleToPowerOfTwo(self, val): # real signature unknown; restored from __doc__
        """
        SetScaleToPowerOfTwo(self, val:bool) -> None
        C++: void SetScaleToPowerOfTwo(bool val) override;
        
        Set to true if the graphics implementation requires texture image
        dimensions to be a power of two. Default is true, but this member
        will be set appropriately when GL is inited.
        """
        pass

    def StringToPath(self, p_str, path, tprop, dpi): # real signature unknown; restored from __doc__
        """
        StringToPath(self, str:str, path:vtkPath, tprop:vtkTextProperty,
            dpi:int) -> bool
        C++: bool StringToPath(const char *str, vtkPath *path,
            vtkTextProperty *tprop, int dpi) override;
        
        Parse the MathText expression in str and fill path with a contour
        of the glyphs. The origin of the path coordinates is aligned with
        the anchor point described by the text property's horizontal and
        vertical justification options. This function does not support
        multiline and multicolumn strings.
        """
        return False

    def __delattr__(self, *args, **kwargs): # real signature unknown
        """ Implement delattr(self, name). """
        pass

    def __getattribute__(self, *args, **kwargs): # real signature unknown
        """ Return getattr(self, name). """
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    @staticmethod # known case of __new__
    def __new__(*args, **kwargs): # real signature unknown
        """ Create and return a new object.  See help(type) for accurate signature. """
        pass

    def __repr__(self, *args, **kwargs): # real signature unknown
        """ Return repr(self). """
        pass

    def __setattr__(self, *args, **kwargs): # real signature unknown
        """ Implement setattr(self, name, value). """
        pass

    def __str__(self, *args, **kwargs): # real signature unknown
        """ Return str(self). """
        pass

    __this__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """Pointer to the C++ object."""


    __dict__ = None # (!) real value is 'mappingproxy({\'__vtkname__\': \'vtkMatplotlibMathTextUtilities\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'IsAvailable\': <method \'IsAvailable\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'GetBoundingBox\': <method \'GetBoundingBox\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'RenderString\': <method \'RenderString\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'StringToPath\': <method \'StringToPath\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'SetScaleToPowerOfTwo\': <method \'SetScaleToPowerOfTwo\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'GetScaleToPowerOfTwo\': <method \'GetScaleToPowerOfTwo\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF86EFC71B0>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkRenderingMatplotlib.vtkMatplotlibMathTextUtilities\' objects>, \'__doc__\': \'vtkMatplotlibMathTextUtilities - Access to MatPlotLib MathText\\nrendering\\n\\nSuperclass: vtkMathTextUtilities\\n\\nvtkMatplotlibMathTextUtilities provides access to the MatPlotLib\\nMathText implementation.\\n\\nThis class is aware of a number of environment variables that can be\\nused to configure and debug python initialization (all are optional):\\n- VTK_MATPLOTLIB_DEBUG: Enable verbose debugging output during\\n  initialization of the python environment.\\n\\nThis class handles rendering multiline and multicolumn strings into\\nimage data. Use \\\'\\\\n\\\' to define a line, and \\\'|\\\' to define a column.\\n\\nThis class does not support rendering multiline and multicolumn\\nstrings into a vtkPath.\\n\\nExample :\\n\\nstr =    "$\\\\\\\\sum_{i=0}^\\\\\\\\infty x_i$ | 2 | 3 | 4 \\\\n"\\n       +  1 | 2 | 3";\\n\\nThe vertical space between two lines can be set with\\nvtkTextProperty::SetLineSpacing and vtkTextProperty::SetLineOffset\\n\\nThe horizontal space between two cells can be set with\\nvtkTextProperty::SetCellOffset\\n\\nLine separators between grid cells can also be drawn.\\n\\n\'})'
    __vtkname__ = 'vtkMatplotlibMathTextUtilities'


# variables with complex values

__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x000002205B16BC50>'

__spec__ = None # (!) real value is "ModuleSpec(name='vtkmodules.vtkRenderingMatplotlib', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000002205B16BC50>, origin='C:\\\\Users\\\\xukai\\\\Downloads\\\\??2\\\\venv\\\\Lib\\\\site-packages\\\\vtkmodules\\\\vtkRenderingMatplotlib.cp311-win_amd64.pyd')"

