NodeImageTexture Class Reference

#include <NodeImageTexture.h>

Inheritance diagram for NodeImageTexture:

Node List of all members.

Public Member Functions

 NodeImageTexture (Scene *scene, Proto *proto)
 NodeImageTexture (const NodeImageTexture &node)
virtual int getType () const
virtual Nodecopy () const
virtual int getNodeClass () const
virtual void setField (int field, FieldValue *value)
void load ()
int isLoaded ()
virtual void bind ()
virtual void unbind ()
void setPath (const std::string newpath)
const std::string getPath ()

Protected Member Functions

virtual ~NodeImageTexture ()

Protected Attributes

unsigned char * _image
int _imageStatus
int _textureWidth
int _textureHeight
int _components
int _textureName
std::string _texturePath

Detailed Description

According to the ImageTexture Node of VRML97 specification.

  ImageTexture { 
  exposedField MFString url     []
  field        SFBool   repeatS TRUE
  field        SFBool   repeatT TRUE
}


Constructor & Destructor Documentation

NodeImageTexture::NodeImageTexture ( Scene scene,
Proto proto 
)

NodeImageTexture::NodeImageTexture ( const NodeImageTexture node  ) 

NodeImageTexture::~NodeImageTexture (  )  [protected, virtual]


Member Function Documentation

virtual int NodeImageTexture::getType (  )  const [inline, virtual]

Returns the Type of a Node in the Node subclasses(here pure virtual). E.g. for the NodeGroup it returns NODE_GROUP

Implements Node.

virtual Node* NodeImageTexture::copy (  )  const [inline, virtual]

Creates a new instance of that Node in the Node subclasses(here pure virtual).

Implements Node.

virtual int NodeImageTexture::getNodeClass (  )  const [inline, virtual]

Returns a NODE_CHILD as a node class (used to validate the scene)

Reimplemented from Node.

void NodeImageTexture::setField ( int  field,
FieldValue value 
) [virtual]

Sets the Field at that index with the specified FieldValue value. Special care is taken if the field is SF-MFNode.

Reimplemented from Node.

void NodeImageTexture::load (  ) 

int NodeImageTexture::isLoaded (  ) 

void NodeImageTexture::bind (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeImageTexture::unbind (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeImageTexture::setPath ( const std::string  newpath  )  [inline]

const std::string NodeImageTexture::getPath (  )  [inline]


Member Data Documentation

unsigned char* NodeImageTexture::_image [protected]

int NodeImageTexture::_imageStatus [protected]

int NodeImageTexture::_textureWidth [protected]

int NodeImageTexture::_textureHeight [protected]

int NodeImageTexture::_components [protected]

int NodeImageTexture::_textureName [protected]

std::string NodeImageTexture::_texturePath [protected]


Generated on Thu Jan 18 10:06:19 2007 for vhdPLUS by  doxygen 1.5.1-p1