ufe 6.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
Ufe::NamedSelection Namespace Reference

Typedefs

typedef std::shared_ptr< SelectionPtr
 

Functions

const Ptrget (const std::string &name)
 
void remove (const std::string &name)
 

Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Selection> Ufe::NamedSelection::Ptr

Definition at line 34 of file namedSelection.h.

Function Documentation

◆ get()

const Ptr & Ufe::NamedSelection::get ( const std::string &  name)

This function can be used to create a named selection singleton that can be shared and used across all viewers and editors. The first call to get with a given name will create the selection singleton. Subsequent calls to get with the same name will return this selection singleton. This selection object can be used to pass around UFE data.

Parameters
nameName of the selection singleton.
Returns
The named selection.

◆ remove()

void Ufe::NamedSelection::remove ( const std::string &  name)

If a named selection exists with the given name, it is removed from the internal cache. When the final shared_ptr to this selection is released it will be automatically destroyed.

Parameters
nameName of the selection singleton to remove.