ModelFile Class Reference

Inherits from NSObject
Declared in ModelFile.h
ModelFile.m

Overview

An object that stores the file name, path and subdirectory information for a testable model in the assets directory.

Model file info

  subDir

The asset subdirectory of the model file.

@property (readonly, nonatomic) NSString *subDir

Discussion

The asset subdirectory of the model file.

Declared In

ModelFile.h

  file

The file name (including the file format) directory of the model file.

@property (readonly, nonatomic) NSString *file

Discussion

The file name (including the file format) directory of the model file.

Declared In

ModelFile.h

  path

The full file path of the model file.

@property (readonly, nonatomic) NSString *path

Discussion

The full file path of the model file.

Declared In

ModelFile.h

Creating a model file.

– initWithFileName:atPath:inSubDir:

Creates a model file object with file name, subdirectory and path.

- (id)initWithFileName:(NSString *)file atPath:(NSString *)path inSubDir:(NSString *)subDir

Parameters

file

The model file name including the file format subdirectory.

path

The full file path of the model file.

subDir

The asset subdirectory of the model file.

Return Value

A model file object.

Discussion

Creates a model file object with file name, subdirectory and path.

Declared In

ModelFile.h

SCN asset filepaths

– getScnAssetFile

Returns the scn asset including the model file subdirectory and scn extension.

- (NSString *)getScnAssetFile

Return Value

The scn asset filename with .scn extension.

Discussion

Returns the scn asset including the model file subdirectory and scn extension.

Declared In

ModelFile.h

– getAnimScnAssetFile:

Returns the animation scn asset including file subdirectory and scn extension.

- (NSString *)getAnimScnAssetFile:(NSString *)animFileName

Parameters

animFileName

The animation file name, usually the key name.

Return Value

The scn asset filename with .scn extension.

Discussion

Returns the animation scn asset including file subdirectory and scn extension.

Declared In

ModelFile.h