AlTextureNode
 
 
 

Dag node class for solid textures.

Synopsis

#include <AlTextureNode.h>
class AlTextureNode : public AlDagNode
virtual AlObjectType	type() const;
virtual AlObject*	copyWrapper() const;
virtual	~AlTextureNode();
virtual boolean	isInstanceable();
AlTexture*	texture() const;
AlTexture*	texture(AlTM&) const;

Description

AlTextureNode is the class used to access and manipulate the transformations on solid textures within the DAG. This class behaves like other DAG nodes (see AlDagNode for a description of the usage and purpose of DAG nodes) except that you are not able to instantiate or create one.

AlTextureNode::~AlTextureNode()

Description

Deletes an AlTextureNode wrapper object.

AlObject* AlTextureNode::copyWrapper() const

Description

Returns an exact duplicate of this AlTextureNode.

AlObjectType AlTextureNode::type() const

Description

Returns the class identifier kTextureNodeType.

boolean AlTextureNode::isInstanceable()

Description

Returns FALSE. An AlTextureNode is not an instanceable DAG node.

AlTexture* AlTextureNode::texture() const

Description

Returns a pointer to the texture data structure which can be used to access the geometry of the texture. Returns NULL if this object is invalid or if there is no texture attached to this node.

AlTexture* AlTextureNode::texture(AlTM& tm) const

Description

Returns a pointer to the texture data structure that can be used to access the fields of the texture. The AlTM will be updated with the textureNode’s TM.

Arguments

> tm - the transformation matrix to be updated