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

nvsg::SceneSaver Class Reference

Pure virtual base class for NVSG scene saver plug-ins. More...

#include <PlugInterface.h>

Inheritance diagram for nvsg::SceneSaver:

Inheritance graph
[legend]
Collaboration diagram for nvsg::SceneSaver:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual NVSG_API bool save (const Scene &scene, const ViewState *viewState, const std::string &filename)=0
 Saving a scene. More...


Protected Methods

virtual NVSG_API ~SceneSaver ()
 Protected virtual destructor. More...


Detailed Description

Pure virtual base class for NVSG scene saver plug-ins.

User defined NVSG scene saver plug-ins must provide the SceneSaver interface.


Constructor & Destructor Documentation

virtual NVSG_API nvsg::SceneSaver::~SceneSaver   [protected, virtual]
 

Protected virtual destructor.

Prohibits ordinary client code from

  • creating a SceneSaver derived object on stack and
  • calling delete on a pointer to SceneSaver.
Note:
This will not prohibit the client code from calling delete on a pointer to a SceneSaver derived object. Normally this is not that critical, because one almost always uses a pointer to the base class when working with SceneSaver plug-ins.

Nevertheless, it would be far less error prone if classes that inherit from SceneSaver, also make their destructor protected.


Member Function Documentation

virtual NVSG_API bool nvsg::SceneSaver::save const Scene   scene,
const ViewState   viewState,
const std::string &    filename
[pure virtual]
 

Saving a scene.

Saves an NVSG scene and a viewState to a file specified by filename.

Returns:
true if successful, false otherwise.


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