C# Class LongoMatch.Drawing.Widgets.Blackboard

A canvas that can be used as a blackboard in which objects are drawn over the image set in BackgroundCanvas.Background.
Inheritance: BackgroundCanvas
Show file Open project: GNOME/longomatch Class Usage Examples

Public Methods

Method Description
Blackboard ( IWidget widget ) : System
Clear ( bool resetDrawing = true ) : void

Clears the drawing.

DeleteSelection ( ) : void

Deletes the current selection from the frame drawing.

Draw ( IContext context, Area area ) : void
Save ( ) : Image

Saves the current canvas to an Image

Save ( string filename ) : void

Saves the current canvas to a file

Zoom ( double zoom, Point center = null ) : void

Zoom into the image and center it in the click.

Protected Methods

Method Description
CursorMoved ( Point coords ) : void
Dispose ( bool disposing ) : void
HandleLeftButton ( Point coords, ButtonModifier modif ) : void
SelectionChanged ( System sel ) : void
ShowMenu ( Point coords ) : void
StartMove ( Selection sel ) : void
StopMove ( bool moved ) : void

Private Methods

Method Description
Add ( IBlackboardObject drawable ) : ICanvasSelectableObject
ClipRoi ( Area roi ) : void
UpdateCounters ( ) : void

Method Details

Blackboard() public method

public Blackboard ( IWidget widget ) : System
widget IWidget
return System

Clear() public method

Clears the drawing.
public Clear ( bool resetDrawing = true ) : void
resetDrawing bool
return void

CursorMoved() protected method

protected CursorMoved ( Point coords ) : void
coords Point
return void

DeleteSelection() public method

Deletes the current selection from the frame drawing.
public DeleteSelection ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() public method

public Draw ( IContext context, Area area ) : void
context IContext
area LongoMatch.Core.Common.Area
return void

HandleLeftButton() protected method

protected HandleLeftButton ( Point coords, ButtonModifier modif ) : void
coords Point
modif ButtonModifier
return void

Save() public method

Saves the current canvas to an Image
public Save ( ) : Image
return Image

Save() public method

Saves the current canvas to a file
public Save ( string filename ) : void
filename string
return void

SelectionChanged() protected method

protected SelectionChanged ( System sel ) : void
sel System
return void

ShowMenu() protected method

protected ShowMenu ( Point coords ) : void
coords Point
return void

StartMove() protected method

protected StartMove ( Selection sel ) : void
sel LongoMatch.Core.Store.Drawables.Selection
return void

StopMove() protected method

protected StopMove ( bool moved ) : void
moved bool
return void

Zoom() public method

Zoom into the image and center it in the click.
public Zoom ( double zoom, Point center = null ) : void
zoom double New zoom value.
center Point Mew image center.
return void