Class NURBSTextureChannelSet

3DS Max Plug-In SDK

Class NURBSTextureChannelSet

See Also: Class NURBSTextureChannel, NURBSSurface, Template Class Tab.

class NURBSTextureChannelSet

Description:

This class is available in release 3.0 and later only.

This class holds a table of pointers to all the NURBSTextureChannel data for a surface. There are methods to returns the table data by channel or by index and a method to add a new texture channel.

Friend Classes:

friend class NURBSSurface;

Data Members:

private:

Tab<NURBSTextureChannel*> mTextureChannels;

A table of pointers to the texture channel data.

Methods:

private:

Prototype:

NURBSTextureChannel* GetChannelByIndex(int index);

Remarks:

Returns a pointer to the texture channel object whose index is specified.

Parameters:

int index

The zero based index into the table of texture channels in the set.

Prototype:

NURBSTextureChannel* GetChannel(int channel);

Remarks:

Returns a pointer to the specific texture channel object. If not found a new channel is added with the specified index.

Parameters:

int channel

The channel to get. This is a number in the range 0 and 98 which correspond to 1 to 99 in the user interface.

Prototype:

NURBSTextureChannel* AddChannel(int channel);

Remarks:

Adds the specified channel and returns a pointer to the allocated texture object.

Parameters:

int channel

The texture channel. This is a number in the range 0 and 98 which correspond to 1 to 99 in the user interface.

Prototype:

int NumChannels();

Remarks:

Returns the number of channels in the set.