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

PixelTexture Class Reference

Represents PixelTexture node instances. More...

Inheritance diagram for PixelTexture:

AbstractTexture AbstractBase TextureNode Node Node List of all members.

Public Methods

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

virtual ~PixelTexture () 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_image (const FieldValue &sfimage, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_image eventIn handler.


Private Attributes

SFImage image
Viewer::TextureObject texObject

Friends

class PixelTextureClass

Detailed Description

Represents PixelTexture node instances.


Constructor & Destructor Documentation

PixelTexture const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~PixelTexture   throw () [virtual]
 

Destructor.


Member Function Documentation

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

set_image eventIn handler.

Parameters:
sfimage an SFImage value.
timestamp the current time.
Exceptions:
std::bad_cast if sfimage is not an SFImage.
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.