C# Class Revise.Files.ZMO.MotionFile

Provides the ability to create, open and save ZMO files used for motion.
Inheritance: FileLoader
显示文件 Open project: osROSE/UnityRose Class Usage Examples

Public Methods

Method Description
AddChannel ( ChannelType type ) : Revise.Files.ZMO.Channels.MotionChannel

Adds the specified channel type.

AddChannel ( Revise.Files.ZMO.Channels.MotionChannel channel ) : void

Adds the specified channel.

Clear ( ) : void

Clears all channels.

Load ( Stream stream ) : void

Loads the file from the specified stream.

MotionFile ( ) : System

Initializes a new instance of the MotionFile class.

RemoveChannel ( Revise.Files.ZMO.Channels.MotionChannel channel ) : void

Removes the specified channel.

RemoveChannel ( int channel ) : void

Removes the specified channel.

Reset ( ) : void

Resets properties to their default values.

Save ( Stream stream ) : void

Saves the file to the specified stream.

this ( int channel ) : Revise.Files.ZMO.Channels.MotionChannel

Gets the specified Revise.Files.ZMO.Channels.MotionChannel.

Method Details

AddChannel() public method

Adds the specified channel type.
public AddChannel ( ChannelType type ) : Revise.Files.ZMO.Channels.MotionChannel
type ChannelType The type of channel to add.
return Revise.Files.ZMO.Channels.MotionChannel

AddChannel() public method

Adds the specified channel.
public AddChannel ( Revise.Files.ZMO.Channels.MotionChannel channel ) : void
channel Revise.Files.ZMO.Channels.MotionChannel The channel to add.
return void

Clear() public method

Clears all channels.
public Clear ( ) : void
return void

Load() public method

Loads the file from the specified stream.
public Load ( Stream stream ) : void
stream Stream The stream to read from.
return void

MotionFile() public method

Initializes a new instance of the MotionFile class.
public MotionFile ( ) : System
return System

RemoveChannel() public method

Removes the specified channel.
public RemoveChannel ( Revise.Files.ZMO.Channels.MotionChannel channel ) : void
channel Revise.Files.ZMO.Channels.MotionChannel The channel to remove.
return void

RemoveChannel() public method

Removes the specified channel.
public RemoveChannel ( int channel ) : void
channel int The channel to remove.
return void

Reset() public method

Resets properties to their default values.
public Reset ( ) : void
return void

Save() public method

Saves the file to the specified stream.
public Save ( Stream stream ) : void
stream Stream The stream to save to.
return void

this() public method

Gets the specified Revise.Files.ZMO.Channels.MotionChannel.
public this ( int channel ) : Revise.Files.ZMO.Channels.MotionChannel
channel int
return Revise.Files.ZMO.Channels.MotionChannel