Skip to content

WorkspaceNode

#include "GUI/Elements/Nodes/WorkspaceElements.h"

Inherits from DIWNE::Node, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >

Inherited by WorkspaceNodeWithCoreData

Public Functions

Name
WorkspaceNode(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const topLabel ="Header", std::string const middleLabel ="Content")
~WorkspaceNode()
virtual boolbeforeContent() override
virtual boolbottomContent() override
virtual boolbypassFocusForInteractionAction() override
virtual voiddeleteAction() override
virtual voiddrawMenuDelete()
boolgetDuplicateNode() const
std::stringgetMiddleLabel()
boolgetRemoveFromWorkspace() const
std::stringgetTopLabel()
virtual boolleftContent() override
virtual boolmiddleContent() override
virtual voidpopupContent()<br>Content of popup menu raise on this object.
virtual boolrightContent() override
voidsetDuplicateNode(bool value)
voidsetMiddleLabel(std::string label)
voidsetRemoveFromWorkspace(bool value)
voidsetTopLabel(std::string label)
virtual booltopContent() override

Public Attributes

Name
boolm_duplicateNode
boolm_removeFromWorkspaceWindow

Protected Attributes

Name
std::stringm_middleLabel
std::stringm_topLabel

Additional inherited members

Public Functions inherited from DIWNE::Node

Name
Node(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const labelDiwne ="DiwneNode")<br>Default constructor.
virtual~Node()<br>Default destructor.
virtual boolafterEndDiwne() override
virtual boolallowDrawing() override<br>Decision maker whether object should be drawn (not outside of window for example)
virtual boolbeforeBeginDiwne() override
virtual voidbegin() override
boolbottomContentDiwne()
virtual boolcontent() override
voiddeleteActionDiwne()
template <typename T &gt; <br>booldrawNodeDiwne(DrawModeNodePosition nodePosMode =DrawModeNodePosition::OnItsPosition, DrawMode drawMode =DrawMode::Interacting)
virtual voidend() override
virtual DIWNE::DiwneActiongetDragActionType() const
virtual DIWNE::DiwneActiongetHoldActionType() const
DIWNE::ID constgetId() const
ImVec2getNodePositionDiwne() const
ImRectgetNodeRectDiwne() const
ImVec2getNodeRectSizeDiwne() const
virtual ImRectgetRectDiwne() const
boolgetRender() const
virtual DIWNE::DiwneActiongetTouchActionType() const
boolleftContentDiwne()
boolmiddleContentDiwne()
Node &operator=(const Node & other)<br>Assignment operator.
virtual boolprocessDrag() override
virtual boolprocessSelect() override
virtual boolprocessUnselect() override
boolrightContentDiwne()
voidsetNodePositionDiwne(ImVec2 const & position)
voidsetRender(bool render)
virtual boolsetSelected(const bool selected) override
booltopContentDiwne()
voidtranslateNodePositionDiwne(ImVec2 const amount)
virtual voidupdateSizes() override

Public Attributes inherited from DIWNE::Node

Name
boolm_drawAnyway

Protected Attributes inherited from DIWNE::Node

Name
ImRectm_bottomRectDiwne
floatm_centerDummySpace <br>Rectangle of parts of node in diwne.
ImRectm_leftRectDiwne
ImRectm_middleRectDiwne
ImVec2m_nodePositionDiwne
DrawModeNodePositionm_nodePosMode
boolm_render <br>used to hide nodes in tutorial scenes (action "toggleNodeWorkspaceVisibility")
ImRectm_rightRectDiwne
boolm_toDelete <br>Set to true after node delete action.
ImRectm_topRectDiwne

Public Functions inherited from DIWNE::DiwneObject

Name
DiwneObject(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const labelDiwne)<br>Constructor.
virtual~DiwneObject() =default
virtual boolafterContent()
virtual boolafterContentDiwne()
virtual boolafterEnd()
virtual boolafterEndDiwne()
virtual boolallowDrawing()<br>Decision maker whether object should be drawn (not outside of window for example)
virtual boolallowInteraction()<br>Decision maker whether object can interact (not include content elements)
virtual boolallowProcessDrag()
virtual boolallowProcessFocused()
virtual boolallowProcessFocusedForInteraction()
virtual boolallowProcessHold()
virtual boolallowProcessRaisePopup()
virtual boolallowProcessSelect()
virtual boolallowProcessUnhold()
virtual boolallowProcessUnselect()
virtual boolbeforeBegin()
virtual boolbeforeBeginDiwne()
virtual boolbeforeContentDiwne()
virtual voidbegin() =0
virtual boolbypassDragAction()
virtual boolbypassFocusAction()
virtual boolbypassHoldAction()
virtual boolbypassRaisePopupAction()
virtual boolbypassSelectAction()
virtual boolbypassTouchAction()
virtual boolbypassUnholdAction()
virtual boolbypassUnselectAction()
virtual boolcontent()
virtual boolcontentDiwne()
virtual booldrawDiwne(DrawMode drawMode =DrawMode::Interacting)<br>Main function for drawing object and deal with interactions.
virtual voidend() =0
virtual boolfinalize()
virtual boolfinalizeDiwne()
virtual DIWNE::DiwneActiongetDragActionType() const =0
virtual DIWNE::DiwneActiongetHoldActionType() const =0
DIWNE::ID constgetIdDiwne() const
virtual ImRectgetRectDiwne() const =0
virtual boolgetSelectable()
virtual boolgetSelected() const<br>Getter of selection state.
virtual DIWNE::DiwneActiongetTouchActionType() const =0
virtual boolinitialize()
virtual boolinitializeDiwne()
virtual boolinteractionBeginInLastDraw()
virtual boolinteractionEndInLastDraw()
virtual boolprocessDrag()
virtual boolprocessFocused()
virtual boolprocessFocusedForInteraction()
virtual boolprocessHold()
virtual boolprocessInteractions()
virtual boolprocessInteractionsAlways()
virtual boolprocessInteractionsDiwne()
virtual boolprocessObjectDrag()
virtual boolprocessObjectFocused()
virtual boolprocessObjectFocusedForInteraction()
virtual boolprocessObjectHold()
virtual boolprocessObjectSelect()
virtual boolprocessObjectUnhold()
virtual boolprocessObjectUnselect()
virtual boolprocessRaisePopupDiwne()
virtual boolprocessSelect()
virtual boolprocessShowPopupDiwne()
virtual boolprocessUnhold()
virtual boolprocessUnselect()
virtual voidsetSelectable(bool const selectable)
virtual boolsetSelected(bool const selected)
voidshowTooltipLabel(std::string const & label, ImColor const && color)<br>Show a colored text for example for immediate hints.
virtual voidupdateSizes()

Public Attributes inherited from DIWNE::DiwneObject

Name
DIWNE::Diwne &diwne
DrawModem_drawMode
boolm_focused
boolm_focusedForInteraction
DIWNE::ID constm_idDiwne
boolm_inner_interaction_happen
boolm_inner_interaction_happen_previous_draw
boolm_isActive
boolm_isDragged
boolm_isHeld
std::string constm_labelDiwne
std::string constm_popupIDDiwne
boolm_selectable
boolm_selected

Public Functions Documentation

function WorkspaceNode

cpp
WorkspaceNode(
    DIWNE::Diwne & diwne,
    DIWNE::ID id,
    std::string const topLabel ="Header",
    std::string const middleLabel ="Content"
)
WorkspaceNode(
    DIWNE::Diwne & diwne,
    DIWNE::ID id,
    std::string const topLabel ="Header",
    std::string const middleLabel ="Content"
)

function ~WorkspaceNode

cpp
~WorkspaceNode()
~WorkspaceNode()

function beforeContent

cpp
virtual bool beforeContent() override
virtual bool beforeContent() override

Reimplements: DIWNE::DiwneObject::beforeContent

Reimplemented by: WorkspaceOperator::beforeContent, WorkspaceOperator::beforeContent, WorkspaceSequence::beforeContent, WorkspaceTransformation::beforeContent

is called first inside of object

function bottomContent

cpp
virtual bool bottomContent() override
virtual bool bottomContent() override

Reimplements: DIWNE::Node::bottomContent

function bypassFocusForInteractionAction

cpp
virtual bool bypassFocusForInteractionAction() override
virtual bool bypassFocusForInteractionAction() override

Reimplements: DIWNE::DiwneObject::bypassFocusForInteractionAction

action identified as focusing on object for interacting with it

function deleteAction

cpp
virtual void deleteAction() override
virtual void deleteAction() override

Reimplements: DIWNE::Node::deleteAction

Reimplemented by: WorkspaceTransformation::deleteAction

function drawMenuDelete

cpp
virtual void drawMenuDelete()
virtual void drawMenuDelete()

Reimplemented by: WorkspaceTransformation::drawMenuDelete

function getDuplicateNode

cpp
inline bool getDuplicateNode() const
inline bool getDuplicateNode() const

function getMiddleLabel

cpp
inline std::string getMiddleLabel()
inline std::string getMiddleLabel()

function getRemoveFromWorkspace

cpp
inline bool getRemoveFromWorkspace() const
inline bool getRemoveFromWorkspace() const

function getTopLabel

cpp
inline std::string getTopLabel()
inline std::string getTopLabel()

function leftContent

cpp
virtual bool leftContent() override
virtual bool leftContent() override

Reimplements: DIWNE::Node::leftContent

Reimplemented by: WorkspaceCycle::leftContent, WorkspaceNodeWithCoreDataWithPins::leftContent, WorkspaceAngleAxisToQuat::leftContent

function middleContent

cpp
virtual bool middleContent() override
virtual bool middleContent() override

Reimplements: DIWNE::Node::middleContent

Reimplemented by: WorkspaceModel::middleContent, WorkspaceOperator::middleContent, WorkspaceOperator::middleContent, WorkspaceScreen::middleContent, WorkspaceSequence::middleContent, WorkspaceCamera::middleContent, WorkspaceCycle::middleContent, WorkspaceTransformation::middleContent

function popupContent

cpp
virtual void popupContent()
virtual void popupContent()

Content of popup menu raise on this object.

Reimplements: DIWNE::DiwneObject::popupContent

Reimplemented by: WorkspaceModel::popupContent, WorkspaceSequence::popupContent, WorkspaceCamera::popupContent, WorkspaceNodeWithCoreData::popupContent, WorkspaceScreen::popupContent, WorkspaceTransformation::popupContent

function rightContent

cpp
virtual bool rightContent() override
virtual bool rightContent() override

Reimplements: DIWNE::Node::rightContent

Reimplemented by: WorkspaceCycle::rightContent, WorkspaceNodeWithCoreDataWithPins::rightContent

function setDuplicateNode

cpp
inline void setDuplicateNode(
    bool value
)
inline void setDuplicateNode(
    bool value
)

function setMiddleLabel

cpp
inline void setMiddleLabel(
    std::string label
)
inline void setMiddleLabel(
    std::string label
)

function setRemoveFromWorkspace

cpp
inline void setRemoveFromWorkspace(
    bool value
)
inline void setRemoveFromWorkspace(
    bool value
)

function setTopLabel

cpp
inline void setTopLabel(
    std::string label
)
inline void setTopLabel(
    std::string label
)

function topContent

cpp
virtual bool topContent() override
virtual bool topContent() override

Reimplements: DIWNE::Node::topContent

Reimplemented by: WorkspaceModel::topContent, WorkspaceOperator::topContent, WorkspaceOperator::topContent, WorkspaceScreen::topContent, WorkspaceSequence::topContent, WorkspaceCamera::topContent, WorkspaceCycle::topContent, WorkspaceNodeWithCoreData::topContent, WorkspaceTransformation::topContent

Public Attributes Documentation

variable m_duplicateNode

cpp
bool m_duplicateNode = false;
bool m_duplicateNode = false;

variable m_removeFromWorkspaceWindow

cpp
bool m_removeFromWorkspaceWindow;
bool m_removeFromWorkspaceWindow;

Protected Attributes Documentation

variable m_middleLabel

cpp
std::string m_middleLabel;
std::string m_middleLabel;

variable m_topLabel

cpp
std::string m_topLabel;
std::string m_topLabel;

Updated on 2024-03-16 at 19:15:00 +0000