DIWNE::Actions::DragNodeAction
#include "DIWNE/Core/diwne_actions.h"
Inherits from DIWNE::Actions::EditorAction, DIWNE::Actions::DiwneAction
Public Functions
| Name | |
|---|---|
| DragNodeAction(NodeEditor & editor, const std::shared_ptr< DiwneObject > & source, std::vector< std::shared_ptr< Node > > nodes) | |
| virtual void | onFrameEnd() override<br>Called at the end of each frame the action is active for, called before onEnd() on the last frame. |
Public Attributes
| Name | |
|---|---|
| std::vector< std::shared_ptr< Node > > | nodes |
Additional inherited members
Public Functions inherited from DIWNE::Actions::EditorAction
| Name | |
|---|---|
| EditorAction(NodeEditor & editor, const std::string & name, const std::shared_ptr< DiwneObject > & source) |
Public Attributes inherited from DIWNE::Actions::EditorAction
| Name | |
|---|---|
| NodeEditor & | editor |
Public Functions inherited from DIWNE::Actions::DiwneAction
| Name | |
|---|---|
| DiwneAction(const std::string & name, const std::shared_ptr< DiwneObject > & source) | |
| virtual | ~DiwneAction() =default |
| void | end()<br>Marks the action to end at the end of the next frame. |
| bool | hasSameSource(const DiwneAction & action) const<br>Checks whether the source of this and another action are the same. |
| bool | isSource(const DiwneObject * object) const<br>Checks whether passed object is the source of this action (eg. the object that started it. |
| virtual void | onEnd()<br>Called at the end of the frame after the frame in which the action has ended. Called after onFrameEnd(). |
Public Attributes inherited from DIWNE::Actions::DiwneAction
| Name | |
|---|---|
| std::string | name |
| std::weak_ptr< DiwneObject > | source |
Friends inherited from DIWNE::Actions::DiwneAction
| Name | |
|---|---|
| class | DIWNE::InteractionState |
Public Functions Documentation
function DragNodeAction
cpp
inline DragNodeAction(
NodeEditor & editor,
const std::shared_ptr< DiwneObject > & source,
std::vector< std::shared_ptr< Node > > nodes
)inline DragNodeAction(
NodeEditor & editor,
const std::shared_ptr< DiwneObject > & source,
std::vector< std::shared_ptr< Node > > nodes
)function onFrameEnd
cpp
virtual void onFrameEnd() overridevirtual void onFrameEnd() overrideCalled at the end of each frame the action is active for, called before onEnd() on the last frame.
Reimplements: DIWNE::Actions::DiwneAction::onFrameEnd
Public Attributes Documentation
variable nodes
cpp
std::vector< std::shared_ptr< Node > > nodes;std::vector< std::shared_ptr< Node > > nodes;Updated on 2026-05-21 at 15:39:36 +0000