# IRsDadApplicator Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetObjectTranslationMode ([out, retval] RtDadApplicatorObjTranslation *pMode)
HRESULT | GetDefaultTarget ([in] RtDadApplyMode dwMode,[in] IRsObject **ppTargetObj)
HRESULT | Apply ([in] RtDadApplyMode dwMode,[in] IRsObject *pLoadedObj,[in] IRsObject *pTarget)

## Detailed Description

IRsDadApplicator is a general interface for applying loaded object to graph item.

- Implement this interface to your file IO loader to allow D&D custom handling for views,...

## Member Function Documentation

HRESULT IRsDadApplicator::GetObjectTranslationMode | ( | [out, retval] RtDadApplicatorObjTranslation * | pMode | ) |

Get object preferred translation mode for picking objects.

Parameters:

  | pMode | [out, retval] Preferred translation mode.

HRESULT IRsDadApplicator::GetDefaultTarget | ( | [in] RtDadApplyMode | dwMode,
|  | [in] IRsObject ** | ppTargetObj |
| ) |  |  |

Get default target for specified event.

Parameters:

  | dwMode | [in] Mode for which default target is requested.
  | ppTargetObj | [in] Default target object (selection etc).

HRESULT IRsDadApplicator::Apply | ( | [in] RtDadApplyMode | dwMode,
|  | [in] IRsObject * | pLoadedObj,
|  | [in] IRsObject * | pTarget |
| ) |  |  |

Perform default apply (to selection, ...) when no other apply can be used.

Parameters:

  | pLoadedObj | [in] Object to apply.
  | dwMode | [in] Mode in which apply should happen.
  | pTarget | [in] Target of the apply.