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

MovieTexture Class Reference

MovieTexture node instances. More...

Inheritance diagram for MovieTexture:

AbstractTexture AbstractBase TextureNode Node Node List of all members.

Public Methods

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

virtual ~MovieTexture () throw ()
 Destructor.

virtual MovieTexture * toMovieTexture () const
void update (double time)
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

virtual void initializeImpl (double timestamp) throw ()
 Initialize.

void processSet_loop (const FieldValue &sfbool, double timestamp) throw (std::bad_cast)
 set_loop eventIn handler.

void processSet_speed (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_speed eventIn handler.

void processSet_startTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast)
 set_startTime eventIn handler.

void processSet_stopTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast)
 set_stopTime eventIn handler.

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


Private Attributes

SFBool loop
SFFloat speed
SFTime startTime
SFTime stopTime
MFString url
SFTime duration
SFBool active
Imageimage
int frame
int lastFrame
double lastFrameTime
Viewer::TextureObject texObject

Friends

class MovieTextureClass

Detailed Description

MovieTexture node instances.


Constructor & Destructor Documentation

MovieTexture const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~MovieTexture   throw () [virtual]
 

Destructor.


Member Function Documentation

void initializeImpl double    timestamp throw () [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.

Reimplemented from Node.

void processSet_loop const FieldValue   sfbool,
double    timestamp
throw (std::bad_cast) [private]
 

set_loop eventIn handler.

Parameters:
sfbool an SFBool value.
timestamp the current time.
Exceptions:
std::bad_cast if sfbool is not an SFBool.

void processSet_speed const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_speed eventIn handler.

Parameters:
sffloat an SFFloat value.
timestamp the current time.
Exceptions:
std::bad_cast if sffloat is not an SFFloat.

void processSet_startTime const FieldValue   sftime,
double    timestamp
throw (std::bad_cast) [private]
 

set_startTime eventIn handler.

Parameters:
sftime an SFTime value.
timestamp the current time.
Exceptions:
std::bad_cast if sftime is not an SFTime.

void processSet_stopTime const FieldValue   sftime,
double    timestamp
throw (std::bad_cast) [private]
 

set_stopTime eventIn handler.

Parameters:
sftime an SFTime value.
timestamp the current time.
Exceptions:
std::bad_cast if sftime is not an SFTime.

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.

Render a frame if there is one available.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from Node.