Skip to content

WorkspaceSequence

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

Inherits from WorkspaceNodeWithCoreDataWithPins, WorkspaceNodeWithCoreData, WorkspaceNode, IVisitable, DIWNE::Node, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >

Public Functions

Name
WorkspaceSequence(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase =Core::GraphManager::createSequence(), bool isCameraSequence =false)
virtual voidaccept(NodeVisitor & visitor) override
virtual boolafterContent()
virtual boolallowDrawing()<br>Decision maker whether object should be drawn (not outside of window for example)
virtual boolbeforeContent()
virtual voiddrawMenuLevelOfDetail()
intgetInnerPosition(ImVec2 point)
intgetInnerPosition(std::vector< ImVec2 > points)
const std::vector< Ptr< WorkspaceNodeWithCoreData > > &getInnerWorkspaceNodes() const
ImVec4getTint()
std::optional< Ptr< WorkspaceNodeWithCoreData > >getTransform(int index) const
boolisSequence()
virtual intmaxLengthOfData()
virtual boolmiddleContent()
voidmoveNodeToSequence(Ptr< WorkspaceNodeWithCoreData > dragedNode, int index =0)
voidmoveNodeToWorkspace(Ptr< WorkspaceNodeWithCoreData > dragedNode)
voidpopNode(Ptr< WorkspaceNodeWithCoreData > node)
virtual voidpopupContent()<br>Content of popup menu raise on this object.
voidpopupContentTracking()
voidpushNode(Ptr< WorkspaceNodeWithCoreData > node, int index =0)
virtual voidsetNumberOfVisibleDecimal(int value)
voidsetPostionOfDummyData(int positionOfDummyData =-1)
voidsetTint(ImVec4 tint)
virtual booltopContent()

Protected Attributes

Name
intm_position_of_dummy_data
ImVec2m_sizeOfDummy
std::vector< Ptr< WorkspaceNodeWithCoreData > >m_workspaceInnerTransformations

Additional inherited members

Public Functions inherited from WorkspaceNodeWithCoreDataWithPins

Name
WorkspaceNodeWithCoreDataWithPins(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase, bool showDataOnPins =true)
virtual boolfinalize() override
std::vector< Ptr< WorkspaceCoreInputPin > > const &getInputs() const<br>get vector of input pins
std::vector< Ptr< WorkspaceCoreOutputPin > > const &getOutputs() const<br>get vector of output pins
virtual std::vector< Ptr< WorkspaceCoreOutputPin > > constgetOutputsToShow() const
virtual boolleftContent() override
virtual boolrightContent() override

Protected Attributes inherited from WorkspaceNodeWithCoreDataWithPins

Name
boolm_showDataOnPins
std::vector< Ptr< WorkspaceCoreInputPin > >m_workspaceInputs
std::vector< Ptr< WorkspaceCoreOutputPin > >m_workspaceOutputs

Public Functions inherited from WorkspaceNodeWithCoreData

Name
WorkspaceNodeWithCoreData(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase)
~WorkspaceNodeWithCoreData() override
booldrawDataLabel()
voiddrawMenuDuplicate()
voiddrawMenuSetEditable()
voiddrawMenuSetPrecision()
floatgetDataItemsWidth()
Core::DataMap const *getDataMap()
FloatPopupMode &getFloatPopupMode()
boolgetIsLabelBeingEdited()
WorkspaceLevelOfDetailgetLevelOfDetail()
Ptr< Core::Node > constgetNodebase() const
intgetNumberOfVisibleDecimal()
virtual boolprocessObjectDrag() override
virtual boolprocessSelect() override
virtual boolprocessUnselect() override
Core::DataMap const *setDataMap(const Core::DataMap * mapToSet)
voidsetFloatPopupMode(FloatPopupMode mode)
WorkspaceLevelOfDetailsetLevelOfDetail(WorkspaceLevelOfDetail levelOfDetail)
virtual floatupdateDataItemsWidth()

Protected Attributes inherited from WorkspaceNodeWithCoreData

Name
floatm_dataItemsWidth
FloatPopupModem_floatPopupMode
floatm_headerMinWidth <br>Can be used to specify the minimum header width of the node.
boolm_isFirstDraw
boolm_isLabelBeingEdited
WorkspaceLevelOfDetailm_levelOfDetail
Ptr< Core::Node > constm_nodebase <br>reference to Core
intm_numberOfVisibleDecimal <br>number of decimal places used while display floats in the workspace

Public Functions inherited from WorkspaceNode

Name
WorkspaceNode(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const topLabel ="Header", std::string const middleLabel ="Content")
~WorkspaceNode()
virtual boolbottomContent() override
virtual boolbypassFocusForInteractionAction() override
virtual voiddeleteAction() override
virtual voiddrawMenuDelete()
boolgetDuplicateNode() const
std::stringgetMiddleLabel()
boolgetRemoveFromWorkspace() const
std::stringgetTopLabel()
virtual boolleftContent() override
virtual boolrightContent() override
voidsetDuplicateNode(bool value)
voidsetMiddleLabel(std::string label)
voidsetRemoveFromWorkspace(bool value)
voidsetTopLabel(std::string label)

Public Attributes inherited from WorkspaceNode

Name
boolm_duplicateNode
boolm_removeFromWorkspaceWindow

Protected Attributes inherited from WorkspaceNode

Name
std::stringm_middleLabel
std::stringm_topLabel

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 boolbeforeBeginDiwne() override
virtual voidbegin() override
virtual boolbottomContent()
boolbottomContentDiwne()
virtual boolcontent() override
virtual voiddeleteAction()
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
virtual boolleftContent()
boolleftContentDiwne()
boolmiddleContentDiwne()
Node &operator=(const Node & other)<br>Assignment operator.
virtual boolprocessDrag() override
virtual boolprocessSelect() override
virtual boolprocessUnselect() override
virtual boolrightContent()
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 boolafterContentDiwne()
virtual boolafterEnd()
virtual boolafterEndDiwne()
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 boolbypassFocusForInteractionAction()
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 WorkspaceSequence

cpp
WorkspaceSequence(
    DIWNE::Diwne & diwne,
    Ptr< Core::Node > nodebase =Core::GraphManager::createSequence(),
    bool isCameraSequence =false
)
WorkspaceSequence(
    DIWNE::Diwne & diwne,
    Ptr< Core::Node > nodebase =Core::GraphManager::createSequence(),
    bool isCameraSequence =false
)

function accept

cpp
inline virtual void accept(
    NodeVisitor & visitor
) override
inline virtual void accept(
    NodeVisitor & visitor
) override

Reimplements: IVisitable::accept

function afterContent

cpp
virtual bool afterContent()
virtual bool afterContent()

Reimplements: DIWNE::DiwneObject::afterContent

is called as last inside object

function allowDrawing

cpp
virtual bool allowDrawing()
virtual bool allowDrawing()

Decision maker whether object should be drawn (not outside of window for example)

Return: draw object on its position?

Reimplements: DIWNE::Node::allowDrawing

function beforeContent

cpp
virtual bool beforeContent()
virtual bool beforeContent()

Reimplements: WorkspaceNode::beforeContent

is called first inside of object

function drawMenuLevelOfDetail

cpp
virtual void drawMenuLevelOfDetail()
virtual void drawMenuLevelOfDetail()

Reimplements: WorkspaceNodeWithCoreData::drawMenuLevelOfDetail

function getInnerPosition

cpp
int getInnerPosition(
    ImVec2 point
)
int getInnerPosition(
    ImVec2 point
)

function getInnerPosition

cpp
int getInnerPosition(
    std::vector< ImVec2 > points
)
int getInnerPosition(
    std::vector< ImVec2 > points
)

function getInnerWorkspaceNodes

cpp
const std::vector< Ptr< WorkspaceNodeWithCoreData > > & getInnerWorkspaceNodes() const
const std::vector< Ptr< WorkspaceNodeWithCoreData > > & getInnerWorkspaceNodes() const

function getTint

cpp
inline ImVec4 getTint()
inline ImVec4 getTint()

function getTransform

cpp
std::optional< Ptr< WorkspaceNodeWithCoreData > > getTransform(
    int index
) const
std::optional< Ptr< WorkspaceNodeWithCoreData > > getTransform(
    int index
) const

function isSequence

cpp
bool isSequence()
bool isSequence()

function maxLengthOfData

cpp
virtual int maxLengthOfData()
virtual int maxLengthOfData()

Reimplements: WorkspaceNodeWithCoreData::maxLengthOfData

function middleContent

cpp
virtual bool middleContent()
virtual bool middleContent()

Reimplements: WorkspaceNode::middleContent

function moveNodeToSequence

cpp
void moveNodeToSequence(
    Ptr< WorkspaceNodeWithCoreData > dragedNode,
    int index =0
)
void moveNodeToSequence(
    Ptr< WorkspaceNodeWithCoreData > dragedNode,
    int index =0
)

function moveNodeToWorkspace

cpp
void moveNodeToWorkspace(
    Ptr< WorkspaceNodeWithCoreData > dragedNode
)
void moveNodeToWorkspace(
    Ptr< WorkspaceNodeWithCoreData > dragedNode
)

function popNode

cpp
void popNode(
    Ptr< WorkspaceNodeWithCoreData > node
)
void popNode(
    Ptr< WorkspaceNodeWithCoreData > node
)

function popupContent

cpp
virtual void popupContent()
virtual void popupContent()

Content of popup menu raise on this object.

Reimplements: WorkspaceNodeWithCoreData::popupContent

function popupContentTracking

cpp
void popupContentTracking()
void popupContentTracking()

function pushNode

cpp
void pushNode(
    Ptr< WorkspaceNodeWithCoreData > node,
    int index =0
)
void pushNode(
    Ptr< WorkspaceNodeWithCoreData > node,
    int index =0
)

function setNumberOfVisibleDecimal

cpp
virtual void setNumberOfVisibleDecimal(
    int value
)
virtual void setNumberOfVisibleDecimal(
    int value
)

Reimplements: WorkspaceNodeWithCoreData::setNumberOfVisibleDecimal

function setPostionOfDummyData

cpp
void setPostionOfDummyData(
    int positionOfDummyData =-1
)
void setPostionOfDummyData(
    int positionOfDummyData =-1
)

function setTint

cpp
inline void setTint(
    ImVec4 tint
)
inline void setTint(
    ImVec4 tint
)

function topContent

cpp
virtual bool topContent()
virtual bool topContent()

Reimplements: WorkspaceNodeWithCoreData::topContent

Protected Attributes Documentation

variable m_position_of_dummy_data

cpp
int m_position_of_dummy_data = -1;
int m_position_of_dummy_data = -1;

variable m_sizeOfDummy

cpp
ImVec2 m_sizeOfDummy = ImVec2(100, 1);
ImVec2 m_sizeOfDummy = ImVec2(100, 1);

variable m_workspaceInnerTransformations

cpp
std::vector< Ptr< WorkspaceNodeWithCoreData > > m_workspaceInnerTransformations;
std::vector< Ptr< WorkspaceNodeWithCoreData > > m_workspaceInnerTransformations;

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