WorkspaceTransformation_s
#include "GUI/Elements/Nodes/WorkspaceTransformation_s.h"
Inherits from WorkspaceTransformation, WorkspaceNodeWithCoreData, WorkspaceNode, IVisitable, DIWNE::Node, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >
Public Functions
Name | |
---|---|
WorkspaceTransformation_s(DIWNE::Diwne & diwne) | |
virtual bool | drawDataSetValues() |
virtual bool | drawDataSetValues() |
virtual bool | drawDataSetValues() override |
virtual void | drawMenuLevelOfDetail() |
virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
virtual void | drawMenuSetDataMap()<br>{return true;}; // todo = 0 |
virtual void | drawMenuSetDataMap() override<br>{return true;}; // todo = 0 |
virtual bool | isMatrixValid() override<br>helper function used for decision about showing the corrupted transform flag in topContent(). |
virtual int | maxLengthOfData() |
Additional inherited members
Public Functions inherited from WorkspaceTransformation
Name | |
---|---|
WorkspaceTransformation(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_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 |
void | drawMenuStorevalues() |
std::vector< ImVec2 > | getInteractionPointsWithSequence() |
Ptr< Core::Node > | getNodebaseSequence() |
bool | getRemoveFromSequence() const |
bool | isInSequence() |
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 inherited from WorkspaceTransformation
Name | |
---|---|
DIWNE::ID | aboveSequence |
WPtr< WorkspaceSequence > | m_parentSequence |
bool | m_removeFromSequence |
float | m_topOversizeSpace |
Public Functions inherited from WorkspaceNodeWithCoreData
Name | |
---|---|
WorkspaceNodeWithCoreData(DIWNE::Diwne & diwne, Ptr< Core::Node > nodebase) | |
~WorkspaceNodeWithCoreData() override | |
bool | drawDataLabel() |
void | drawMenuDuplicate() |
void | drawMenuSetEditable() |
void | drawMenuSetPrecision() |
float | getDataItemsWidth() |
Core::DataMap const * | getDataMap() |
FloatPopupMode & | getFloatPopupMode() |
bool | getIsLabelBeingEdited() |
WorkspaceLevelOfDetail | getLevelOfDetail() |
Ptr< Core::Node > const | getNodebase() const |
int | getNumberOfVisibleDecimal() |
virtual void | popupContent() override<br>Content of popup menu raise on this object. |
virtual bool | processObjectDrag() override |
virtual bool | processSelect() override |
virtual bool | processUnselect() override |
Core::DataMap const * | setDataMap(const Core::DataMap * mapToSet) |
void | setFloatPopupMode(FloatPopupMode mode) |
WorkspaceLevelOfDetail | setLevelOfDetail(WorkspaceLevelOfDetail levelOfDetail) |
virtual void | setNumberOfVisibleDecimal(int value) |
virtual bool | topContent() override |
virtual float | updateDataItemsWidth() |
Protected Attributes inherited from WorkspaceNodeWithCoreData
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 |
WorkspaceLevelOfDetail | 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 WorkspaceNode
Name | |
---|---|
WorkspaceNode(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const topLabel ="Header", std::string const middleLabel ="Content") | |
~WorkspaceNode() | |
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()<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 inherited from WorkspaceNode
Name | |
---|---|
bool | m_duplicateNode |
bool | m_removeFromWorkspaceWindow |
Protected Attributes inherited from WorkspaceNode
Name | |
---|---|
std::string | m_middleLabel |
std::string | m_topLabel |
Public Functions inherited from IVisitable
Name | |
---|---|
virtual void | accept(NodeVisitor & visitor) =0 |
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 | allowDrawing() override<br>Decision maker whether object should be drawn (not outside of window for example) |
virtual bool | beforeBeginDiwne() override |
virtual void | begin() override |
virtual bool | bottomContent() |
bool | bottomContentDiwne() |
virtual bool | content() override |
virtual void | deleteAction() |
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 |
bool | getRender() const |
virtual DIWNE::DiwneAction | getTouchActionType() const |
virtual bool | leftContent() |
bool | leftContentDiwne() |
virtual bool | middleContent() |
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 |
virtual bool | topContent() |
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>Rectangle of parts of node in diwne. |
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 |
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 | beforeContent() |
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 void | popupContent()<br>Content of popup menu raise on this object. |
virtual bool | processDrag() |
virtual bool | processFocused() |
virtual bool | processFocusedForInteraction() |
virtual bool | processHold() |
virtual bool | processInteractions() |
virtual bool | processInteractionsAlways() |
virtual bool | processInteractionsDiwne() |
virtual bool | processObjectDrag() |
virtual bool | processObjectFocused() |
virtual bool | processObjectFocusedForInteraction() |
virtual bool | processObjectHold() |
virtual bool | processObjectSelect() |
virtual bool | processObjectUnhold() |
virtual bool | processObjectUnselect() |
virtual bool | processRaisePopupDiwne() |
virtual bool | processSelect() |
virtual bool | processShowPopupDiwne() |
virtual bool | processUnhold() |
virtual bool | processUnselect() |
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 |
Detailed Description
template <Core::ETransformType T>
class WorkspaceTransformation_s;
template <Core::ETransformType T>
class WorkspaceTransformation_s;
Public Functions Documentation
function WorkspaceTransformation_s
inline WorkspaceTransformation_s(
DIWNE::Diwne & diwne
)
inline WorkspaceTransformation_s(
DIWNE::Diwne & diwne
)
function drawDataSetValues
inline virtual bool drawDataSetValues()
inline virtual bool drawDataSetValues()
Reimplements: WorkspaceTransformation::drawDataSetValues
function drawDataSetValues
inline virtual bool drawDataSetValues()
inline virtual bool drawDataSetValues()
Reimplements: WorkspaceTransformation::drawDataSetValues
function drawDataSetValues
inline virtual bool drawDataSetValues() override
inline virtual bool drawDataSetValues() override
Reimplements: WorkspaceTransformation::drawDataSetValues
function drawMenuLevelOfDetail
inline virtual void drawMenuLevelOfDetail()
inline virtual void drawMenuLevelOfDetail()
Reimplements: WorkspaceTransformation::drawMenuLevelOfDetail
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap()
inline virtual void drawMenuSetDataMap()
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap()
inline virtual void drawMenuSetDataMap()
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap()
inline virtual void drawMenuSetDataMap()
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap()
inline virtual void drawMenuSetDataMap()
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap()
inline virtual void drawMenuSetDataMap()
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function drawMenuSetDataMap
inline virtual void drawMenuSetDataMap() override
inline virtual void drawMenuSetDataMap() override
{return true;}; // todo = 0
Reimplements: WorkspaceTransformation::drawMenuSetDataMap
used for translate, axisAngle, lookAt, and perspective
function isMatrixValid
inline virtual bool isMatrixValid() override
inline virtual bool isMatrixValid() override
helper function used for decision about showing the corrupted transform flag in topContent().
Return: Core::ETransformState:: Valid, Invalid, or Unknown
Reimplements: WorkspaceTransformation::isMatrixValid
Overriden, defined in WorkspaceTransformation.h Calls Core::TransformImpl isValid() methods of all variants of Transforms
function maxLengthOfData
inline virtual int maxLengthOfData()
inline virtual int maxLengthOfData()
Reimplements: WorkspaceTransformation::maxLengthOfData
Updated on 2024-03-16 at 19:15:00 +0000