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::GlobalSelection Namespace Reference

Typedefs

typedef std::shared_ptr< ObservableSelectionPtr
 

Functions

void initializeInstance (const Ptr &globalSelection)
 
const Ptrget ()
 

Typedef Documentation

◆ Ptr

Definition at line 35 of file globalSelection.h.

Function Documentation

◆ get()

const Ptr & Ufe::GlobalSelection::get ( )
Returns
The global observable selection

◆ initializeInstance()

void Ufe::GlobalSelection::initializeInstance ( const Ptr globalSelection)

Initialize the observable selection singleton. This selection is useful for applications where user operations are done on a single selection that is shared by all viewers and editors. Initializing the global selection should be done on startup, and for proper selection lifescope management should be cleared with a null pointer on exit. If the current global selection is non-null, the argument must be null, to prevent initializing the global selection more than once.

Parameters
globalSelectionThe single global selection for the application.
Exceptions
std::invalid_argumentif the argument and current global selection are both non-null.