C# Class Mckineap.Models.Context.Projects.Project

Project class.
Contains a Project instance, represented by a path, a name and several applied methods
Inheritance: FileObject
Afficher le fichier Open project: loic-lavergne/mckineap Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

DeleteModel3D() public méthode

Delete a Model3D
public DeleteModel3D ( Mckineap model ) : void
model Mckineap the Model3D to delete
Résultat void

GetCategoryPath() public méthode

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

GetConfigurationFile() public méthode

Returns a string containing the full path of the configuration file
public GetConfigurationFile ( ) : String
Résultat String

GetModel3DByName() public méthode

Get a Model3D from his Name
public GetModel3DByName ( string name ) : Mckineap.Models.Engine3D.Model3D
name string The Name of the Model3D.
Résultat Mckineap.Models.Engine3D.Model3D

GetSafeConfigurationFile() public méthode

Returns a string that only contains the configuration file name
public GetSafeConfigurationFile ( ) : String
Résultat String

HasModels() public méthode

Returns true if the Project's Models are not null, otherwise returns false
public HasModels ( ) : System.Boolean
Résultat System.Boolean

HasPreferences() public méthode

Returns true if the Project's Preferences are not null, otherwise returns false
public HasPreferences ( ) : System.Boolean
Résultat System.Boolean

LoadCapturedModel3D() public méthode

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

LoadModel3D() public méthode

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

Project() public méthode

Project constructor Constructs a new Project object with a path and a name
public Project ( string fullPath ) : Assimp
fullPath string
Résultat Assimp

ProjectNameWasChanged() public méthode

public ProjectNameWasChanged ( string otherName ) : void
otherName string
Résultat void

PropertyWasChanged() public méthode

public PropertyWasChanged ( string property ) : void
property string
Résultat void

SelectModel3D() public méthode

Select a Model from the list
public SelectModel3D ( Mckineap model ) : void
model Mckineap The Model3D to select
Résultat void