# IRsSelectionRenderer Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | SetMode ([in] UVEActiveTool mode)
HRESULT | Reset ()
HRESULT | Begin ([in] RtUVcoord &c)
HRESULT | AddPoint ([in] RtUVcoord &c)
HRESULT | End ([in] RtUVcoord &c)
HRESULT | Render ([in] IUnknown *pDevice)

## Detailed Description

Renders shape for lasso or rectangle selection tool, which outlines the area being selected.

- Shape is constructed by progressive adding of drag line points in normalized view coordinates.

## Member Function Documentation

HRESULT IRsSelectionRenderer::SetMode | ( | [in] UVEActiveTool | mode | ) |

Sets the selection mode.

- Only UVET_SelectLasso and UVET_SelectRectangle make sense.

Parameters:

  | mode | [in] Set selection mode.

HRESULT IRsSelectionRenderer::Reset | ( |  | ) |

Clears drag line and deactivates rendering

HRESULT IRsSelectionRenderer::Begin | ( | [in] RtUVcoord & | c | ) |

Activates rendering and adds first point of drag line.

Parameters:

  | c | [in] Activate render and drag line.

HRESULT IRsSelectionRenderer::AddPoint | ( | [in] RtUVcoord & | c | ) |

Adds point of drag line.

Parameters:

  | c | [in] Add point to drag line.

HRESULT IRsSelectionRenderer::End | ( | [in] RtUVcoord & | c | ) |

Adds last point of drag line and deactivate rendering.

Parameters:

  | c | [in] Last point added and deactivate rendering.

HRESULT IRsSelectionRenderer::Render | ( | [in] IUnknown * | pDevice | ) |

Renders the selection shape to specified device.

Parameters:

  | pDevice | [in] Target DX device.