C# Class Mckineap.Models.Engine3D.Model3D

Inheritance: Mckineap.Models.Context.FileObject
显示文件 Open project: loic-lavergne/mckineap Class Usage Examples

Protected Properties

Property Type Description
animation Mckineap.Models.Engine3D.Animation
bones Collection
content System.Windows.Media.Media3D.Model3DGroup
hasAnimation bool
isInitialized bool
isMerged bool
joints Collection
scene Assimp.Scene

Private Properties

Property Type Description
CurrentModel3D_PropertyChanged void
Initialize void
Initialize void

Public Methods

Method Description
ConstructAsCapturedModel ( string name, KineapScene kineapScene ) : Model3D

Constructs a Model3D captured with Kinect or LeapMotion.
Creates a Model3D file in the models Workspace.

Deserialize ( ) : Model3D

Deserialize a Model

DrawLiveCapture ( int frame ) : void

Draw the model for live capture

DrawModel ( ) : bool

Draw the model for the UI

DrawSkeleton ( ) : bool

Draw the skeleton for UI

GetScene ( ) : Assimp.Scene
Model3D ( ) : Assimp
Model3D ( string fullpath ) : Assimp

Constructs a new Model3D object with a path and a name.
The Model is not initialized as long as the scene and the content are not set.

Model3D ( string fullpath, KineapScene kineapScene ) : Assimp
Model3D ( string fullpath, Assimp.Scene scene ) : Assimp

Constructs a new Model object with a path, a name and an Assimp scene.
The Model is not initialized as long as the scene and the content are not set.

PauseAnimation ( ) : void

Pause the animation

PlayAnimation ( ) : void

Play the animation

ReplaceInContent ( Joint joint ) : void

Replace a model in the Content

Serialize ( ) : void

Serialize a Model3D

StopAnimation ( ) : void

Stop the animation

UpdateAnim ( ) : bool

Update the skeleton in UI

Private Methods

Method Description
CurrentModel3D_PropertyChanged ( object sender, System e ) : void
Initialize ( ) : void

Initialize Variables

Initialize ( string fullPath ) : void

Initialize Variables

Method Details

ConstructAsCapturedModel() public static method

Constructs a Model3D captured with Kinect or LeapMotion.
Creates a Model3D file in the models Workspace.
public static ConstructAsCapturedModel ( string name, KineapScene kineapScene ) : Model3D
name string The name of the captured Model3D.
kineapScene KinectStreamConverter.KineapScene
return Model3D

Deserialize() public method

Deserialize a Model
public Deserialize ( ) : Model3D
return Model3D

DrawLiveCapture() public method

Draw the model for live capture
public DrawLiveCapture ( int frame ) : void
frame int Current captured frame
return void

DrawModel() public method

Draw the model for the UI
public DrawModel ( ) : bool
return bool

DrawSkeleton() public method

Draw the skeleton for UI
public DrawSkeleton ( ) : bool
return bool

GetScene() public method

public GetScene ( ) : Assimp.Scene
return Assimp.Scene

Model3D() public method

public Model3D ( ) : Assimp
return Assimp

Model3D() public method

Constructs a new Model3D object with a path and a name.
The Model is not initialized as long as the scene and the content are not set.
public Model3D ( string fullpath ) : Assimp
fullpath string The path to the model folder.
return Assimp

Model3D() public method

public Model3D ( string fullpath, KineapScene kineapScene ) : Assimp
fullpath string
kineapScene KinectStreamConverter.KineapScene
return Assimp

Model3D() public method

Constructs a new Model object with a path, a name and an Assimp scene.
The Model is not initialized as long as the scene and the content are not set.
public Model3D ( string fullpath, Assimp.Scene scene ) : Assimp
fullpath string The path to the model folder.
scene Assimp.Scene The Assimp scene describing the Model.
return Assimp

PauseAnimation() public method

Pause the animation
public PauseAnimation ( ) : void
return void

PlayAnimation() public method

Play the animation
public PlayAnimation ( ) : void
return void

ReplaceInContent() public method

Replace a model in the Content
public ReplaceInContent ( Joint joint ) : void
joint Joint
return void

Serialize() public method

Serialize a Model3D
public Serialize ( ) : void
return void

StopAnimation() public method

Stop the animation
public StopAnimation ( ) : void
return void

UpdateAnim() public method

Update the skeleton in UI
public UpdateAnim ( ) : bool
return bool

Property Details

animation protected_oe property

protected Mckineap.Models.Engine3D.Animation animation
return Mckineap.Models.Engine3D.Animation

bones protected_oe property

protected Collection bones
return Collection

content protected_oe property

protected Model3DGroup,System.Windows.Media.Media3D content
return System.Windows.Media.Media3D.Model3DGroup

hasAnimation protected_oe property

protected bool hasAnimation
return bool

isInitialized protected_oe property

protected bool isInitialized
return bool

isMerged protected_oe property

protected bool isMerged
return bool

joints protected_oe property

protected Collection joints
return Collection

scene protected_oe property

protected Scene,Assimp scene
return Assimp.Scene