Core::Data 
Representation of the interconnection wire value (Shared piece of memory - union of all data types passed along the wire) and of the value stored in the defaultValues map (such as fovy for Perspective) More...
#include "Core/Nodes/NodeData.h"
Public Types 
| Name | |
|---|---|
| using std::variant< bool, glm::mat4, std::pair< glm::mat4, glm::mat4 >, glm::vec3, glm::vec4, glm::quat, float, void * > | Storage | 
Public Functions 
| Name | |
|---|---|
| Data(const bool val)<br>Explicit constructors from given data values. | |
| Data(float val) | |
| Data(const glm::vec3 & val) | |
| Data(const glm::vec4 & val) | |
| Data(const glm::mat4 & val) | |
| Data(const glm::quat val) | |
| Data(const std::pair< glm::mat4, glm::mat4 > val) | |
| Data()<br>Default constructor constructs a signal of type valueType::MATRIX and with an undefined value (a unit matrix) | |
| Data(EValueType valueType)<br>Constructor of given signal type with an undefined value (identity) | |
| Data(Storage val, EValueType valueType) | |
| Storage | data() | 
| float | getFloat() const | 
| const glm::mat4 & | getMat4() const | 
| glm::mat4 & | getMat4Ref() | 
| const glm::quat & | getQuat() const | 
| std::optional< Storage > | getSavedValue() const | 
| const std::pair< glm::mat4, glm::mat4 > & | getScreen() const | 
| template <typename T > <br>std::optional< std::remove_reference_t< T > > | getValue() const | 
| const glm::vec3 & | getVec3() const | 
| const glm::vec4 & | getVec4() const | 
| bool | hasSavedValue() const | 
| std::size_t | index() const | 
| bool | isPulseTriggered() const | 
| void | reloadValue()<br>Reset the value to the last saved value. | 
| void | saveValue() | 
| template <typename T > <br>void | setSavedValue(T && val) | 
| void | setValue(const Data & other) | 
| template <typename T > <br>void | setValue(T && val) | 
Public Attributes 
| Name | |
|---|---|
| EValueType | valueType <br>wire type, such as Float or 4x4 Matrix | 
Detailed Description 
class Core::Data;class Core::Data;Representation of the interconnection wire value (Shared piece of memory - union of all data types passed along the wire) and of the value stored in the defaultValues map (such as fovy for Perspective)
Old name was Transmitter in I3T v1.
Public Types Documentation 
using Storage 
using Core::Data::Storage =  std::variant<bool, glm::mat4, std::pair<glm::mat4, glm::mat4>, glm::vec3, glm::vec4, glm::quat, float, void*>;using Core::Data::Storage =  std::variant<bool, glm::mat4, std::pair<glm::mat4, glm::mat4>, glm::vec3, glm::vec4, glm::quat, float, void*>;Public Functions Documentation 
function Data 
inline explicit Data(
    const bool val
)inline explicit Data(
    const bool val
)Explicit constructors from given data values.
function Data 
inline explicit Data(
    float val
)inline explicit Data(
    float val
)function Data 
inline explicit Data(
    const glm::vec3 & val
)inline explicit Data(
    const glm::vec3 & val
)function Data 
inline explicit Data(
    const glm::vec4 & val
)inline explicit Data(
    const glm::vec4 & val
)function Data 
inline explicit Data(
    const glm::mat4 & val
)inline explicit Data(
    const glm::mat4 & val
)function Data 
inline explicit Data(
    const glm::quat val
)inline explicit Data(
    const glm::quat val
)function Data 
inline explicit Data(
    const std::pair< glm::mat4, glm::mat4 > val
)inline explicit Data(
    const std::pair< glm::mat4, glm::mat4 > val
)function Data 
inline Data()inline Data()Default constructor constructs a signal of type valueType::MATRIX and with an undefined value (a unit matrix)
function Data 
explicit Data(
    EValueType valueType
)explicit Data(
    EValueType valueType
)Constructor of given signal type with an undefined value (identity)
function Data 
inline explicit Data(
    Storage val,
    EValueType valueType
)inline explicit Data(
    Storage val,
    EValueType valueType
)function data 
inline Storage data()inline Storage data()function getFloat 
inline float getFloat() constinline float getFloat() constfunction getMat4 
inline const glm::mat4 & getMat4() constinline const glm::mat4 & getMat4() constfunction getMat4Ref 
inline glm::mat4 & getMat4Ref()inline glm::mat4 & getMat4Ref()function getQuat 
inline const glm::quat & getQuat() constinline const glm::quat & getQuat() constfunction getSavedValue 
inline std::optional< Storage > getSavedValue() constinline std::optional< Storage > getSavedValue() constfunction getScreen 
inline const std::pair< glm::mat4, glm::mat4 > & getScreen() constinline const std::pair< glm::mat4, glm::mat4 > & getScreen() constfunction getValue 
template <typename T >
std::optional< std::remove_reference_t< T > > getValue() consttemplate <typename T >
std::optional< std::remove_reference_t< T > > getValue() constTodo: MH Refactor
function getVec3 
inline const glm::vec3 & getVec3() constinline const glm::vec3 & getVec3() constfunction getVec4 
inline const glm::vec4 & getVec4() constinline const glm::vec4 & getVec4() constfunction hasSavedValue 
inline bool hasSavedValue() constinline bool hasSavedValue() constfunction index 
inline std::size_t index() constinline std::size_t index() constfunction isPulseTriggered 
inline bool isPulseTriggered() constinline bool isPulseTriggered() constfunction reloadValue 
inline void reloadValue()inline void reloadValue()Reset the value to the last saved value.
function saveValue 
inline void saveValue()inline void saveValue()function setSavedValue 
template <typename T >
inline void setSavedValue(
    T && val
)template <typename T >
inline void setSavedValue(
    T && val
)function setValue 
inline void setValue(
    const Data & other
)inline void setValue(
    const Data & other
)function setValue 
template <typename T >
inline void setValue(
    T && val
)template <typename T >
inline void setValue(
    T && val
)Public Attributes Documentation 
variable valueType 
EValueType valueType;EValueType valueType;wire type, such as Float or 4x4 Matrix
Updated on 2025-09-07 at 16:13:51 +0000