CVB.Net 14.0
Area2DOverlay Class Reference

Interaction logic for Area2DOverlay.xaml More...

Inherits NonClippingImageOverlay.

Public Member Functions

 Area2DOverlay ()
 Constructor.
 
 Area2DOverlay (Point p0, Point p1, Point p2)
 Constructor. More...
 
- Public Member Functions inherited from NonClippingImageOverlay
 NonClippingImageOverlay ()
 default ctor
 
- Public Member Functions inherited from ImageOverlay
 ImageOverlay ()
 Creates an image overlay object.
 
- Public Member Functions inherited from OverlayBase
 OverlayBase ()
 Creates an overlay object.
 

Static Public Attributes

static readonly DependencyProperty P0XProperty
 backing store
 
static readonly DependencyProperty P0YProperty
 backing store
 
static readonly DependencyProperty P1XProperty
 backing store
 
static readonly DependencyProperty P1YProperty
 backing store
 
static readonly DependencyProperty P2XProperty
 backing store
 
static readonly DependencyProperty P2YProperty
 backing store
 
static readonly DependencyProperty P3XProperty = P3XPropertyKey.DependencyProperty
 Backing store.
 
static readonly DependencyProperty P3YProperty = P3YPropertyKey.DependencyProperty
 Backing store.
 
static readonly DependencyProperty ArrowWidthProperty
 backing store
 
static readonly DependencyProperty ArrowLengthProperty
 backing store
 
static readonly DependencyProperty StrokeProperty
 Backing store.
 
static readonly DependencyProperty StrokeThicknessProperty
 backing store
 
- Static Public Attributes inherited from ImageOverlay
static readonly DependencyProperty AutoScaleContentProperty
 Backing store for the AutoScaleContent property. More...
 
static readonly DependencyProperty CoordinatesProperty
 Dependency property object.
 
static readonly DependencyProperty NonScaledTransformProperty
 Backing store for the NonScaledTransform property. More...
 
static readonly DependencyProperty PixelCoordinateSystemProperty
 Backing store for the PixelCoordinateSystem property. More...
 
static readonly DependencyProperty ScaledTransformProperty
 Backing store for the ScaledTransform property. More...
 
static readonly DependencyProperty StandardLineWidthProperty
 Backing store.
 
static readonly DependencyProperty EffectiveLineWidthProperty = EffectiveLineWidthPropertyKey.DependencyProperty
 Backing store.
 
- Static Public Attributes inherited from OverlayBase
static readonly DependencyProperty ActualZoomFactorProperty = ActualZoomFactorKey.DependencyProperty
 Backing store for the ActualZoomFactor property.
 
static readonly DependencyProperty InverseActualZoomFactorProperty = InverseActualZoomFactorPropertyKey.DependencyProperty
 Backing store.
 
static readonly DependencyProperty OverlayHeightProperty
 Backing store for the OverlayHeight property
 
static readonly DependencyProperty OverlayWidthProperty
 Backing store for the OverlayWidth property.
 
static readonly DependencyProperty OverlayXProperty
 Backing store for the OverlayX property.
 
static readonly DependencyProperty OverlayYProperty
 Backing store for the OverlayY property.
 
static readonly DependencyProperty ParentDisplayCanvasProperty
 Backing store for the readonly ParentDisplayCanvas property.
 
static readonly DependencyProperty BottomProperty
 Backing store for the Bottom property.
 
static readonly DependencyProperty LeftProperty
 Backing store for the Left property.
 
static readonly DependencyProperty LengthUnitProperty
 Backing store for the LengthUnit property.
 
static readonly DependencyProperty RightProperty
 Backing store for the Right property.
 
static readonly DependencyProperty TopProperty
 Backing store for the Top property.
 

Protected Member Functions

override void OnParentDisplayCanvasChanged (DisplayCanvas oldCanvas, DisplayCanvas newCanvas)
 React to changes in the canvas... More...
 
- Protected Member Functions inherited from NonClippingImageOverlay
override System.Windows.Media.Geometry GetLayoutClip (Size layoutSlotSize)
 Prevent clipping at the edge of the user control (that way we can implement dragging of the overlay more easily). More...
 
virtual double CoerceOverlayWidth (double value)
 Inheritors must override this to specify the effective overlay width (which should be total render extent regardless of clipping considerations). More...
 
virtual double CoerceOverlayHeight (double value)
 Inheritors must override this to specify the effective overlay width (which should be total render extent regardless of clipping considerations). More...
 
virtual void OnParentDisplayCanvasChanged (DisplayCanvas oldCanvas, DisplayCanvas newCanvas)
 Event raiser. More...
 

Static Protected Member Functions

static new void OnActualZoomFactorChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 React to changes in the zoom factor on the displaying canvas. More...
 
static void OnP0XChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 react to changes... More...
 
static void OnP0YChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 react to changes... More...
 
static void OnP1Changed (DependencyObject d, DependencyPropertyChangedEventArgs e)
 react to changes More...
 
static void OnP2Changed (DependencyObject d, DependencyPropertyChangedEventArgs e)
 react to changes More...
 
- Static Protected Member Functions inherited from ImageOverlay
static new void OnActualZoomFactorChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 React to changes in the zoom factor. More...
 
static object CoerceCoordinate (DependencyObject d, object baseValue)
 Ensures correct location handling for (sub)pixel coordinate mode. More...
 
- Static Protected Member Functions inherited from OverlayBase
static void OnActualZoomFactorChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
 React to property changes. More...
 

Static Protected Attributes

static readonly DependencyPropertyKey P3XPropertyKey
 Backing store key.
 
static readonly DependencyPropertyKey P3YPropertyKey
 Backing store key.
 
static readonly DependencyProperty EffectiveArrowWidthProperty = EffectiveArrowWidthPropertyKey.DependencyProperty
 Backing store.
 
static readonly DependencyProperty EffectiveArrowLengthProperty = EffectiveArrowLengthPropertyKey.DependencyProperty
 Backing store.
 
- Static Protected Attributes inherited from ImageOverlay
const CoordinateMode CoordinatesDefault = CoordinateMode.Pixel
 Default for the property.
 
static readonly DependencyPropertyKey EffectiveLineWidthPropertyKey
 Backing store key.
 
- Static Protected Attributes inherited from OverlayBase
static readonly DependencyPropertyKey ActualZoomFactorKey
 The Key for readonly ActualZoomFactor property.
 
static readonly DependencyPropertyKey InverseActualZoomFactorPropertyKey
 Backing store key.
 

Properties

Area2D Selection [get]
 Current selection.
 
double P0X [get, set]
 Point P0, X coordinate
 
double P0Y [get, set]
 Point P0, Y coordinate.
 
double P1X [get, set]
 Point P1, X coordinate.
 
double P1Y [get, set]
 Point P1, Y coordinate.
 
double P2X [get, set]
 Point P2, X coordinate.
 
double P2Y [get, set]
 Point P2, Y coordinate.
 
double P3X [get, protected set]
 P3, x coordinate (read only...)
 
double P3Y [get, protected set]
 P3, y coordinate (read only...)
 
double ArrowWidth [get, set]
 Width of the arrows (and the diameter of the ellipse...)
 
double ArrowLength [get, set]
 Length of the Arrow heads
 
double EffectiveArrowWidth [get]
 The width of the arrow in image pixels (subject to change depending on the actual zoom factor) for painting purposes.
 
double EffectiveArrowLength [get]
 The length of the arrow in image pixels (subject to change depending on the actual zoom factor) for painting purposes.
 
Brush Stroke [get, set]
 Stroke being used for painting.
 
double StrokeThickness [get, set]
 Thickness at which to paint the strokes.
 
- Properties inherited from ImageOverlay
AutoScaleContent AutoScaleContent [get, set]
 Defines whether or not the overlays in the canvas are automatically scaled according to the zoom factor.
 
CoordinateMode Coordinates [get, set]
 Coordinate system usage (pixel or sub pixel).
 
Transform NonScaledTransform [get]
 Gets the the transform that is used to undo automatic scaling of content according to the OverlayBase.ActualZoomFactor. More...
 
PixelCoordinateSystem PixelCoordinateSystem [get, set]
 Defines the location of a point in a pixel. More...
 
Transform ScaledTransform [get]
 Gets the the transform that is used to scale content according to the OverlayBase.ActualZoomFactor. More...
 
double StandardLineWidth [get, set]
 The standard line width is the width at which "normal" lines should be painted in the overlay. It is mostly a vehicle for calculating the effective line width and for binding purposes.
 
double EffectiveLineWidth [get, protected set]
 The effective line width is the line width at which to paint in order to make lines with the width defined in the property StandardLineWidth appear as if they were not zoomed.
 
- Properties inherited from OverlayBase
double ActualZoomFactor [get]
 Gets the actual zoom factor of the display canvas this overlay is on.
 
double InverseActualZoomFactor [get, protected set]
 Gets the inverse value of the actual Zoom factor (useful for painting items that are the same size regardless of zoom factor).
 
double OverlayHeight [get, set]
 Gets/sets the height of the overlay in the current length unit.
 
double OverlayWidth [get, set]
 Gets/sets the width of the overlay in the current length unit.
 
double OverlayX [get, set]
 Gets/sets the overlay x coordinate in the current length unit.
 
double OverlayY [get, set]
 Gets/set the overlay Y in the current length unit.
 
DisplayCanvas ParentDisplayCanvas [get, set]
 The DisplayCanvas this overlay is child of. More...
 
double Bottom [get, set]
 Layouts a child from the bottom. More...
 
double Left [get, set]
 Layouts a child from the left. More...
 
LengthUnit LengthUnit [get]
 Defines whether the layout properties are measured in image pixels or in device independent pixels as displayed by the canvas.
 
double Right [get, set]
 Layouts a child from the right. More...
 
double Top [get, set]
 Layouts a child from the top. More...
 

Additional Inherited Members

- Events inherited from ImageOverlay
EventHandler< ImageSourceChangedEventArgsImageSourceChanged
 Event that is fired when the parent DisplayCanvas' actual zoom factor is changed.
 
- Events inherited from OverlayBase
EventHandler< PropertyValueChangedEventArgs< DisplayCanvas > > ParentDisplayCanvasChanged
 Event that is fired when the parent DisplayCanvas is changed.
 
EventHandler< DisplayZoomEventArgsActualZoomFactorChanged
 Event that is fired when the parent DisplayCanvas' actual zoom factor is changed.
 

Detailed Description

Interaction logic for Area2DOverlay.xaml

Constructor & Destructor Documentation

◆ Area2DOverlay()

Area2DOverlay ( Point  p0,
Point  p1,
Point  p2 
)

Constructor.

Parameters
p0Point P0.
p1Point P1.
p2Point P2.

Member Function Documentation

◆ OnActualZoomFactorChanged()

static new void OnActualZoomFactorChanged ( DependencyObject  d,
DependencyPropertyChangedEventArgs  e 
)
staticprotected

React to changes in the zoom factor on the displaying canvas.

Parameters
dDependency object on which the change occurred.
eEvent arguments.

◆ OnP0XChanged()

static void OnP0XChanged ( DependencyObject  d,
DependencyPropertyChangedEventArgs  e 
)
staticprotected

react to changes...

Parameters
dDependency object on which the change occurred.
eEvent arguments.

◆ OnP0YChanged()

static void OnP0YChanged ( DependencyObject  d,
DependencyPropertyChangedEventArgs  e 
)
staticprotected

react to changes...

Parameters
dDependency object on which the change occurred.
eEvent arguments.

◆ OnP1Changed()

static void OnP1Changed ( DependencyObject  d,
DependencyPropertyChangedEventArgs  e 
)
staticprotected

react to changes

Parameters
dDependency object on which the change occurred.
eEvent arguments.

◆ OnP2Changed()

static void OnP2Changed ( DependencyObject  d,
DependencyPropertyChangedEventArgs  e 
)
staticprotected

react to changes

Parameters
dDependency object on which the change occurred.
eEvent arguments.

◆ OnParentDisplayCanvasChanged()

override void OnParentDisplayCanvasChanged ( DisplayCanvas  oldCanvas,
DisplayCanvas  newCanvas 
)
protectedvirtual

React to changes in the canvas...

Parameters
oldCanvasCanvas on which the overlay was hitherto located.
newCanvasCanvas on which the overlay will now "live".

Reimplemented from OverlayBase.