C# Class Core2D.Shape.BaseShape

Base class for shapes.
Inheritance: ObservableResource
Datei anzeigen Open project: Core2D/Core2D Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

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

Draw() public abstract method

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.
return void

GetPoints() public abstract method

Get all points in the shape.
public abstract GetPoints ( ) : IEnumerable
return IEnumerable

Move() public abstract method

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.
return void