C# Класс Mckineap.Models.Context.Projects.Project

Project class.
Contains a Project instance, represented by a path, a name and several applied methods
Наследование: FileObject
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DeleteModel3D ( Mckineap model ) : void

Delete a Model3D

GetCategoryPath ( string category ) : String

Returns the path of a Project's sub-category specified by the category parameter.
If the category isn't found, then an empty string is returned

GetConfigurationFile ( ) : String

Returns a string containing the full path of the configuration file

GetModel3DByName ( string name ) : Mckineap.Models.Engine3D.Model3D

Get a Model3D from his Name

GetSafeConfigurationFile ( ) : String

Returns a string that only contains the configuration file name

HasModels ( ) : System.Boolean

Returns true if the Project's Models are not null, otherwise returns false

HasPreferences ( ) : System.Boolean

Returns true if the Project's Preferences are not null, otherwise returns false

LoadCapturedModel3D ( string name, KineapScene kineapScene ) : void

Load a captured Model3D From Kinect or LeapMotion

LoadModel3D ( string path, Assimp.Scene scene ) : void

Loads a Model3D whether it is a Model or an Animation.

Project ( string fullPath ) : Assimp

Project constructor Constructs a new Project object with a path and a name

ProjectNameWasChanged ( string otherName ) : void
PropertyWasChanged ( string property ) : void
SelectModel3D ( Mckineap model ) : void

Select a Model from the list

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

Метод Описание
CheckModelsWorkspace ( ) : System.Boolean

Check if the Model3D is in the Workspace

Copy ( string path ) : void

Copies a Model in User filepath

Copy ( string source, string destination ) : void

Copies a Model in User filepath

Load ( Mckineap model3D ) : void

Loads a Model3D in the associated model3DList ands sets the currentModel3D.

LoadModels3D ( ) : System.Boolean

Load the Model3D saved in the Project

ModelExists ( string path ) : System.Boolean

Checks whether the model is from the Project's Models workspace.

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

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

Delete a Model3D
public DeleteModel3D ( Mckineap model ) : void
model Mckineap the Model3D to delete
Результат void

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

Returns the path of a Project's sub-category specified by the category parameter.
If the category isn't found, then an empty string is returned
public GetCategoryPath ( string category ) : String
category string The Project's sub-category (eg. "Preferences", "Models", etc.)
Результат String

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

Returns a string containing the full path of the configuration file
public GetConfigurationFile ( ) : String
Результат String

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

Get a Model3D from his Name
public GetModel3DByName ( string name ) : Mckineap.Models.Engine3D.Model3D
name string The Name of the Model3D.
Результат Mckineap.Models.Engine3D.Model3D

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

Returns a string that only contains the configuration file name
public GetSafeConfigurationFile ( ) : String
Результат String

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

Returns true if the Project's Models are not null, otherwise returns false
public HasModels ( ) : System.Boolean
Результат System.Boolean

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

Returns true if the Project's Preferences are not null, otherwise returns false
public HasPreferences ( ) : System.Boolean
Результат System.Boolean

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

Load a captured Model3D From Kinect or LeapMotion
public LoadCapturedModel3D ( string name, KineapScene kineapScene ) : void
name string The name of the Model3D file
kineapScene KinectStreamConverter.KineapScene
Результат void

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

Loads a Model3D whether it is a Model or an Animation.
public LoadModel3D ( string path, Assimp.Scene scene ) : void
path string The path of the Model3D file.
scene Assimp.Scene The Assimp Scene of the imported Model3D.
Результат void

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

Project constructor Constructs a new Project object with a path and a name
public Project ( string fullPath ) : Assimp
fullPath string
Результат Assimp

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

public ProjectNameWasChanged ( string otherName ) : void
otherName string
Результат void

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

public PropertyWasChanged ( string property ) : void
property string
Результат void

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

Select a Model from the list
public SelectModel3D ( Mckineap model ) : void
model Mckineap The Model3D to select
Результат void