Public Member Functions | |
| HRESULT | DetectObjectType ([in] IRsNode *pNode,[out] GUID *pgType,[out] RtFloat *pfWeight) |
| 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.
| pNode | [in] Node to test. | |
| pgType | [out] Object type guid. | |
| pfWeight | [out] Object type weight. |
1.5.5