# 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 vtkBorderWidget(vtkAbstractWidget):
    """
    vtkBorderWidget - place a border around a 2D rectangular region
    
    Superclass: vtkAbstractWidget
    
    This class is a superclass for 2D widgets that may require a
    rectangular border. Besides drawing a border, the widget provides
    methods for resizing and moving the rectangular region (and
    associated border). The widget provides methods and internal data
    members so that subclasses can take advantage of this widgets
    capabilities, requiring only that the subclass defines a
    "representation", i.e., some combination of props or actors that can
    be managed in the 2D rectangular region.
    
    The class defines basic positioning functionality, including the
    ability to size the widget with locked x/y proportions. The area
    within the border may be made "selectable" as well, meaning that a
    selection event interior to the widget invokes a virtual
    SelectRegion() method, which can be used to pick objects or otherwise
    manipulate data interior to the widget.
    
    @par Event Bindings: By default, the widget responds to the following
    VTK events (i.e., it watches the vtkRenderWindowInteractor for these
    events):
    
    On the boundary of the widget:
      LeftButtonPressEvent - select boundary
      LeftButtonReleaseEvent - deselect boundary
      MouseMoveEvent - move/resize widget depending on which portion of
    the
                       boundary was selected. On the interior of the
    widget:
      LeftButtonPressEvent - invoke SelectButton() callback (if the ivar
                             Selectable is on) Anywhere on the widget:
      MiddleButtonPressEvent - move the widget 
    
    @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 vtkBorderWidget's widget events:
    
    
      vtkWidgetEvent::Select -- some part of the widget has been selected
      vtkWidgetEvent::EndSelect -- the selection process has completed
      vtkWidgetEvent::Translate -- the widget is to be translated
      vtkWidgetEvent::Move -- a request for slider motion has been
    invoked 
    
    @par Event Bindings: In turn, when these widget events are processed,
    this widget invokes the following VTK events on itself (which
    observers can listen for):
    
    
      vtkCommand::StartInteractionEvent (on vtkWidgetEvent::Select)
      vtkCommand::EndInteractionEvent (on vtkWidgetEvent::EndSelect)
      vtkCommand::InteractionEvent (on vtkWidgetEvent::Move) 
    
    @sa
    vtkInteractorObserver vtkCameraInterpolator
    """
    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 GetBorderRepresentation(self): # real signature unknown; restored from __doc__
        """
        GetBorderRepresentation(self) -> vtkBorderRepresentation
        C++: vtkBorderRepresentation *GetBorderRepresentation()
        
        Return the representation as a vtkBorderRepresentation.
        """
        return vtkBorderRepresentation

    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 disable it when using relative
        location with windowLocation. When using exact location this
        override has no effect.
        """
        return 0

    def GetResizable(self): # real signature unknown; restored from __doc__
        """
        GetResizable(self) -> int
        C++: virtual vtkTypeBool GetResizable()
        """
        return 0

    def GetSelectable(self): # real signature unknown; restored from __doc__
        """
        GetSelectable(self) -> int
        C++: virtual vtkTypeBool GetSelectable()
        """
        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) -> vtkBorderWidget
        C++: vtkBorderWidget *NewInstance()
        """
        return vtkBorderWidget

    def ResizableOff(self): # real signature unknown; restored from __doc__
        """
        ResizableOff(self) -> None
        C++: virtual void ResizableOff()
        """
        pass

    def ResizableOn(self): # real signature unknown; restored from __doc__
        """
        ResizableOn(self) -> None
        C++: virtual void ResizableOn()
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkBorderWidget
        C++: static vtkBorderWidget *SafeDownCast(vtkObjectBase *o)
        """
        return vtkBorderWidget

    def SelectableOff(self): # real signature unknown; restored from __doc__
        """
        SelectableOff(self) -> None
        C++: virtual void SelectableOff()
        """
        pass

    def SelectableOn(self): # real signature unknown; restored from __doc__
        """
        SelectableOn(self) -> None
        C++: virtual void SelectableOn()
        """
        pass

    def SetRepresentation(self, r): # real signature unknown; restored from __doc__
        """
        SetRepresentation(self, r:vtkBorderRepresentation) -> None
        C++: void SetRepresentation(vtkBorderRepresentation *r)
        
        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 SetResizable(self, _arg): # real signature unknown; restored from __doc__
        """
        SetResizable(self, _arg:int) -> None
        C++: virtual void SetResizable(vtkTypeBool _arg)
        
        Indicate whether the boundary of the widget can be resized. If
        not, the cursor will not change to "resize" type when mouse over
        the boundary.
        """
        pass

    def SetSelectable(self, _arg): # real signature unknown; restored from __doc__
        """
        SetSelectable(self, _arg:int) -> None
        C++: virtual void SetSelectable(vtkTypeBool _arg)
        
        Indicate whether the interior region of the widget can be
        selected or not. If not, then events (such as left mouse down)
        allow the user to "move" the widget, and no selection is
        possible. Otherwise the SelectRegion() method 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__\': \'vtkBorderWidget\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SetSelectable\': <method \'SetSelectable\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetSelectable\': <method \'GetSelectable\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SelectableOn\': <method \'SelectableOn\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SelectableOff\': <method \'SelectableOff\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SetResizable\': <method \'SetResizable\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetResizable\': <method \'GetResizable\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'ResizableOn\': <method \'ResizableOn\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'ResizableOff\': <method \'ResizableOff\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'SetRepresentation\': <method \'SetRepresentation\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetBorderRepresentation\': <method \'GetBorderRepresentation\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'CreateDefaultRepresentation\': <method \'CreateDefaultRepresentation\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'GetProcessEvents\': <method \'GetProcessEvents\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF81D6395D0>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkInteractionWidgets.vtkBorderWidget\' objects>, \'__doc__\': \'vtkBorderWidget - place a border around a 2D rectangular region\\n\\nSuperclass: vtkAbstractWidget\\n\\nThis class is a superclass for 2D widgets that may require a\\nrectangular border. Besides drawing a border, the widget provides\\nmethods for resizing and moving the rectangular region (and\\nassociated border). The widget provides methods and internal data\\nmembers so that subclasses can take advantage of this widgets\\ncapabilities, requiring only that the subclass defines a\\n"representation", i.e., some combination of props or actors that can\\nbe managed in the 2D rectangular region.\\n\\nThe class defines basic positioning functionality, including the\\nability to size the widget with locked x/y proportions. The area\\nwithin the border may be made "selectable" as well, meaning that a\\nselection event interior to the widget invokes a virtual\\nSelectRegion() method, which can be used to pick objects or otherwise\\nmanipulate data interior to the widget.\\n\\n@par Event Bindings: By default, the widget responds to the following\\nVTK events (i.e., it watches the vtkRenderWindowInteractor for these\\nevents):\\n\\nOn the boundary of the widget:\\n  LeftButtonPressEvent - select boundary\\n  LeftButtonReleaseEvent - deselect boundary\\n  MouseMoveEvent - move/resize widget depending on which portion of\\nthe\\n                   boundary was selected. On the interior of the\\nwidget:\\n  LeftButtonPressEvent - invoke SelectButton() callback (if the ivar\\n                         Selectable is on) Anywhere on the widget:\\n  MiddleButtonPressEvent - move the widget \\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 vtkBorderWidget\\\'s widget events:\\n\\n\\n  vtkWidgetEvent::Select -- some part of the widget has been selected\\n  vtkWidgetEvent::EndSelect -- the selection process has completed\\n  vtkWidgetEvent::Translate -- the widget is to be translated\\n  vtkWidgetEvent::Move -- a request for slider motion has been\\ninvoked \\n\\n@par Event Bindings: In turn, when these widget events are processed,\\nthis widget invokes the following VTK events on itself (which\\nobservers can listen for):\\n\\n\\n  vtkCommand::StartInteractionEvent (on vtkWidgetEvent::Select)\\n  vtkCommand::EndInteractionEvent (on vtkWidgetEvent::EndSelect)\\n  vtkCommand::InteractionEvent (on vtkWidgetEvent::Move) \\n\\n@sa\\nvtkInteractorObserver vtkCameraInterpolator\\n\\n\'})'
    __vtkname__ = 'vtkBorderWidget'


