C# Class Mckineap.Models.Engine3D.Model3D

Inheritance: Mckineap.Models.Context.FileObject
Afficher le fichier Open project: loic-lavergne/mckineap Class Usage Examples

Protected Properties

Свойство 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

Свойство Type Description
CurrentModel3D_PropertyChanged void
Initialize void
Initialize void

Méthodes publiques

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

Méthode Description
CurrentModel3D_PropertyChanged ( object sender, System e ) : void
Initialize ( ) : void

Initialize Variables

Initialize ( string fullPath ) : void

Initialize Variables

Method Details

ConstructAsCapturedModel() public static méthode

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

Deserialize() public méthode

Deserialize a Model
public Deserialize ( ) : Model3D
Résultat Model3D

DrawLiveCapture() public méthode

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

DrawModel() public méthode

Draw the model for the UI
public DrawModel ( ) : bool
Résultat bool

DrawSkeleton() public méthode

Draw the skeleton for UI
public DrawSkeleton ( ) : bool
Résultat bool

GetScene() public méthode

public GetScene ( ) : Assimp.Scene
Résultat Assimp.Scene

Model3D() public méthode

public Model3D ( ) : Assimp
Résultat Assimp

Model3D() public méthode

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.
Résultat Assimp

Model3D() public méthode

public Model3D ( string fullpath, KineapScene kineapScene ) : Assimp
fullpath string
kineapScene KinectStreamConverter.KineapScene
Résultat Assimp

Model3D() public méthode

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.
Résultat Assimp

PauseAnimation() public méthode

Pause the animation
public PauseAnimation ( ) : void
Résultat void

PlayAnimation() public méthode

Play the animation
public PlayAnimation ( ) : void
Résultat void

ReplaceInContent() public méthode

Replace a model in the Content
public ReplaceInContent ( Joint joint ) : void
joint Joint
Résultat void

Serialize() public méthode

Serialize a Model3D
public Serialize ( ) : void
Résultat void

StopAnimation() public méthode

Stop the animation
public StopAnimation ( ) : void
Résultat void

UpdateAnim() public méthode

Update the skeleton in UI
public UpdateAnim ( ) : bool
Résultat bool

Property Details

animation protected_oe property

protected Mckineap.Models.Engine3D.Animation animation
Résultat Mckineap.Models.Engine3D.Animation

bones protected_oe property

protected Collection bones
Résultat Collection

content protected_oe property

protected Model3DGroup,System.Windows.Media.Media3D content
Résultat System.Windows.Media.Media3D.Model3DGroup

hasAnimation protected_oe property

protected bool hasAnimation
Résultat bool

isInitialized protected_oe property

protected bool isInitialized
Résultat bool

isMerged protected_oe property

protected bool isMerged
Résultat bool

joints protected_oe property

protected Collection joints
Résultat Collection

scene protected_oe property

protected Scene,Assimp scene
Résultat Assimp.Scene