| Home | Download | Screen shots | Discussion | Documentation |
|---|
Abstract base class for light nodes. More...
#include <openvrml/node.h>

Public Member Functions | |
| virtual | ~light_node ()=0 throw () |
| Destroy. | |
| float | ambient_intensity () const throw () |
| Ambient intensity. | |
| float | intensity () const throw () |
| Intensity. | |
| bool | on () const throw () |
| “On” state. | |
| const openvrml::color & | color () const throw () |
| Color. | |
Protected Member Functions | |
| light_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) throw () | |
| Construct. | |
Private Member Functions | |
| virtual light_node * | to_light () throw () |
Cast to a light_node. | |
| virtual float | do_ambient_intensity () const =0 throw () |
ambient_intensity implementation. | |
| virtual float | do_intensity () const =0 throw () |
intensity implementation. | |
| virtual bool | do_on () const =0 throw () |
on implementation. | |
| virtual const openvrml::color & | do_color () const =0 throw () |
color implementation. | |
Abstract base class for light nodes.
| openvrml::light_node::~light_node | ( | ) | throw () [pure virtual] |
Destroy.
| openvrml::light_node::light_node | ( | const node_type & | type, |
| const boost::shared_ptr< openvrml::scope > & | scope | ||
| ) | throw () [protected] |
Construct.
| [in] | type | the node_type associated with the node. |
| [in] | scope | the scope the node belongs to. |
| float openvrml::light_node::ambient_intensity | ( | ) | const throw () |
| float openvrml::light_node::intensity | ( | ) | const throw () |
| bool openvrml::light_node::on | ( | ) | const throw () |
| const openvrml::color & openvrml::light_node::color | ( | ) | const throw () |
| openvrml::light_node * openvrml::light_node::to_light | ( | ) | throw () [private, virtual] |
| float openvrml::light_node::do_ambient_intensity | ( | ) | const throw () [private, pure virtual] |
ambient_intensity implementation.
| float openvrml::light_node::do_intensity | ( | ) | const throw () [private, pure virtual] |
intensity implementation.
| bool openvrml::light_node::do_on | ( | ) | const throw () [private, pure virtual] |
on implementation.
true if the light is on; false otherwise. | const openvrml::color & openvrml::light_node::do_color | ( | ) | const throw () [private, pure virtual] |
color implementation.