MAXMaterialResourceList

This class encapsulates a list of unique materials found in a given 3D Studio MAX§ scenegraph.

When to use

This class is used by the MAXExporter class.

Interface Methods

Description

~MAXMaterialResourceList

Class destructor

FindIdentical

Searches the resource list to find a name that matches pMaterialName and a Shockwave 3D§ material whose parameters match those of pMAXMultiMaterial
(There are three versions of this method)

GetList

Returns the list of material resources


MAXMaterialResourceList::~MAXMaterialResourceList()

This is the class destructor. Note that this class uses a default constructor.

Parameters:

None

Return values:

None


MAXMaterialResourceList::FindIdentical(CIFXString* pMaterialName)

This method searches the resource list and returns TRUE if it finds a named match to pMaterialName.

Parameters:

pMaterialName

Name of the material resource to be searched for

Return values:

I32


MAXMaterialResourceList::FindIdentical(SearchType InSearchType, CIFXString* pInName

This method searches the resource list and returns true if it finds a named match to a given name.

Parameters:

InSearchType

Specifies whether to search for an identical standard name or identical unique identifier name

pInName

Name of the material resource to be searched for

Return values:

I32


MAXMaterialResourceList::FindIdentical(MAXMultiMaterial* pMAXMultiMaterial)

This method searches the resource list and returns TRUE if it finds a Shockwave 3D material whose parameters match those of pMAXMultiMaterial. Note that while IFXMaterial and MAXMultiMaterial are different classes, they do share many parameter types and the equivalence check is valid only if those shared parameters are equal.

Parameters:

pMAXMultiMaterial

Material for which a parameter match is to be searched for

Return values:

I32


MAXMaterialResourceList::GetList()

This method returns the list of material resources.

Parameters:

None

Return values:

vector<MaterialAtom>*

List of material resources

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.