Responsible for animations saved in the workspace and ensuring that there always is at least one main Animation.
More...
|
|
Animation & | add (Animation anim) |
| Animation & | add (std::string_view name) |
|
iterator | begin () |
|
const_iterator | begin () const |
| void | clear () |
|
iterator | end () |
|
const_iterator | end () const |
|
void | erase (const_iterator position) |
| void | erase (size_t index) |
|
iterator | find (const Animation *anim) |
|
const_iterator | find (const Animation *anim) const |
|
Animation & | get (size_t index) |
| std::vector< Animation * > | get (std::string_view name) |
|
MainAnimation & | getMainAnimation () |
|
const MainAnimation & | getMainAnimation () const |
|
Animation & | insert (const_iterator position, std::string_view name) |
|
Animation & | insert (size_t index, std::string_view name) |
|
WorkspaceAnimations & | operator= (const WorkspaceAnimations &)=delete |
|
WorkspaceAnimations & | operator= (WorkspaceAnimations &&)=delete |
|
Animation & | operator[] (size_t i) |
|
const Animation & | operator[] (size_t i) const |
|
void | setMainAnimation (Animation &anim) |
| | Set specified Animation to be the MainAnimation. A copy of the Animation will be added in case the it has not been added before. The AnimationController in MainAnimation will notify its observers of the animation change.
|
|
size_t | size () const |
|
| WorkspaceAnimations (const WorkspaceAnimations &)=delete |
|
| WorkspaceAnimations (InviwoApplication *app, AnimationManager &manager, AnimationModule &module) |
|
| WorkspaceAnimations (WorkspaceAnimations &&)=delete |
|
virtual void | onStateChanged (AnimationController *, AnimationState, AnimationState) |
|
virtual void | onTimeChanged (AnimationController *, Seconds, Seconds) |
|
| Observer (const Observer &other) |
|
| Observer (Observer &&other) |
|
Observer & | operator= (const Observer &other) |
|
Observer & | operator= (Observer &&other) |
| void | removeObservation (ObservableInterface *observable) |
|
void | removeObservations () |
| virtual | ~Observer () |
|
virtual void | onFirstMoved () |
|
virtual void | onLastMoved () |
|
virtual void | onFirstMoved (Track *) |
|
virtual void | onLastMoved (Track *) |
Responsible for animations saved in the workspace and ensuring that there always is at least one main Animation.
One of its animations is set to be the MainAnimation. The Animation used by MainAnimation must be set through WorkspaceAnimations.
WorkspaceAnimations is responsible for clearing, saving, and loading animations when the workspace is cleared, saved, or loaded. It will also call notifyObserversProcessorNetworkChanged whenever its animations change to enable undo/redo.