Class IDataChannel

3DS Max Plug-In SDK

Class IDataChannel

See Also: Class InterfaceServer, Class Class_ID, Class IFaceDataChannel, Class IFaceDataChannelsEnumCallBack

class IDataChannel : public InterfaceServer

Description:

This class is available in release 4.0 and later only.

A data channel is a homogeneous collection of objects of a user defined type (data objects). Data channels are uniquely identified by a Class_ID. Data channels can be associated with any element type of a 3ds max object: faces or vertexes of Meshes, etc. You can use the macro GetDataChannelInterface(obj) to obtain a pointer to this interface.

Methods:

public:

Prototype:

virtual Class_ID DataChannelID() const =0;

Remarks:

This method returns the unique class ID of the channel.

Prototype:

virtual ULONG Count() const;

Remarks:

This method returns the number of data objects in this channel.

Default Implementation:

{ return 0; }

Prototype:

virtual void DeleteThis() = 0;

Remarks:

Destructor. Deletes self.