C# Class FarseerPhysics.DebugView.DebugViewSilverlight

A debug view shows you what happens inside the physics engine. You can view bodies, joints, fixtures and more.
Inheritance: DebugViewBase, IDisposable
ファイルを表示 Open project: tinco/Farseer-Physics Class Usage Examples

Public Properties

Property Type Description
DefaultShapeColor Color
InactiveShapeColor Color
KinematicShapeColor Color
SleepingShapeColor Color
StaticShapeColor Color

Public Methods

Method Description
DebugViewSilverlight ( System.Windows.Controls.Canvas debugCanvas, System.Windows.Controls.TextBlock txtDebug, World world ) : System
Dispose ( ) : void
DrawAABB ( AABB &aabb, Color color ) : void
DrawCircle ( Vector2 center, float radius, Color color ) : void
DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
DrawDebugData ( ) : void

Call this to draw shapes and other debug draw data.

DrawPoint ( Vector2 p, float size, Color color ) : void
DrawPolygon ( Vector2 vertices, int count, Color color ) : void
DrawPolygon ( Vector2 vertices, int count, float red, float green, float blue, bool closed = true ) : void
DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
DrawTransform ( FarseerPhysics.Common.Transform &transform ) : void

Private Methods

Method Description
DrawDebugPanel ( ) : void
DrawJoint ( Joint joint ) : void
DrawShape ( Fixture fixture, FarseerPhysics.Common.Transform xf, Color color ) : void
PreSolve ( Contact contact, Manifold &oldManifold ) : void

Method Details

DebugViewSilverlight() public method

public DebugViewSilverlight ( System.Windows.Controls.Canvas debugCanvas, System.Windows.Controls.TextBlock txtDebug, World world ) : System
debugCanvas System.Windows.Controls.Canvas
txtDebug System.Windows.Controls.TextBlock
world FarseerPhysics.Dynamics.World
return System

Dispose() public method

public Dispose ( ) : void
return void

DrawAABB() public method

public DrawAABB ( AABB &aabb, Color color ) : void
aabb FarseerPhysics.Collision.AABB
color Color
return void

DrawCircle() public method

public DrawCircle ( Vector2 center, float radius, Color color ) : void
center Vector2
radius float
color Color
return void

DrawCircle() public method

public DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
center Vector2
radius float
red float
green float
blue float
return void

DrawDebugData() public method

Call this to draw shapes and other debug draw data.
public DrawDebugData ( ) : void
return void

DrawPoint() public method

public DrawPoint ( Vector2 p, float size, Color color ) : void
p Vector2
size float
color Color
return void

DrawPolygon() public method

public DrawPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
return void

DrawPolygon() public method

public DrawPolygon ( Vector2 vertices, int count, float red, float green, float blue, bool closed = true ) : void
vertices Vector2
count int
red float
green float
blue float
closed bool
return void

DrawSegment() public method

public DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
start Vector2
end Vector2
color Color
return void

DrawSegment() public method

public DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
start Vector2
end Vector2
red float
green float
blue float
return void

DrawSolidCircle() public method

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
center Vector2
radius float
axis Vector2
color Color
return void

DrawSolidCircle() public method

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
center Vector2
radius float
axis Vector2
red float
green float
blue float
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
vertices Vector2
count int
color Color
outline bool
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
return void

DrawTransform() public method

public DrawTransform ( FarseerPhysics.Common.Transform &transform ) : void
transform FarseerPhysics.Common.Transform
return void

Property Details

DefaultShapeColor public_oe property

public Color DefaultShapeColor
return Color

InactiveShapeColor public_oe property

public Color InactiveShapeColor
return Color

KinematicShapeColor public_oe property

public Color KinematicShapeColor
return Color

SleepingShapeColor public_oe property

public Color SleepingShapeColor
return Color

StaticShapeColor public_oe property

public Color StaticShapeColor
return Color