C# Class Core2D.Shape.BaseShape

Base class for shapes.
Inheritance: ObservableResource
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
BaseShape ( ) : System.Collections.Generic

Initializes a new instance of the BaseShape class.

Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void

Draws shape using current ShapeRenderer.

GetPoints ( ) : IEnumerable

Get all points in the shape.

Move ( double dx, double dy ) : void

Moves shape to new position using X and Y axis offset.

Method Details

BaseShape() public méthode

Initializes a new instance of the BaseShape class.
public BaseShape ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Draw() public abstract méthode

Draws shape using current ShapeRenderer.
public abstract Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object The generic drawing context object.
renderer Core2D.Renderer.ShapeRenderer The generic renderer object used to draw shape.
dx double The X axis draw position offset.
dy double The Y axis draw position offset.
db ImmutableArray The properties database used for binding.
r Core2D.Data.Database.XRecord The external data record used for binding.
Résultat void

GetPoints() public abstract méthode

Get all points in the shape.
public abstract GetPoints ( ) : IEnumerable
Résultat IEnumerable

Move() public abstract méthode

Moves shape to new position using X and Y axis offset.
public abstract Move ( double dx, double dy ) : void
dx double The X axis position offset.
dy double The Y axis position offset.
Résultat void