C# Class LitDev.LDFastShapes

Mostra file Open project: litdev1/LitDev

Public Methods

Method Description
GetLeft ( Primitive index ) : Primitive

Gets the left co-ordinate of the specified shape.

GetOpacity ( Primitive index ) : Primitive

Gets the opacity of a shape.

GetTop ( Primitive index ) : Primitive

Gets the top co-ordinate of the specified shape.

HideShape ( Primitive index ) : void

Hides an already added shape.

Move ( Primitive index, Primitive x, Primitive y ) : void

Moves the shape with the specified name to a new position.

Rotate ( Primitive index, Primitive angle ) : void

Rotates the shape with the specified name to the specified angle.

SetOpacity ( Primitive index, Primitive level ) : void

Sets how opaque a shape should render.

ShapeIndex ( Primitive shapeName ) : Primitive

Register a shape for use with this object. This command is potentially slow, so should be called before time critical visual updates occur. i.e. Create and register all shapes before motion is simulated.

ShowShape ( Primitive index ) : void

Shows a previously hidden shape.

Update ( ) : void

Update all of the properties of shapes set by this object that have been modifed since the last update. The shapes are not visually updated until this method is called.

Zoom ( Primitive index, Primitive scaleX, Primitive scaleY ) : void

Scales the shape using the specified zoom levels.

Private Methods

Method Description
Update_Delegate ( ) : void

Method Details

GetLeft() public static method

Gets the left co-ordinate of the specified shape.
public static GetLeft ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
return Primitive

GetOpacity() public static method

Gets the opacity of a shape.
public static GetOpacity ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
return Primitive

GetTop() public static method

Gets the top co-ordinate of the specified shape.
public static GetTop ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
return Primitive

HideShape() public static method

Hides an already added shape.
public static HideShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
return void

Move() public static method

Moves the shape with the specified name to a new position.
public static Move ( Primitive index, Primitive x, Primitive y ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape to move. ///
x Primitive /// The x co-ordinate of the new position. ///
y Primitive /// The y co-ordinate of the new position. ///
return void

Rotate() public static method

Rotates the shape with the specified name to the specified angle.
public static Rotate ( Primitive index, Primitive angle ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
angle Primitive /// The angle to rotate the shape. ///
return void

SetOpacity() public static method

Sets how opaque a shape should render.
public static SetOpacity ( Primitive index, Primitive level ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
level Primitive /// The opacity level ranging from 0 to 100. 0 is completely transparent and 100 is completely opaque. ///
return void

ShapeIndex() public static method

Register a shape for use with this object. This command is potentially slow, so should be called before time critical visual updates occur. i.e. Create and register all shapes before motion is simulated.
public static ShapeIndex ( Primitive shapeName ) : Primitive
shapeName Primitive The name of the created shape.
return Primitive

ShowShape() public static method

Shows a previously hidden shape.
public static ShowShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
return void

Update() public static method

Update all of the properties of shapes set by this object that have been modifed since the last update. The shapes are not visually updated until this method is called.
public static Update ( ) : void
return void

Zoom() public static method

Scales the shape using the specified zoom levels.
public static Zoom ( Primitive index, Primitive scaleX, Primitive scaleY ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
scaleX Primitive /// The x-axis zoom level. ///
scaleY Primitive /// The y-axis zoom level. ///
return void