Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

openvrml::appearance_node Class Reference

Abstract base class for appearance nodes. More...

Inheritance diagram for openvrml::appearance_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::appearance_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~appearance_node ()=0 throw ()
 Destroy.

virtual const appearance_nodeto_appearance () const throw ()
 Cast to an appearance_node.

virtual appearance_nodeto_appearance () throw ()
 Cast to an appearance_node.

virtual const node_ptrmaterial () const=0 throw ()
 Get the material node associated with this appearance node.

virtual const node_ptrtexture () const=0 throw ()
 Get the texture node associated with this appearance node.

virtual const node_ptrtexture_transform () const=0 throw ()
 Get the texture transform node associated with this appearance node.


Protected Member Functions

 appearance_node (const node_type &type, const scope_ptr &scope) throw ()
 Construct.


Detailed Description

Abstract base class for appearance nodes.


Constructor & Destructor Documentation

openvrml::appearance_node::appearance_node const node_type type,
const scope_ptr scope
throw () [protected]
 

Construct.

Parameters:
type the node_type associated with the node.
scope the Scope the node belongs to.

Reimplemented in openvrml::vrml97_node::appearance_node.


Member Function Documentation

const node_ptr & openvrml::appearance_node::material  )  const throw () [pure virtual]
 

Get the material node associated with this appearance node.

Returns:
the material_node associated with this appearance_node.

Implemented in openvrml::vrml97_node::appearance_node.

const node_ptr & openvrml::appearance_node::texture  )  const throw () [pure virtual]
 

Get the texture node associated with this appearance node.

Returns:
the texture_node associated with this appearance_node.

Implemented in openvrml::vrml97_node::appearance_node.

const node_ptr & openvrml::appearance_node::texture_transform  )  const throw () [pure virtual]
 

Get the texture transform node associated with this appearance node.

Returns:
the texture_transform_node associated with this appearance_node.

Implemented in openvrml::vrml97_node::appearance_node.

appearance_node * openvrml::appearance_node::to_appearance  )  throw () [virtual]
 

Cast to an appearance_node.

Returns:
a pointer to this appearance_node.

Reimplemented from openvrml::node.

const appearance_node * openvrml::appearance_node::to_appearance  )  const throw () [virtual]
 

Cast to an appearance_node.

Returns:
a pointer to this appearance_node.

Reimplemented from openvrml::node.