C# Класс Mckineap.Models.Engine3D.Model3D

Наследование: Mckineap.Models.Context.FileObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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

Свойство Тип Описание
CurrentModel3D_PropertyChanged void
Initialize void
Initialize void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CurrentModel3D_PropertyChanged ( object sender, System e ) : void
Initialize ( ) : void

Initialize Variables

Initialize ( string fullPath ) : void

Initialize Variables

Описание методов

ConstructAsCapturedModel() публичный статический Метод

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
Результат Model3D

Deserialize() публичный Метод

Deserialize a Model
public Deserialize ( ) : Model3D
Результат Model3D

DrawLiveCapture() публичный Метод

Draw the model for live capture
public DrawLiveCapture ( int frame ) : void
frame int Current captured frame
Результат void

DrawModel() публичный Метод

Draw the model for the UI
public DrawModel ( ) : bool
Результат bool

DrawSkeleton() публичный Метод

Draw the skeleton for UI
public DrawSkeleton ( ) : bool
Результат bool

GetScene() публичный Метод

public GetScene ( ) : Assimp.Scene
Результат Assimp.Scene

Model3D() публичный Метод

public Model3D ( ) : Assimp
Результат Assimp

Model3D() публичный Метод

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.
Результат Assimp

Model3D() публичный Метод

public Model3D ( string fullpath, KineapScene kineapScene ) : Assimp
fullpath string
kineapScene KinectStreamConverter.KineapScene
Результат Assimp

Model3D() публичный Метод

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.
Результат Assimp

PauseAnimation() публичный Метод

Pause the animation
public PauseAnimation ( ) : void
Результат void

PlayAnimation() публичный Метод

Play the animation
public PlayAnimation ( ) : void
Результат void

ReplaceInContent() публичный Метод

Replace a model in the Content
public ReplaceInContent ( Joint joint ) : void
joint Joint
Результат void

Serialize() публичный Метод

Serialize a Model3D
public Serialize ( ) : void
Результат void

StopAnimation() публичный Метод

Stop the animation
public StopAnimation ( ) : void
Результат void

UpdateAnim() публичный Метод

Update the skeleton in UI
public UpdateAnim ( ) : bool
Результат bool

Описание свойств

animation защищенное свойство

protected Mckineap.Models.Engine3D.Animation animation
Результат Mckineap.Models.Engine3D.Animation

bones защищенное свойство

protected Collection bones
Результат Collection

content защищенное свойство

protected Model3DGroup,System.Windows.Media.Media3D content
Результат System.Windows.Media.Media3D.Model3DGroup

hasAnimation защищенное свойство

protected bool hasAnimation
Результат bool

isInitialized защищенное свойство

protected bool isInitialized
Результат bool

isMerged защищенное свойство

protected bool isMerged
Результат bool

joints защищенное свойство

protected Collection joints
Результат Collection

scene защищенное свойство

protected Scene,Assimp scene
Результат Assimp.Scene