C# 클래스 Core2D.Shape.BaseShape

Base class for shapes.
상속: ObservableResource
파일 보기 프로젝트 열기: Core2D/Core2D 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

BaseShape() 공개 메소드

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

Draw() 공개 추상적인 메소드

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.
리턴 void

GetPoints() 공개 추상적인 메소드

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

Move() 공개 추상적인 메소드

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.
리턴 void