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
ファイルを表示 Open project: loic-lavergne/mckineap Class Usage Examples

Public Methods

Method 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

Method 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 method

Delete a Model3D
public DeleteModel3D ( Mckineap model ) : void
model Mckineap the Model3D to delete
return void

GetCategoryPath() public method

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.)
return String

GetConfigurationFile() public method

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

GetModel3DByName() public method

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

GetSafeConfigurationFile() public method

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

HasModels() public method

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

HasPreferences() public method

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

LoadCapturedModel3D() public method

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
return void

LoadModel3D() public method

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.
return void

Project() public method

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

ProjectNameWasChanged() public method

public ProjectNameWasChanged ( string otherName ) : void
otherName string
return void

PropertyWasChanged() public method

public PropertyWasChanged ( string property ) : void
property string
return void

SelectModel3D() public method

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