A utility aspect class used to log window events and change the debug texture rendered to the viewport it manages.
More...
|
|
ToyMaker::SignalObserver | mObserveWindowResized { *this, "WindowResizedObserved", [this]() { std::cout << "RenderDebugViewer: Window was resized\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowMinimized { *this, "WindowMinimizedObserved", [this]() { std::cout << "RenderDebugViewer: Window was minimized\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowMaximized { *this, "WindowMaximizedObserved", [this]() { std::cout << "RenderDebugViewer: Window was maximized\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowMoved { *this, "WindowMovedObserved", [this]() { std::cout << "RenderDebugViewer: Window was moved\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowMouseEntered { *this, "WindowMouseEnteredObserved", [this]() { std::cout << "RenderDebugViewer: Mouse entered window\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowMouseExited { *this, "WindowMouseExitedObserved", [this]() { std::cout << "RenderDebugViewer: Mouse left window\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowCloseRequested { *this, "WindowCloseRequestedObserved", [this]() { std::cout << "RenderDebugViewer: Window close requested\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowSizeChanged { *this, "WindowSizeChangedObserved", [this]() { std::cout << "RenderDebugViewer: Window's size was changed\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowRestored { *this, "WindowRestoredObserved", [this]() { std::cout << "RenderDebugViewer: Window was restored\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowShown { *this, "WindowShownObserved", [this]() { std::cout << "RenderDebugViewer: Window was shown\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowExposed { *this, "WindowExposedObserved", [this]() { std::cout << "RenderDebugViewer: Window was exposed\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowKeyFocusGained { *this, "WindowKeyFocusGainedObserved", [this]() { std::cout << "RenderDebugViewer: Window gained key focus\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowKeyFocusLost { *this, "WindowKeyFocusLostObserved", [this]() { std::cout << "RenderDebugViewer: Window lost key focus\n"; this->printWindowProps(); } } |
|
ToyMaker::SignalObserver | mObserveWindowKeyFocusOffered { *this, "WindowKeyFocusOffered", [this]() { std::cout << "RenderDebugViewer: Window was offered key focus\n"; this->printWindowProps(); } } |
|
|
bool | onUpdateGamma (const ToyMaker::ActionData &actionData, const ToyMaker::ActionDefinition &actionDefinition) |
|
bool | onUpdateExposure (const ToyMaker::ActionData &actionData, const ToyMaker::ActionDefinition &actionDefinition) |
|
bool | onRenderNextTexture (const ToyMaker::ActionData &actionData, const ToyMaker::ActionDefinition &actionDefinition) |
|
| SimObjectAspect (int explicitlyInitializeMe) |
|
| BaseSimObjectAspect (const BaseSimObjectAspect &other)=delete |
|
| BaseSimObjectAspect (BaseSimObjectAspect &&other)=delete |
| SimObject & | getSimObject () |
| | Returns the sim object that this aspect is attached to.
|
| template<typename TComponent> |
| void | addComponent (const TComponent &component) |
| | Adds a component of some type to the underlying entity.
|
| template<typename TComponent> |
| bool | hasComponent () |
| | Tests whether a component of some specific type is present on the object.
|
| template<typename TComponent> |
| void | updateComponent (const TComponent &component) |
| | Updates the value of a component belonging to this object to a new one.
|
| template<typename TComponent> |
| TComponent | getComponent (const float simulationProgress=1.f) const |
| | Gets the value of a component belonging to this object.
|
| template<typename TComponent> |
| void | removeComponent () |
| | Removes a component of some type belonging to the underlying SimObject.
|
| void | addAspect (const nlohmann::json &jsonAspectProperties) |
| | Adds a new aspect to the underlying SimObject constructed based on its properties in JSON.
|
| void | addAspect (const BaseSimObjectAspect &aspect) |
| | Adds a new aspect to the underlying SimObject copied from an already existing aspect.
|
| template<typename TSimObjectAspect> |
| bool | hasAspect () const |
| | Tests whether an aspect of a particular type is attached to the underlying SimObject.
|
| bool | hasAspect (const std::string &aspectType) const |
| | Tests whether an aspect of a particular type is attached to the underlying SimObject.
|
| template<typename TSimObjectAspect> |
| TSimObjectAspect & | getAspect () |
| | Gets an aspect of a particular type belonging to the underlying SimObject.
|
| BaseSimObjectAspect & | getAspect (const std::string &aspectType) |
| | Gets (a base class reference to) an aspect of a particular type belonging to the underlying SimObject.
|
| template<typename TSimObjectAspect> |
| void | removeAspect () |
| | Removes an aspect from the underlying SimObject.
|
| void | addOrReplaceAspect (const BaseSimObjectAspect &aspect) |
| | Adds or replaces an aspect on the underlying SimObject with a new aspect constructed as a copy of another.
|
| void | addOrReplaceAspect (const nlohmann::json &jsonAspectProperties) |
| | Adds or replaces an aspect on the underlying SimObject with a new aspect constructed from its JSON description.
|
| std::weak_ptr< FixedActionBinding > | declareFixedActionBinding (const std::string &context, const std::string &action, std::function< bool(const ActionData &, const ActionDefinition &)>) |
| | Binds some method (or any function) present on this object to an action generated by the InputManager.
|
| EntityID | getEntityID () const |
| | Gets the ID of the ECSWorld Entity belonging to our SimObject.
|
| std::weak_ptr< ECSWorld > | getWorld () const |
| | Gets a weak reference to the ECSWorld to which our SimObject's entity belongs.
|
A utility aspect class used to log window events and change the debug texture rendered to the viewport it manages.