openvrml::null_node_metatype Class Reference

A placeholder node_metatype. More...

#include <openvrml/node.h>

Inheritance diagram for openvrml::null_node_metatype:

Public Member Functions

 null_node_metatype (openvrml::browser &browser) throw ()
 Construct. More...
 
virtual ~null_node_metatype () throw ()
 Destroy. More...
 
- Public Member Functions inherited from openvrml::node_metatype
virtual ~node_metatype ()=0 throw ()
 Destructor. More...
 
const node_metatype_idid () const throw ()
 Identifier. More...
 
openvrml::browserbrowser () const throw ()
 The browser associated with this node_metatype. More...
 
void initialize (viewpoint_node *initial_viewpoint, double time) throw ()
 node_metatype-specific initialization. More...
 
void render (viewer &v) const throw ()
 node_metatype-specific rendering. More...
 
const boost::shared_ptr
< node_type
create_type (const std::string &id, const node_interface_set &interfaces) throw ( unsupported_interface , std::bad_alloc )
 Create a new node_type. More...
 
void shutdown (double time) throw ()
 Shut down. More...
 

Private Member Functions

virtual const
boost::shared_ptr< node_type
do_create_type (const std::string &id, const node_interface_set &interfaces) const throw ()
 Do not call. More...
 

Additional Inherited Members

- Protected Member Functions inherited from openvrml::node_metatype
 node_metatype (const node_metatype_id &id, openvrml::browser &b) throw ()
 Constructor. More...
 

Detailed Description

A placeholder node_metatype.

The null_node_metatype is provided for convenience for the uncommon (but not inconceivable) situation where one needs something that acts like a node, yet isn't a full-fleged node with proper node_metatype and node_type implementations.

See also
openvrml::null_node_type

Constructor & Destructor Documentation

openvrml::null_node_metatype::null_node_metatype ( openvrml::browser browser)
throw (
)
explicit

Construct.

Parameters
browsera browser.
openvrml::null_node_metatype::~null_node_metatype ( )
throw (
)
virtual

Destroy.

Member Function Documentation

const boost::shared_ptr< openvrml::node_type > openvrml::null_node_metatype::do_create_type ( const std::string &  id,
const node_interface_set interfaces 
) const
throw (
)
privatevirtual

Do not call.

Warning
Correct code will not call this function.

Implements openvrml::node_metatype.