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
Afficher le fichier Open project: GNOME/longomatch Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
Add ( IBlackboardObject drawable ) : ICanvasSelectableObject
ClipRoi ( Area roi ) : void
UpdateCounters ( ) : void

Method Details

Blackboard() public méthode

public Blackboard ( IWidget widget ) : System
widget IWidget
Résultat System

Clear() public méthode

Clears the drawing.
public Clear ( bool resetDrawing = true ) : void
resetDrawing bool
Résultat void

CursorMoved() protected méthode

protected CursorMoved ( Point coords ) : void
coords Point
Résultat void

DeleteSelection() public méthode

Deletes the current selection from the frame drawing.
public DeleteSelection ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Draw() public méthode

public Draw ( IContext context, Area area ) : void
context IContext
area LongoMatch.Core.Common.Area
Résultat void

HandleLeftButton() protected méthode

protected HandleLeftButton ( Point coords, ButtonModifier modif ) : void
coords Point
modif ButtonModifier
Résultat void

Save() public méthode

Saves the current canvas to an Image
public Save ( ) : Image
Résultat Image

Save() public méthode

Saves the current canvas to a file
public Save ( string filename ) : void
filename string
Résultat void

SelectionChanged() protected méthode

protected SelectionChanged ( System sel ) : void
sel System
Résultat void

ShowMenu() protected méthode

protected ShowMenu ( Point coords ) : void
coords Point
Résultat void

StartMove() protected méthode

protected StartMove ( Selection sel ) : void
sel LongoMatch.Core.Store.Drawables.Selection
Résultat void

StopMove() protected méthode

protected StopMove ( bool moved ) : void
moved bool
Résultat void

Zoom() public méthode

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.
Résultat void