Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

NVSGLoader Class Reference

A Scene Loader for nvsg files. More...

#include <NVSGLoader.h>

Inheritance diagram for NVSGLoader:

Inheritance graph
[legend]
Collaboration diagram for NVSGLoader:

Collaboration graph
[legend]
List of all members.

Public Methods

 NVSGLoader ()
 ~NVSGLoader ()
void deleteThis (void)
 Realization of the pure virtual interface function of a PlugIn. More...

const nvsg::Sceneload (const std::string &filename, const std::vector< std::string > &searchPaths, const nvsg::ViewState *&viewState)
 Realization of the pure virtual interface function of a SceneLoader. More...


Detailed Description

A Scene Loader for nvsg files.

NVSG files can be produced with the sample ViewerVR. They are text files that represent a Scene and a ViewState.


Member Function Documentation

void NVSGLoader::deleteThis void    [inline, virtual]
 

Realization of the pure virtual interface function of a PlugIn.

Note:
Never call delete on a PlugIn, always use the member function.

Implements nvutil::PlugIn.

const nvsg::Scene* NVSGLoader::load const std::string &    filename,
const std::vector< std::string > &    searchPaths,
const nvsg::ViewState *&    viewState
 

Realization of the pure virtual interface function of a SceneLoader.

Loads a nvsg file given by filename. It looks for this file and possibly referenced other files like textures or effects at the given path first, then at the current location and finally it searches through the searchPaths.

Returns:
A pointer to the loaded scene.
Parameters:
filename  file to load
searchPaths  paths to search through
viewState  If the function succeeded, this points to the optional ViewState stored with the scene.


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:20 2005 for NVSGSDK by NVIDIA