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

NVBLoader Class Reference

A Scene Loader for nvb files. More...

#include <NVBLoader.h>

Inheritance diagram for NVBLoader:

Inheritance graph
[legend]
Collaboration diagram for NVBLoader:

Collaboration graph
[legend]
List of all members.

Public Methods

 NVBLoader ()
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...


Protected Methods

virtual ~NVBLoader (void)
 Protected destructor to prevent explicit creation on stack. More...


Detailed Description

A Scene Loader for nvb files.

NVB files can be produced with a special exporter tool with 3D Studio MAX. They can include cgfx effects.

Note:
The Textures of a scene file are given with absolute code pathes they had when creating the nvb file. The loader first searches them first at these absolute positions, and later in the search paths given.


Constructor & Destructor Documentation

NVBLoader::~NVBLoader void    [inline, protected, virtual]
 

Protected destructor to prevent explicit creation on stack.


Member Function Documentation

void NVBLoader::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 * NVBLoader::load const std::string &    filename,
const std::vector< std::string > &    searchPaths,
const nvsg::ViewState *&    viewState
[inline]
 

Realization of the pure virtual interface function of a SceneLoader.

Loads a nvb 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:19 2005 for NVSGSDK by NVIDIA