Workspace::TransformationBase
#include "GUI/Workspace/Nodes/TransformationBase.h"
Inherits from Workspace::CoreNode, Workspace::Node, IVisitable, DIWNE::Node, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >
Inherited by Workspace::Transformation< T >
Public Functions
| Name | |
|---|---|
| TransformationBase(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase) | |
| virtual void | accept(NodeVisitor & visitor) override |
| virtual bool | afterContent() override |
| virtual bool | allowDrawing() override<br>Decision maker whether object should be drawn (not outside of window for example) |
| virtual bool | beforeBegin() override |
| virtual bool | beforeContent() override |
| virtual void | deleteAction() override |
| virtual bool | drawDataFull() |
| virtual bool | drawDataSetValues() |
| virtual bool | drawDataSetValues_InsideTablebuilder(std::vector< std::string > const & labels, std::vector< float * > const & local_data, bool & value_changed) |
| virtual bool | drawDataSetValuesTable_builder(std::string const cornerLabel, std::vector< std::string > const & columnLabels, std::vector< std::string > const & rowLabels, std::vector< float * > const & local_data, bool & value_changed, int & index_of_change) |
| virtual void | drawMenuDelete() override |
| virtual void | drawMenuLevelOfDetail() override =0 |
| virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
| void | drawMenuStorevalues() |
| std::vector< ImVec2 > | getInteractionPointsWithSequence() |
| Ptr< Core::Node > | getNodebaseSequence() |
| bool | getRemoveFromSequence() const |
| bool | isInSequence() |
| virtual bool | isMatrixValid() =0<br>helper function used for decision about showing the corrupted transform flag in topContent(). |
| virtual int | maxLengthOfData() override |
| virtual bool | middleContent() override |
| virtual void | popupContent() override<br>Content of popup menu raise on this object. |
| void | setRemoveFromSequence(bool value) |
| virtual bool | topContent() override |
| virtual void | updateSizes() override |
Public Attributes
| Name | |
|---|---|
| DIWNE::ID | aboveSequence |
| WPtr< Sequence > | m_parentSequence |
| bool | m_removeFromSequence |
| float | m_topOversizeSpace |
Additional inherited members
Public Functions inherited from Workspace::CoreNode
| Name | |
|---|---|
| CoreNode(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase) | |
| ~CoreNode() override | |
| bool | drawDataLabel() |
| void | drawMenuDuplicate() |
| void | drawMenuSetEditable() |
| void | drawMenuSetPrecision() |
| float | getDataItemsWidth() |
| FloatPopupMode & | getFloatPopupMode() |
| bool | getIsLabelBeingEdited() |
| const std::string & | getKeyword() const |
| LevelOfDetail | getLevelOfDetail() |
| Ptr< Core::Node > const | getNodebase() const |
| int | getNumberOfVisibleDecimal() |
| virtual bool | processDrag() override |
| virtual bool | processSelect() override |
| virtual bool | processUnselect() override |
| void | setFloatPopupMode(FloatPopupMode mode) |
| LevelOfDetail | setLevelOfDetail(LevelOfDetail levelOfDetail) |
| virtual void | setNumberOfVisibleDecimal(int value) |
| virtual float | updateDataItemsWidth() |
| void | drawMenuLevelOfDetail_builder(Ptr< CoreNode > node, std::vector< LevelOfDetail > const & levels_of_detail) |
Protected Attributes inherited from Workspace::CoreNode
| Name | |
|---|---|
| float | m_dataItemsWidth |
| FloatPopupMode | m_floatPopupMode |
| float | m_headerMinWidth <br>Can be used to specify the minimum header width of the node. |
| bool | m_isFirstDraw |
| bool | m_isLabelBeingEdited |
| LevelOfDetail | m_levelOfDetail |
| Ptr< Core::Node > const | m_nodebase <br>reference to Core |
| int | m_numberOfVisibleDecimal <br>number of decimal places used while display floats in the workspace |
Public Functions inherited from Workspace::Node
| 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 | bottomContent() override |
| virtual bool | bypassFocusForInteractionAction() override |
| bool | getDuplicateNode() const |
| std::string | getMiddleLabel() |
| bool | getRemoveFromWorkspace() const |
| std::string | getTopLabel() |
| virtual bool | leftContent() override |
| virtual bool | rightContent() override |
| void | setDuplicateNode(bool value) |
| void | setMiddleLabel(std::string label) |
| void | setRemoveFromWorkspace(bool value) |
| void | setTopLabel(std::string label) |
Public Attributes inherited from Workspace::Node
| Name | |
|---|---|
| bool | m_duplicateNode |
| bool | m_removeFromWorkspaceWindow |
Protected Attributes inherited from Workspace::Node
| Name | |
|---|---|
| std::string | m_middleLabel |
| std::string | m_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 bool | afterEndDiwne() override |
| virtual bool | beforeBeginDiwne() override |
| virtual void | begin() override |
| virtual bool | bottomContent() |
| 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 |
| virtual bool | leftContent() |
| bool | leftContentDiwne() |
| bool | middleContentDiwne() |
| Node & | operator=(const Node & other)<br>Assignment operator. |
| virtual bool | processDrag() override |
| virtual bool | processSelect() override |
| virtual bool | processUnselect() override |
| virtual bool | rightContent() |
| 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) |
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 | afterContentDiwne() |
| virtual bool | afterEnd() |
| virtual bool | afterEndDiwne() |
| 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 | beforeBeginDiwne() |
| virtual bool | beforeContentDiwne() |
| virtual void | begin() =0 |
| virtual bool | bypassDragAction() |
| virtual bool | bypassFocusAction() |
| virtual bool | bypassFocusForInteractionAction() |
| 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. |
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 TransformationBase
TransformationBase(
DIWNE::Diwne & diwne,
Ptr< Core::Node > nodebase
)TransformationBase(
DIWNE::Diwne & diwne,
Ptr< Core::Node > nodebase
)function accept
inline virtual void accept(
NodeVisitor & visitor
) overrideinline virtual void accept(
NodeVisitor & visitor
) overrideReimplements: IVisitable::accept
function afterContent
virtual bool afterContent() overridevirtual bool afterContent() overrideReimplements: DIWNE::DiwneObject::afterContent
is called as last inside object
function allowDrawing
virtual bool allowDrawing() overridevirtual bool allowDrawing() overrideDecision maker whether object should be drawn (not outside of window for example)
Return: draw object on its position?
Reimplements: DIWNE::Node::allowDrawing
function beforeBegin
virtual bool beforeBegin() overridevirtual bool beforeBegin() overrideReimplements: DIWNE::DiwneObject::beforeBegin
is called before begin of object drawing (but after allowDrawing() decision)
function beforeContent
virtual bool beforeContent() overridevirtual bool beforeContent() overrideReimplements: Workspace::Node::beforeContent
is called first inside of object
function deleteAction
virtual void deleteAction() overridevirtual void deleteAction() overrideReimplements: Workspace::Node::deleteAction
function drawDataFull
virtual bool drawDataFull()virtual bool drawDataFull()Todosee #111
function drawDataSetValues
inline virtual bool drawDataSetValues()inline virtual bool drawDataSetValues()Reimplemented by: Workspace::Transformation::drawDataSetValues, Workspace::Transformation::drawDataSetValues, Workspace::Transformation::drawDataSetValues
function drawDataSetValues_InsideTablebuilder
virtual bool drawDataSetValues_InsideTablebuilder(
std::vector< std::string > const & labels,
std::vector< float * > const & local_data,
bool & value_changed
)virtual bool drawDataSetValues_InsideTablebuilder(
std::vector< std::string > const & labels,
std::vector< float * > const & local_data,
bool & value_changed
)function drawDataSetValuesTable_builder
virtual bool drawDataSetValuesTable_builder(
std::string const cornerLabel,
std::vector< std::string > const & columnLabels,
std::vector< std::string > const & rowLabels,
std::vector< float * > const & local_data,
bool & value_changed,
int & index_of_change
)virtual bool drawDataSetValuesTable_builder(
std::string const cornerLabel,
std::vector< std::string > const & columnLabels,
std::vector< std::string > const & rowLabels,
std::vector< float * > const & local_data,
bool & value_changed,
int & index_of_change
)function drawMenuDelete
virtual void drawMenuDelete() overridevirtual void drawMenuDelete() overrideReimplements: Workspace::Node::drawMenuDelete
function drawMenuLevelOfDetail
virtual void drawMenuLevelOfDetail() override =0virtual void drawMenuLevelOfDetail() override =0Reimplements: Workspace::CoreNode::drawMenuLevelOfDetail
Reimplemented by: Workspace::Transformation::drawMenuLevelOfDetail
function drawMenuSetDataMap
virtual void drawMenuSetDataMap()virtual void drawMenuSetDataMap(){return true;}; // todo = 0
Reimplemented by: Workspace::Transformation::drawMenuSetDataMap, Workspace::Transformation::drawMenuSetDataMap, Workspace::Transformation::drawMenuSetDataMap, Workspace::Transformation::drawMenuSetDataMap, Workspace::Transformation::drawMenuSetDataMap, Workspace::Transformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuStorevalues
void drawMenuStorevalues()void drawMenuStorevalues()function getInteractionPointsWithSequence
std::vector< ImVec2 > getInteractionPointsWithSequence()std::vector< ImVec2 > getInteractionPointsWithSequence()function getNodebaseSequence
Ptr< Core::Node > getNodebaseSequence()Ptr< Core::Node > getNodebaseSequence()function getRemoveFromSequence
inline bool getRemoveFromSequence() constinline bool getRemoveFromSequence() constfunction isInSequence
bool isInSequence()bool isInSequence()function isMatrixValid
virtual bool isMatrixValid() =0virtual bool isMatrixValid() =0helper function used for decision about showing the corrupted transform flag in topContent().
Return: Core::ETransformState:: Valid, Invalid, or Unknown
Reimplemented by: Workspace::Transformation::isMatrixValid
Overriden in WorkspaceTransformation_s.h
function maxLengthOfData
virtual int maxLengthOfData() overridevirtual int maxLengthOfData() overrideReimplements: Workspace::CoreNode::maxLengthOfData
Reimplemented by: Workspace::Transformation::maxLengthOfData
function middleContent
virtual bool middleContent() overridevirtual bool middleContent() overrideReimplements: Workspace::Node::middleContent
function popupContent
virtual void popupContent() overridevirtual void popupContent() overrideContent of popup menu raise on this object.
Reimplements: Workspace::CoreNode::popupContent
function setRemoveFromSequence
inline void setRemoveFromSequence(
bool value
)inline void setRemoveFromSequence(
bool value
)function topContent
virtual bool topContent() overridevirtual bool topContent() overrideReimplements: Workspace::CoreNode::topContent
function updateSizes
virtual void updateSizes() overridevirtual void updateSizes() overrideReimplements: DIWNE::Node::updateSizes
store object size and position after this frame
Public Attributes Documentation
variable aboveSequence
DIWNE::ID aboveSequence;DIWNE::ID aboveSequence;variable m_parentSequence
WPtr< Sequence > m_parentSequence {};WPtr< Sequence > m_parentSequence {};variable m_removeFromSequence
bool m_removeFromSequence;bool m_removeFromSequence;variable m_topOversizeSpace
float m_topOversizeSpace;float m_topOversizeSpace;Updated on 2025-09-07 at 16:13:51 +0000