# 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 .vtkAbstractWidget import vtkAbstractWidget

class vtkHoverWidget(vtkAbstractWidget):
    """
    vtkHoverWidget - invoke a vtkTimerEvent when hovering
    
    Superclass: vtkAbstractWidget
    
    The vtkHoverWidget is used to invoke an event when hovering in a
    render window. Hovering occurs when mouse motion (in the render
    window) does not occur for a specified amount of time (i.e.,
    TimerDuration). This class can be used as is (by observing
    TimerEvents) or for class derivation for those classes wishing to do
    more with the hover event.
    
    To use this widget, specify an instance of vtkHoverWidget and specify
    the time (in milliseconds) defining the hover period. Unlike most
    widgets, this widget does not require a representation (although
    subclasses like vtkBalloonWidget do require a representation).
    
    @par Event Bindings: By default, the widget observes the following
    VTK events (i.e., it watches the vtkRenderWindowInteractor for these
    events):
    
    
      MouseMoveEvent - manages a timer used to determine whether the
    mouse
                       is hovering.
      TimerEvent - when the time between events (e.g., mouse move), then
    a
                   timer event is invoked.
      KeyPressEvent - when the "Enter" key is pressed after the balloon
    appears,
                      a callback is activated (e.g.,
    WidgetActivateEvent). 
    
    @par Event Bindings: Note that the event bindings described above can
    be changed using this class's vtkWidgetEventTranslator. This class
    translates VTK events into the vtkHoverWidget's widget events:
    
    
      vtkWidgetEvent::Move -- start (or reset) the timer
      vtkWidgetEvent::TimedOut -- when enough time is elapsed between
    defined
                                  VTK events the hover event is invoked.
      vtkWidgetEvent::SelectAction -- activate any callbacks associated
                                      with the balloon. 
    
    @par Event Bindings: This widget invokes the following VTK events on
    itself when the widget determines that it is hovering. Note that
    observers of this widget can listen for these events and take
    appropriate action.
    
    
      vtkCommand::TimerEvent (when hovering is determined to occur)
      vtkCommand::EndInteractionEvent (after a hover has occurred and the
                                       mouse begins moving again).
      vtkCommand::WidgetActivateEvent (when the balloon is selected with
    a
                                       keypress). 
    
    @sa
    vtkAbstractWidget
    """
    def CreateDefaultRepresentation(self): # real signature unknown; restored from __doc__
        """
        CreateDefaultRepresentation(self) -> None
        C++: void CreateDefaultRepresentation() override;
        
        A default representation, of which there is none, is created.
        Note that the superclasses vtkAbstractWidget::GetRepresentation()
        method returns nullptr.
        """
        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 GetTimerDuration(self): # real signature unknown; restored from __doc__
        """
        GetTimerDuration(self) -> int
        C++: virtual int GetTimerDuration()
        """
        return 0

    def GetTimerDurationMaxValue(self): # real signature unknown; restored from __doc__
        """
        GetTimerDurationMaxValue(self) -> int
        C++: virtual int GetTimerDurationMaxValue()
        """
        return 0

    def GetTimerDurationMinValue(self): # real signature unknown; restored from __doc__
        """
        GetTimerDurationMinValue(self) -> int
        C++: virtual int GetTimerDurationMinValue()
        """
        return 0

    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) -> vtkHoverWidget
        C++: vtkHoverWidget *NewInstance()
        """
        return vtkHoverWidget

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkHoverWidget
        C++: static vtkHoverWidget *SafeDownCast(vtkObjectBase *o)
        """
        return vtkHoverWidget

    def SetEnabled(self, __a): # real signature unknown; restored from __doc__
        """
        SetEnabled(self, __a:int) -> None
        C++: void SetEnabled(int) override;
        
        The method for activating and deactivating this widget. This
        method must be overridden because it performs special
        timer-related operations.
        """
        pass

    def SetTimerDuration(self, _arg): # real signature unknown; restored from __doc__
        """
        SetTimerDuration(self, _arg:int) -> None
        C++: virtual void SetTimerDuration(int _arg)
        
        Specify the hovering interval (in milliseconds). If after moving
        the mouse the pointer stays over a vtkProp for this duration,
        then a vtkTimerEvent::TimerEvent is invoked.
        """
        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__\': \'vtkHoverWidget\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'SetTimerDuration\': <method \'SetTimerDuration\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'GetTimerDurationMinValue\': <method \'GetTimerDurationMinValue\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'GetTimerDurationMaxValue\': <method \'GetTimerDurationMaxValue\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'GetTimerDuration\': <method \'GetTimerDuration\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'SetEnabled\': <method \'SetEnabled\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'CreateDefaultRepresentation\': <method \'CreateDefaultRepresentation\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF81D64B490>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkInteractionWidgets.vtkHoverWidget\' objects>, \'__doc__\': \'vtkHoverWidget - invoke a vtkTimerEvent when hovering\\n\\nSuperclass: vtkAbstractWidget\\n\\nThe vtkHoverWidget is used to invoke an event when hovering in a\\nrender window. Hovering occurs when mouse motion (in the render\\nwindow) does not occur for a specified amount of time (i.e.,\\nTimerDuration). This class can be used as is (by observing\\nTimerEvents) or for class derivation for those classes wishing to do\\nmore with the hover event.\\n\\nTo use this widget, specify an instance of vtkHoverWidget and specify\\nthe time (in milliseconds) defining the hover period. Unlike most\\nwidgets, this widget does not require a representation (although\\nsubclasses like vtkBalloonWidget do require a representation).\\n\\n@par Event Bindings: By default, the widget observes the following\\nVTK events (i.e., it watches the vtkRenderWindowInteractor for these\\nevents):\\n\\n\\n  MouseMoveEvent - manages a timer used to determine whether the\\nmouse\\n                   is hovering.\\n  TimerEvent - when the time between events (e.g., mouse move), then\\na\\n               timer event is invoked.\\n  KeyPressEvent - when the "Enter" key is pressed after the balloon\\nappears,\\n                  a callback is activated (e.g.,\\nWidgetActivateEvent). \\n\\n@par Event Bindings: Note that the event bindings described above can\\nbe changed using this class\\\'s vtkWidgetEventTranslator. This class\\ntranslates VTK events into the vtkHoverWidget\\\'s widget events:\\n\\n\\n  vtkWidgetEvent::Move -- start (or reset) the timer\\n  vtkWidgetEvent::TimedOut -- when enough time is elapsed between\\ndefined\\n                              VTK events the hover event is invoked.\\n  vtkWidgetEvent::SelectAction -- activate any callbacks associated\\n                                  with the balloon. \\n\\n@par Event Bindings: This widget invokes the following VTK events on\\nitself when the widget determines that it is hovering. Note that\\nobservers of this widget can listen for these events and take\\nappropriate action.\\n\\n\\n  vtkCommand::TimerEvent (when hovering is determined to occur)\\n  vtkCommand::EndInteractionEvent (after a hover has occurred and the\\n                                   mouse begins moving again).\\n  vtkCommand::WidgetActivateEvent (when the balloon is selected with\\na\\n                                   keypress). \\n\\n@sa\\nvtkAbstractWidget\\n\\n\'})'
    __vtkname__ = 'vtkHoverWidget'


