v2.44
 
IObjectWithLayeredMaterial Interface Reference

Represents an object which has an associated layered material. More...

Public Member Functions

HRESULT GetLayeredMaterialIdGroupPair ([out, retval] LayeredMaterialIdGroupPair *pLayeredMaterialGroupIdPair)
 Gets the associated layered material ID and group.
 
HRESULT GetLayers ([out, retval] ILayerCollection **ppLayerCollection)
 Gets the material layers.
 
HRESULT HasLayeredMaterial ([out, retval] VARIANT_BOOL *pResult)
 Queries if the object has a layered material associated with it.
 

Properties

int LayeredMaterialId [get]
 The layered material ID. If the object has no material associated with it (HasLayeredMaterial() returns FALSE), a special value is returned, for which ILayeredMaterialManager::GetLayeredMaterial() returns nullptr.
 

Detailed Description

Represents an object which has an associated layered material.

This interface can be obtained as an additional interface from IModelObject or IEntity with TypeId equals Insulation.

See also
IModelObject, IObjectWithInsulation

Member Function Documentation

◆ GetLayeredMaterialIdGroupPair()

HRESULT GetLayeredMaterialIdGroupPair ( [out, retval] LayeredMaterialIdGroupPair * pLayeredMaterialGroupIdPair)

Gets the associated layered material ID and group.

Deprecated
This method is deprecated, use LayeredMaterialId instead
Returns
A layered material ID and group. If the object has no material associated with it (HasLayeredMaterial() returns FALSE), a special value is returned, for which ILayeredMaterialManager::GetLayeredMaterial() returns nullptr.

◆ GetLayers()

HRESULT GetLayers ( [out, retval] ILayerCollection ** ppLayerCollection)

Gets the material layers.

Returns
A collection of material layers. If the object has no material associated with it (HasLayeredMaterial() returns FALSE), an empty collection is returned.

◆ HasLayeredMaterial()

HRESULT HasLayeredMaterial ( [out, retval] VARIANT_BOOL * pResult)

Queries if the object has a layered material associated with it.

Returns
TRUE if the object has an associated layered material, FALSE otherwise.