# IRsUnknownObjectTypeDetector Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | DetectObjectType ([in] IRsNode *pNode,[out] GUID *pgType,[out] RtFloat *pfWeight)

## Detailed Description

Base class for detecting object types. Detectors for various object types are registred using Object type detector function set.

## Member Function Documentation

HRESULT IRsUnknownObjectTypeDetector::DetectObjectType | ( | [in] IRsNode * | pNode,
|  | [out] GUID * | pgType,
|  | [out] RtFloat * | pfWeight |
| ) |  |  |

Get object type. Function should return object type ID and a priority. Priority provides mechanism for overriding existing detectors.

For example, everything that exports mesh and matrix is a mesh with priority 1. Light is detected by checking light data object connector and returns priority 2 - so everything with light connector will be detected as light (if not overriden) even if it outputs mesh and matrix.

Parameters:

  | pNode | [in] Node to test.
  | pgType | [out] Object type guid.
  | pfWeight | [out] Object type weight.

Returns:
  standard HRESULT processing can be applied to returned value