Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CColladaManager Class Reference

#include <ColladaManager.h>

Public Types

enum  FileType { PMD, PSA }
 

Public Member Functions

 CColladaManager (const PIVFS &vfs)
 
 ~CColladaManager ()
 
VfsPath GetLoadablePath (const VfsPath &pathnameNoExtension, FileType type)
 Returns the VFS path to a PMD/PSA file for the given source file. More...
 
bool GenerateCachedFile (const VfsPath &sourcePath, FileType type, VfsPath &archiveCachePath)
 Converts DAE to archive cached .pmd/psa and outputs the resulting path (used by archive builder) More...
 

Private Member Functions

 NONCOPYABLE (CColladaManager)
 

Private Attributes

CColladaManagerImplm
 
PIVFS m_VFS
 

Detailed Description

Definition at line 27 of file ColladaManager.h.

Member Enumeration Documentation

Enumerator
PMD 
PSA 

Definition at line 32 of file ColladaManager.h.

Constructor & Destructor Documentation

CColladaManager::CColladaManager ( const PIVFS vfs)

Definition at line 317 of file ColladaManager.cpp.

CColladaManager::~CColladaManager ( )

Definition at line 322 of file ColladaManager.cpp.

Member Function Documentation

bool CColladaManager::GenerateCachedFile ( const VfsPath sourcePath,
FileType  type,
VfsPath archiveCachePath 
)

Converts DAE to archive cached .pmd/psa and outputs the resulting path (used by archive builder)

Parameters
[in]sourcePathpath of the .dae to load
[in]typeFileType, .pmd or .psa
[out]archiveCachePathoutput path of the cached file
Returns
true if COLLADA converter completed successfully; or false if it failed

Definition at line 418 of file ColladaManager.cpp.

VfsPath CColladaManager::GetLoadablePath ( const VfsPath pathnameNoExtension,
FileType  type 
)

Returns the VFS path to a PMD/PSA file for the given source file.

Performs a (cached) conversion from COLLADA if necessary.

Parameters
pathnameNoExtensionpath and name, minus extension, of file to load. One of either "sourceName.pmd" or "sourceName.dae" should exist.
typeFileType, .pmd or .psa
Returns
full VFS path (including extension) of file to load; or empty string if there was a problem and it could not be loaded. Doesn't knowingly return an invalid path.

Definition at line 327 of file ColladaManager.cpp.

CColladaManager::NONCOPYABLE ( CColladaManager  )
private

Member Data Documentation

CColladaManagerImpl* CColladaManager::m
private

Definition at line 64 of file ColladaManager.h.

PIVFS CColladaManager::m_VFS
private

Definition at line 65 of file ColladaManager.h.


The documentation for this class was generated from the following files: