# encoding: utf-8
# module vtkmodules.vtkInteractionWidgets
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkInteractionWidgets.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel
import vtkmodules.vtkFiltersSources as __vtkmodules_vtkFiltersSources
import vtkmodules.vtkRenderingContext2D as __vtkmodules_vtkRenderingContext2D
import vtkmodules.vtkRenderingCore as __vtkmodules_vtkRenderingCore


from .vtkBorderWidget import vtkBorderWidget

class vtkScalarBarWidget(vtkBorderWidget):
    """
    vtkScalarBarWidget - 2D widget for manipulating a scalar bar
    
    Superclass: vtkBorderWidget
    
    This class provides support for interactively manipulating the
    position, size, and orientation of a scalar bar. It listens to Left
    mouse events and mouse movement. It also listens to Right mouse
    events and notifies any observers of Right mouse events on this
    object when they occur. It will change the cursor shape based on its
    location. If the cursor is over an edge of the scalar bar it will
    change the cursor shape to a resize edge shape. If the position of a
    scalar bar is moved to be close to the center of one of the four
    edges of the viewport, then the scalar bar will change its
    orientation to align with that edge. This orientation is sticky in
    that it will stay that orientation until the position is moved close
    to another edge.
    
    @sa
    vtkInteractorObserver
    """
    def CreateDefaultRepresentation(self): # real signature unknown; restored from __doc__
        """
        CreateDefaultRepresentation(self) -> None
        C++: void CreateDefaultRepresentation() override;
        
        Create the default widget representation if one is not set.
        """
        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 GetProcessEvents(self): # real signature unknown; restored from __doc__
        """
        GetProcessEvents(self) -> int
        C++: vtkTypeBool GetProcessEvents() override;
        
        Reimplement ProcessEvents to use vtkAbstractWidget instead of
        vtkBorderWidget, for interaction with the scalar bar, even when
        the scalar bar's position is not AnyLocation.
        """
        return 0

    def GetRepositionable(self): # real signature unknown; restored from __doc__
        """
        GetRepositionable(self) -> int
        C++: virtual vtkTypeBool GetRepositionable()
        """
        return 0

    def GetScalarBarActor(self): # real signature unknown; restored from __doc__
        """
        GetScalarBarActor(self) -> vtkScalarBarActor
        C++: virtual vtkScalarBarActor *GetScalarBarActor()
        """
        pass

    def GetScalarBarRepresentation(self): # real signature unknown; restored from __doc__
        """
        GetScalarBarRepresentation(self) -> vtkScalarBarRepresentation
        C++: vtkScalarBarRepresentation *GetScalarBarRepresentation()
        
        Return the representation as a vtkScalarBarRepresentation.
        """
        return vtkScalarBarRepresentation

    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 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) -> vtkScalarBarWidget
        C++: vtkScalarBarWidget *NewInstance()
        """
        return vtkScalarBarWidget

    def RepositionableOff(self): # real signature unknown; restored from __doc__
        """
        RepositionableOff(self) -> None
        C++: virtual void RepositionableOff()
        """
        pass

    def RepositionableOn(self): # real signature unknown; restored from __doc__
        """
        RepositionableOn(self) -> None
        C++: virtual void RepositionableOn()
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkScalarBarWidget
        C++: static vtkScalarBarWidget *SafeDownCast(vtkObjectBase *o)
        """
        return vtkScalarBarWidget

    def SetRepositionable(self, _arg): # real signature unknown; restored from __doc__
        """
        SetRepositionable(self, _arg:int) -> None
        C++: virtual void SetRepositionable(vtkTypeBool _arg)
        
        Can the widget be moved. On by default. If off, the widget cannot
        be moved around.
        
        * TODO: This functionality should probably be moved to the
          superclass.
        """
        pass

    def SetRepresentation(self, rep): # real signature unknown; restored from __doc__
        """
        SetRepresentation(self, rep:vtkScalarBarRepresentation) -> None
        C++: virtual void SetRepresentation(
            vtkScalarBarRepresentation *rep)
        
        Specify an instance of vtkWidgetRepresentation used to represent
        this widget in the scene. Note that the representation is a
        subclass of vtkProp so it can be added to the renderer
        independent of the widget.
        """
        pass

    def SetScalarBarActor(self, actor): # real signature unknown; restored from __doc__
        """
        SetScalarBarActor(self, actor:vtkScalarBarActor) -> None
        C++: virtual void SetScalarBarActor(vtkScalarBarActor *actor)
        
        Get the ScalarBar used by this Widget. One is created
        automatically.
        """
        pass

    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__': 'vtkScalarBarWidget', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'SetRepresentation': <method 'SetRepresentation' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetScalarBarRepresentation': <method 'GetScalarBarRepresentation' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'SetScalarBarActor': <method 'SetScalarBarActor' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetScalarBarActor': <method 'GetScalarBarActor' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'SetRepositionable': <method 'SetRepositionable' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetRepositionable': <method 'GetRepositionable' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'RepositionableOn': <method 'RepositionableOn' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'RepositionableOff': <method 'RepositionableOff' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'CreateDefaultRepresentation': <method 'CreateDefaultRepresentation' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, 'GetProcessEvents': <method 'GetProcessEvents' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF81D6609C0>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkInteractionWidgets.vtkScalarBarWidget' objects>, '__doc__': 'vtkScalarBarWidget - 2D widget for manipulating a scalar bar\\n\\nSuperclass: vtkBorderWidget\\n\\nThis class provides support for interactively manipulating the\\nposition, size, and orientation of a scalar bar. It listens to Left\\nmouse events and mouse movement. It also listens to Right mouse\\nevents and notifies any observers of Right mouse events on this\\nobject when they occur. It will change the cursor shape based on its\\nlocation. If the cursor is over an edge of the scalar bar it will\\nchange the cursor shape to a resize edge shape. If the position of a\\nscalar bar is moved to be close to the center of one of the four\\nedges of the viewport, then the scalar bar will change its\\norientation to align with that edge. This orientation is sticky in\\nthat it will stay that orientation until the position is moved close\\nto another edge.\\n\\n@sa\\nvtkInteractorObserver\\n\\n'})"
    __vtkname__ = 'vtkScalarBarWidget'


