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
Afficher le fichier Open project: tinco/Farseer-Physics Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultShapeColor Color
InactiveShapeColor Color
KinematicShapeColor Color
SleepingShapeColor Color
StaticShapeColor Color

Méthodes publiques

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

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

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
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DrawAABB() public méthode

public DrawAABB ( AABB &aabb, Color color ) : void
aabb FarseerPhysics.Collision.AABB
color Color
Résultat void

DrawCircle() public méthode

public DrawCircle ( Vector2 center, float radius, Color color ) : void
center Vector2
radius float
color Color
Résultat void

DrawCircle() public méthode

public DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
center Vector2
radius float
red float
green float
blue float
Résultat void

DrawDebugData() public méthode

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

DrawPoint() public méthode

public DrawPoint ( Vector2 p, float size, Color color ) : void
p Vector2
size float
color Color
Résultat void

DrawPolygon() public méthode

public DrawPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
Résultat void

DrawPolygon() public méthode

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

DrawSegment() public méthode

public DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
start Vector2
end Vector2
color Color
Résultat void

DrawSegment() public méthode

public DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
start Vector2
end Vector2
red float
green float
blue float
Résultat void

DrawSolidCircle() public méthode

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
center Vector2
radius float
axis Vector2
color Color
Résultat void

DrawSolidCircle() public méthode

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

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
Résultat void

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
vertices Vector2
count int
color Color
outline bool
Résultat void

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
Résultat void

DrawTransform() public méthode

public DrawTransform ( FarseerPhysics.Common.Transform &transform ) : void
transform FarseerPhysics.Common.Transform
Résultat void

Property Details

DefaultShapeColor public_oe property

public Color DefaultShapeColor
Résultat Color

InactiveShapeColor public_oe property

public Color InactiveShapeColor
Résultat Color

KinematicShapeColor public_oe property

public Color KinematicShapeColor
Résultat Color

SleepingShapeColor public_oe property

public Color SleepingShapeColor
Résultat Color

StaticShapeColor public_oe property

public Color StaticShapeColor
Résultat Color