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

Public Member Functions | |
| virtual | ~geometry_node ()=0 throw () |
| Destroy. | |
| void | render_geometry (viewer &v, rendering_context context) |
| Insert geometry into a viewer. | |
| bool | emissive () const throw () |
| Indicates whether the geometry should be drawn with the emissive color. | |
| const color_node * | color () const throw () |
| Get the color node (if any) associated with this geometry. | |
Protected Member Functions | |
| geometry_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) throw () | |
| Construct. | |
Private Member Functions | |
| virtual void | do_render_geometry (viewer &v, rendering_context context) |
render_geometry implementation. | |
| virtual bool | do_emissive () const throw () |
emissive implementation. | |
| virtual const color_node * | do_color () const throw () |
| Get the color node (if any) associated with this geometry. | |
| virtual geometry_node * | to_geometry () throw () |
Cast to a geometry_node. | |
Abstract base class for geometry nodes.
| openvrml::geometry_node::~geometry_node | ( | ) | throw () [pure virtual] |
Destroy.
| openvrml::geometry_node::geometry_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. |
| void openvrml::geometry_node::render_geometry | ( | viewer & | v, |
| rendering_context | context | ||
| ) |
Insert geometry into a viewer.
| [in,out] | v | viewer. |
| [in] | context | rendering context. |
| bool openvrml::geometry_node::emissive | ( | ) | const throw () |
Indicates whether the geometry should be drawn with the emissive color.
true if the geometry should be drawn with the emissive color; false otherwise (if the geometry should be drawn with the diffuse color). | const openvrml::color_node * openvrml::geometry_node::color | ( | ) | const throw () |
Get the color node (if any) associated with this geometry.
color_node associated associated with this geometry, or 0 if there is no such node.| void openvrml::geometry_node::do_render_geometry | ( | viewer & | v, |
| rendering_context | context | ||
| ) | [private, virtual] |
render_geometry implementation.
| [in,out] | v | viewer. |
| [in] | context | rendering context. |
| bool openvrml::geometry_node::do_emissive | ( | ) | const throw () [private, virtual] |
emissive implementation.
false. | const openvrml::color_node * openvrml::geometry_node::do_color | ( | ) | const throw () [private, virtual] |
Get the color node (if any) associated with this geometry.
color_node associated associated with this geometry, or 0 if there is no such node. | openvrml::geometry_node * openvrml::geometry_node::to_geometry | ( | ) | throw () [private, virtual] |
Cast to a geometry_node.
geometry_node. Reimplemented from openvrml::node.