CVB.Net 15.0
Loading...
Searching...
No Matches

Thumb that rotates the Area2D overlay. More...

Inherits DisplayCanvasThumbObject.

Static Public Attributes

static readonly DependencyProperty HookPointProperty
 Backing store.
 
- Static Public Attributes inherited from DisplayCanvasThumbObject
static readonly DependencyProperty PlacementLimitsProperty
 Dependency property object for PlacementLimits
 
static readonly DependencyProperty CoordinatesProperty
 Dependency property object for Coordinates
 

Protected Member Functions

override void OnDragDelta (System.Windows.Controls.Primitives.DragDeltaEventArgs e)
 Point is being dragged.
 
virtual Point GetDragDelta (System.Windows.Controls.Primitives.DragDeltaEventArgs e)
 Thumb is being dragged.
 
virtual void ApplyCoordinateRestrictions (ref double x, ref double y)
 Make sure the point does not leave the image, if this is desired.
 
override void OnMouseLeftButtonUp (System.Windows.Input.MouseButtonEventArgs e)
 Make sure the left button up event bubbles - otherwise the user of an overlay hardly has a way of finding out when dragging stopped.
 
- Protected Member Functions inherited from DisplayCanvasThumbObject
virtual void OnDragStarted (DragStartedEventArgs e)
 Drag started handler.
 
virtual void OnDragDelta (DragDeltaEventArgs e)
 Drag delta handler.
 
virtual void ApplyCoordinateRestrictions (ref double left, ref double top, ref double right, ref double bottom, bool ignoreSize)
 Make sure the control stays within the limits of the image it is "living" on.
 

Properties

HookPoint HookPoint [get, set]
 The point to which the thumb is attached.
 
- Properties inherited from DisplayCanvasThumbObject
PlacementMode PlacementLimits [get, set]
 X position of the feature window origin.
 
CoordinateMode Coordinates [get, set]
 X position of the feature window origin.
 
DisplayCanvas Canvas [get]
 The display canvas we are displayed on (if there is none, this will simply be null...
 
OverlayBase Overlay [get]
 The control we are operating on.
 

Additional Inherited Members

- Public Member Functions inherited from DisplayCanvasThumbObject
 DisplayCanvasThumbObject ()
 Ctor.
 
- Static Protected Attributes inherited from DisplayCanvasThumbObject
const PlacementMode PlacementLimitsDefault = PlacementMode.StayInsideImage
 Default limit mode.
 
const CoordinateMode CoordinatesDefault = CoordinateMode.Pixel
 Default coordinate mode.
 

Detailed Description

Thumb that rotates the Area2D overlay.

Member Function Documentation

◆ ApplyCoordinateRestrictions()

virtual void ApplyCoordinateRestrictions ( ref double x,
ref double y )
protectedvirtual

Make sure the point does not leave the image, if this is desired.

Parameters
xTarget x coordinate - may be modified by the function call if necessary.
yTarget y coordinate - may be modified by the function call if necessary.

◆ GetDragDelta()

virtual Point GetDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e)
protectedvirtual

Thumb is being dragged.

Parameters
eEvent arguments.
Returns
The drag delta in image pixel coordinates.

◆ OnDragDelta()

override void OnDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e)
protected

Point is being dragged.

Parameters
eEvent arguments.

◆ OnMouseLeftButtonUp()

override void OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e)
protected

Make sure the left button up event bubbles - otherwise the user of an overlay hardly has a way of finding out when dragging stopped.

Parameters
eEvent arguments.