Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

ImageTexture Class Reference

Represents ImageTexture node instances. More...

Inheritance diagram for ImageTexture:

AbstractTexture AbstractBase TextureNode Node Node List of all members.

Public Methods

 ImageTexture (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~ImageTexture () throw ()
 Destructor.

virtual void render (Viewer &viewer, VrmlRenderContext context)
 Render the node.

virtual size_t nComponents () const throw ()
virtual size_t width () const throw ()
virtual size_t height () const throw ()
virtual size_t nFrames () const throw ()
virtual const unsigned char * pixels () const throw ()

Private Methods

void processSet_url (const FieldValue &mfstring, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_url eventIn handler.


Private Attributes

MFString url
Imageimage
Viewer::TextureObject texObject

Friends

class ImageTextureClass

Detailed Description

Represents ImageTexture node instances.


Constructor & Destructor Documentation

ImageTexture const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node.
scope the Scope to which the node belongs.

~ImageTexture   throw () [virtual]
 

Destructor.


Member Function Documentation

void processSet_url const FieldValue   mfstring,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_url eventIn handler.

Parameters:
mfstring an MFString value.
timestamp the current time.
Exceptions:
std::bad_cast if mfstring is not an MFString.
std::bad_alloc if memory allocation fails.

void render Viewer   viewer,
VrmlRenderContext    context
[virtual]
 

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from Node.