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
observableSelection.h
Go to the documentation of this file.
1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.11-windows/ufe/include/observableSelection.h"
2#ifndef _ufeObservableSelection
3#define _ufeObservableSelection
4// ===========================================================================
5// Copyright 2020 Autodesk, Inc. All rights reserved.
6//
7// Use of this software is subject to the terms of the Autodesk license
8// agreement provided at the time of installation or download, or which
9// otherwise accompanies this software in either electronic or hard copy form.
10// ===========================================================================
11
12#include "selection.h"
13#include "subject.h"
14
15#include <memory> // unique_ptr
16
18
19class SelectionCompositeNotification;
20
22
31{
32public:
33
36
39
41
56
59 bool inCompositeNotification() const override;
60
61protected:
62
64
67 void beginNotificationGuard() override;
68 void endNotificationGuard() override;
70
75 void postAppend(const SceneItem::Ptr& item) override;
76
81 void postRemove(const SceneItem::Ptr& item) override;
82
89 const SceneItem::Ptr& position, const SceneItem::Ptr& item
90 ) override;
91
93 void postClear(const Selection& previous) override;
94
96 void postReplaceWith(const Selection& previous) override;
97
98private:
99
101
103 std::unique_ptr<SelectionCompositeNotification> fCompositeNotification;
104};
105
106}
107
108#endif /* _ufeObservableSelection */
Observable selection for objects in the scene.
ObservableSelection(const ObservableSelection &)
void postRemove(const SceneItem::Ptr &item) override
ObservableSelection & operator=(const Selection &)
void beginNotificationGuard() override
void endNotificationGuard() override
ObservableSelection & operator=(Selection &&rhs)
ObservableSelection(const Selection &)
ObservableSelection & operator=(ObservableSelection &&rhs)
ObservableSelection(Selection &&)
void postReplaceWith(const Selection &previous) override
Method called after replacing the observable selection.
void postAppend(const SceneItem::Ptr &item) override
ObservableSelection & operator=(const ObservableSelection &)
void postClear(const Selection &previous) override
Method called after clearing the observable selection.
~ObservableSelection() override
Destructor.
std::unique_ptr< SelectionCompositeNotification > fCompositeNotification
Composite notification, when within the scope of a guard.
ObservableSelection(ObservableSelection &&)
ObservableSelection()
Constructor.
bool inCompositeNotification() const override
void postInsert(const SceneItem::Ptr &position, const SceneItem::Ptr &item) override
std::shared_ptr< SceneItem > Ptr
Definition: sceneItem.h:44
Selection list for objects in the scene.
Definition: selection.h:28
Observer pattern Subject class.
Definition: subject.h:41
#define UFE_NS_DEF
Definition: ufe.h:35
#define UFE_SDK_DECL
Definition: ufeExport.h:36