C# Class FlatRedBall.Content.Math.Geometry.ShapeCollectionSave

Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
AxisAlignedCubeSaves List
AxisAlignedRectangleSaves List
CircleSaves List
PolygonSaves List
SphereSaves List

Private Properties

Property Type Description

Public Methods

Method Description
AddAxisAlignedCubeList ( PositionedObjectList axisAlignedCubesToAdd ) : void
AddAxisAlignedRectangleList ( PositionedObjectList axisAlignedRectanglesToAdd ) : void
AddCircleList ( PositionedObjectList circlesToAdd ) : void
AddPolygonList ( PositionedObjectList polygonsToAdd ) : void
AddSphereList ( PositionedObjectList spheresToAdd ) : void
FromFile ( string fileName ) : ShapeCollectionSave

Deserializes a file into a new ShapeCollectionSave and returns it.

FromShapeCollection ( ShapeCollection shapeCollection ) : ShapeCollectionSave
Save ( string fileName ) : void
SetShapeCollection ( ShapeCollection newShapeCollection ) : void
Shift ( Vector3 shiftAmount ) : void
ToAxisAlignedCubeList ( ) : PositionedObjectList
ToAxisAlignedRectangleList ( ) : PositionedObjectList
ToCircleList ( ) : PositionedObjectList
ToPolygonList ( ) : PositionedObjectList
ToShapeCollection ( ) : ShapeCollection
ToSphereList ( ) : PositionedObjectList

Method Details

AddAxisAlignedCubeList() public method

public AddAxisAlignedCubeList ( PositionedObjectList axisAlignedCubesToAdd ) : void
axisAlignedCubesToAdd PositionedObjectList
return void

AddAxisAlignedRectangleList() public method

public AddAxisAlignedRectangleList ( PositionedObjectList axisAlignedRectanglesToAdd ) : void
axisAlignedRectanglesToAdd PositionedObjectList
return void

AddCircleList() public method

public AddCircleList ( PositionedObjectList circlesToAdd ) : void
circlesToAdd PositionedObjectList
return void

AddPolygonList() public method

public AddPolygonList ( PositionedObjectList polygonsToAdd ) : void
polygonsToAdd PositionedObjectList
return void

AddSphereList() public method

public AddSphereList ( PositionedObjectList spheresToAdd ) : void
spheresToAdd PositionedObjectList
return void

FromFile() public static method

Deserializes a file into a new ShapeCollectionSave and returns it.
public static FromFile ( string fileName ) : ShapeCollectionSave
fileName string The absolute or relative file name. If the file name is relative, then the FileManager's RelativeDirectory will be used.
return ShapeCollectionSave

FromShapeCollection() public static method

public static FromShapeCollection ( ShapeCollection shapeCollection ) : ShapeCollectionSave
shapeCollection ShapeCollection
return ShapeCollectionSave

Save() public method

public Save ( string fileName ) : void
fileName string
return void

SetShapeCollection() public method

public SetShapeCollection ( ShapeCollection newShapeCollection ) : void
newShapeCollection ShapeCollection
return void

Shift() public method

public Shift ( Vector3 shiftAmount ) : void
shiftAmount Vector3
return void

ToAxisAlignedCubeList() public method

public ToAxisAlignedCubeList ( ) : PositionedObjectList
return PositionedObjectList

ToAxisAlignedRectangleList() public method

public ToAxisAlignedRectangleList ( ) : PositionedObjectList
return PositionedObjectList

ToCircleList() public method

public ToCircleList ( ) : PositionedObjectList
return PositionedObjectList

ToPolygonList() public method

public ToPolygonList ( ) : PositionedObjectList
return PositionedObjectList

ToShapeCollection() public method

public ToShapeCollection ( ) : ShapeCollection
return ShapeCollection

ToSphereList() public method

public ToSphereList ( ) : PositionedObjectList
return PositionedObjectList

Property Details

AxisAlignedCubeSaves public_oe property

public List AxisAlignedCubeSaves
return List

AxisAlignedRectangleSaves public_oe property

public List AxisAlignedRectangleSaves
return List

CircleSaves public_oe property

public List CircleSaves
return List

PolygonSaves public_oe property

public List PolygonSaves
return List

SphereSaves public_oe property

public List SphereSaves
return List