Workspace::Node
#include "GUI/Workspace/Nodes/Basic/Node.h"
Inherits from DIWNE::Node, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >
Inherited by Workspace::CoreNode
Public Functions
Name | |
---|---|
Node(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const topLabel ="Header", std::string const middleLabel ="Content") | |
virtual | ~Node()<br>Default destructor. |
virtual bool | beforeContent() override |
virtual bool | bottomContent() override |
virtual bool | bypassFocusForInteractionAction() override |
virtual void | deleteAction() override |
virtual void | drawMenuDelete() |
bool | getDuplicateNode() const |
std::string | getMiddleLabel() |
bool | getRemoveFromWorkspace() const |
std::string | getTopLabel() |
virtual bool | leftContent() override |
virtual bool | middleContent() override |
virtual void | popupContent() override<br>Content of popup menu raise on this object. |
virtual bool | rightContent() override |
void | setDuplicateNode(bool value) |
void | setMiddleLabel(std::string label) |
void | setRemoveFromWorkspace(bool value) |
void | setTopLabel(std::string label) |
virtual bool | topContent() override |
Public Attributes
Name | |
---|---|
bool | m_duplicateNode |
bool | m_removeFromWorkspaceWindow |
Protected Attributes
Name | |
---|---|
std::string | m_middleLabel |
std::string | m_topLabel |
Additional inherited members
Public Functions inherited from DIWNE::Node
Name | |
---|---|
virtual bool | afterEndDiwne() override |
virtual bool | allowDrawing() override<br>Decision maker whether object should be drawn (not outside of window for example) |
virtual bool | beforeBeginDiwne() override |
virtual void | begin() override |
bool | bottomContentDiwne() |
virtual bool | content() override |
void | deleteActionDiwne() |
template <typename T > <br>bool | drawNodeDiwne(DrawModeNodePosition nodePosMode =DrawModeNodePosition::OnItsPosition, DrawMode drawMode =DrawMode::Interacting) |
virtual void | end() override |
virtual DIWNE::DiwneAction | getDragActionType() const |
virtual DIWNE::DiwneAction | getHoldActionType() const |
DIWNE::ID const | getId() const |
ImVec2 | getNodePositionDiwne() const |
ImRect | getNodeRectDiwne() const |
ImVec2 | getNodeRectSizeDiwne() const |
virtual ImRect | getRectDiwne() const override |
bool | getRender() const |
virtual DIWNE::DiwneAction | getTouchActionType() const |
bool | leftContentDiwne() |
bool | middleContentDiwne() |
Node & | operator=(const Node & other)<br>Assignment operator. |
virtual bool | processDrag() override |
virtual bool | processSelect() override |
virtual bool | processUnselect() override |
bool | rightContentDiwne() |
void | setNodePositionDiwne(ImVec2 const & position) |
void | setRender(bool render) |
virtual bool | setSelected(const bool selected) override |
bool | topContentDiwne() |
void | translateNodePositionDiwne(ImVec2 const amount) |
virtual void | updateSizes() override |
Public Attributes inherited from DIWNE::Node
Name | |
---|---|
bool | m_drawAnyway |
Protected Attributes inherited from DIWNE::Node
Name | |
---|---|
ImRect | m_bottomRectDiwne |
float | m_centerDummySpace <br>indent value to center the middle part |
ImRect | m_leftRectDiwne |
ImRect | m_middleRectDiwne |
ImVec2 | m_nodePositionDiwne |
DrawModeNodePosition | m_nodePosMode |
bool | m_render <br>used to hide nodes in tutorial scenes (action "toggleNodeWorkspaceVisibility") |
ImRect | m_rightRectDiwne |
bool | m_toDelete <br>Set to true after node delete action. |
ImRect | m_topRectDiwne <br>Rectangle of parts of node in diwne, are computed every frame based on node content and m_nodePositionDiwne. |
Public Functions inherited from DIWNE::DiwneObject
Name | |
---|---|
DiwneObject(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const labelDiwne)<br>Constructor. | |
virtual | ~DiwneObject() =default |
virtual bool | afterContent() |
virtual bool | afterContentDiwne() |
virtual bool | afterEnd() |
virtual bool | afterEndDiwne() |
virtual bool | allowDrawing()<br>Decision maker whether object should be drawn (not outside of window for example) |
virtual bool | allowInteraction()<br>Decision maker whether object can interact (not include content elements) |
virtual bool | allowProcessDrag() |
virtual bool | allowProcessFocused() |
virtual bool | allowProcessFocusedForInteraction() |
virtual bool | allowProcessHold() |
virtual bool | allowProcessRaisePopup() |
virtual bool | allowProcessSelect() |
virtual bool | allowProcessUnhold() |
virtual bool | allowProcessUnselect() |
virtual bool | beforeBegin() |
virtual bool | beforeBeginDiwne() |
virtual bool | beforeContentDiwne() |
virtual void | begin() =0 |
virtual bool | bypassDragAction() |
virtual bool | bypassFocusAction() |
virtual bool | bypassHoldAction() |
virtual bool | bypassRaisePopupAction() |
virtual bool | bypassSelectAction() |
virtual bool | bypassTouchAction() |
virtual bool | bypassUnholdAction() |
virtual bool | bypassUnselectAction() |
virtual bool | content() |
virtual bool | contentDiwne() |
virtual bool | drawDiwne(DrawMode drawMode =DrawMode::Interacting)<br>Main function for drawing object and deal with interactions. |
virtual void | end() =0 |
virtual bool | finalize() |
virtual bool | finalizeDiwne() |
virtual DIWNE::DiwneAction | getDragActionType() const =0 |
virtual DIWNE::DiwneAction | getHoldActionType() const =0 |
DIWNE::ID const | getIdDiwne() const |
virtual ImRect | getRectDiwne() const =0 |
virtual bool | getSelectable() |
virtual bool | getSelected() const<br>Getter of selection state. |
virtual DIWNE::DiwneAction | getTouchActionType() const =0 |
virtual bool | initialize() |
virtual bool | initializeDiwne() |
virtual bool | interactionBeginInLastDraw() |
virtual bool | interactionEndInLastDraw() |
virtual bool | processDrag() |
bool | processDragDiwne() |
virtual bool | processFocused() |
bool | processFocusedDiwne() |
virtual bool | processFocusedForInteraction() |
bool | processFocusedForInteractionDiwne() |
virtual bool | processHold() |
bool | processHoldDiwne() |
virtual bool | processInteractions() |
virtual bool | processInteractionsAlways() |
virtual bool | processInteractionsDiwne() |
virtual bool | processRaisePopupDiwne() |
virtual bool | processSelect() |
bool | processSelectDiwne() |
virtual bool | processShowPopupDiwne() |
virtual bool | processUnhold() |
bool | processUnholdDiwne() |
virtual bool | processUnselect() |
bool | processUnselectDiwne() |
virtual void | setSelectable(bool const selectable) |
virtual bool | setSelected(bool const selected) |
void | showTooltipLabel(std::string const & label, ImColor const && color)<br>Show a colored text for example for immediate hints. |
virtual void | updateSizes() |
Public Attributes inherited from DIWNE::DiwneObject
Name | |
---|---|
DIWNE::Diwne & | diwne |
DrawMode | m_drawMode |
bool | m_focused |
bool | m_focusedForInteraction |
DIWNE::ID const | m_idDiwne |
bool | m_inner_interaction_happen |
bool | m_inner_interaction_happen_previous_draw |
bool | m_isActive |
bool | m_isDragged |
bool | m_isHeld |
std::string const | m_labelDiwne |
std::string const | m_popupIDDiwne |
bool | m_selectable |
bool | m_selected |
Public Functions Documentation
function Node
Node(
DIWNE::Diwne & diwne,
DIWNE::ID id,
std::string const topLabel ="Header",
std::string const middleLabel ="Content"
)
Node(
DIWNE::Diwne & diwne,
DIWNE::ID id,
std::string const topLabel ="Header",
std::string const middleLabel ="Content"
)
function ~Node
virtual ~Node()
virtual ~Node()
Default destructor.
Reimplements: DIWNE::Node::~Node
function beforeContent
virtual bool beforeContent() override
virtual bool beforeContent() override
Reimplements: DIWNE::DiwneObject::beforeContent
Reimplemented by: Workspace::Operator::beforeContent, Workspace::Operator::beforeContent, Workspace::Sequence::beforeContent, Workspace::TransformationBase::beforeContent
is called first inside of object
function bottomContent
virtual bool bottomContent() override
virtual bool bottomContent() override
Reimplements: DIWNE::Node::bottomContent
function bypassFocusForInteractionAction
virtual bool bypassFocusForInteractionAction() override
virtual bool bypassFocusForInteractionAction() override
Reimplements: DIWNE::DiwneObject::bypassFocusForInteractionAction
action identified as focusing on object for interacting with it
function deleteAction
virtual void deleteAction() override
virtual void deleteAction() override
Reimplements: DIWNE::Node::deleteAction
Reimplemented by: Workspace::TransformationBase::deleteAction
function drawMenuDelete
virtual void drawMenuDelete()
virtual void drawMenuDelete()
Reimplemented by: Workspace::TransformationBase::drawMenuDelete
function getDuplicateNode
inline bool getDuplicateNode() const
inline bool getDuplicateNode() const
function getMiddleLabel
inline std::string getMiddleLabel()
inline std::string getMiddleLabel()
function getRemoveFromWorkspace
inline bool getRemoveFromWorkspace() const
inline bool getRemoveFromWorkspace() const
function getTopLabel
inline std::string getTopLabel()
inline std::string getTopLabel()
function leftContent
virtual bool leftContent() override
virtual bool leftContent() override
Reimplements: DIWNE::Node::leftContent
Reimplemented by: Workspace::CoreNodeWithPins::leftContent, Workspace::Cycle::leftContent, Workspace::AngleAxisToQuatOperator::leftContent
function middleContent
virtual bool middleContent() override
virtual bool middleContent() override
Reimplements: DIWNE::Node::middleContent
Reimplemented by: Workspace::Camera::middleContent, Workspace::Cycle::middleContent, Workspace::Model::middleContent, Workspace::Operator::middleContent, Workspace::Operator::middleContent, Workspace::Screen::middleContent, Workspace::Sequence::middleContent, Workspace::TransformationBase::middleContent
function popupContent
virtual void popupContent() override
virtual void popupContent() override
Content of popup menu raise on this object.
Reimplements: DIWNE::DiwneObject::popupContent
Reimplemented by: Workspace::CoreNode::popupContent, Workspace::Camera::popupContent, Workspace::Model::popupContent, Workspace::Screen::popupContent, Workspace::Sequence::popupContent, Workspace::TransformationBase::popupContent
function rightContent
virtual bool rightContent() override
virtual bool rightContent() override
Reimplements: DIWNE::Node::rightContent
Reimplemented by: Workspace::CoreNodeWithPins::rightContent, Workspace::Cycle::rightContent
function setDuplicateNode
inline void setDuplicateNode(
bool value
)
inline void setDuplicateNode(
bool value
)
function setMiddleLabel
inline void setMiddleLabel(
std::string label
)
inline void setMiddleLabel(
std::string label
)
function setRemoveFromWorkspace
inline void setRemoveFromWorkspace(
bool value
)
inline void setRemoveFromWorkspace(
bool value
)
function setTopLabel
inline void setTopLabel(
std::string label
)
inline void setTopLabel(
std::string label
)
function topContent
virtual bool topContent() override
virtual bool topContent() override
Reimplements: DIWNE::Node::topContent
Reimplemented by: Workspace::CoreNode::topContent, Workspace::Camera::topContent, Workspace::Cycle::topContent, Workspace::Model::topContent, Workspace::Operator::topContent, Workspace::Operator::topContent, Workspace::Screen::topContent, Workspace::Sequence::topContent, Workspace::TransformationBase::topContent
Public Attributes Documentation
variable m_duplicateNode
bool m_duplicateNode = false;
bool m_duplicateNode = false;
variable m_removeFromWorkspaceWindow
bool m_removeFromWorkspaceWindow;
bool m_removeFromWorkspaceWindow;
Protected Attributes Documentation
variable m_middleLabel
std::string m_middleLabel;
std::string m_middleLabel;
variable m_topLabel
std::string m_topLabel;
std::string m_topLabel;
Updated on 2024-11-06 at 20:16:53 +0000