Core::Pin
Pin used for connecting nodes. More...
#include "Core/Nodes/Pin.h"
Public Functions
| Name | |
|---|---|
| Pin(EValueType valueType, bool isInput, Node & owner, int index) | |
| const Data & | data() const<br>Get stored data based on pin type. |
| Data & | dataMut() |
| const std::string & | getLabel() const |
| const std::vector< Pin * > & | getOutComponents() const |
| Ptr< Node > | getOwner() const |
| const Pin * | getParentPin() const |
| std::string | getSignature() const<br>"pin {index} of {node signature}" |
| bool | isDisabled() const |
| bool | isPluggedIn() const<br>Query if input of this object is plugged to any parent output. |
| bool | isRendered() const<br>False in Camera P and V matrices ONLY. |
| void | setDisabled(bool disabled) |
| void | setRendered(bool value) |
| ENodePlugResult | isPlugCorrect(const Pin & input, const Pin & output) |
Public Attributes
| Name | |
|---|---|
| ID | Id |
| const int | Index <br>Index within a node. |
| const bool | IsInput <br>Pin type. |
| Node & | Owner |
| const EValueType | ValueType |
Friends
| Name | |
|---|---|
| class | Node |
Detailed Description
cpp
class Core::Pin;class Core::Pin;Pin used for connecting nodes.
OperatorCurveTab from I3T v1.
Public Functions Documentation
function Pin
cpp
Pin(
EValueType valueType,
bool isInput,
Node & owner,
int index
)Pin(
EValueType valueType,
bool isInput,
Node & owner,
int index
)function data
cpp
const Data & data() constconst Data & data() constGet stored data based on pin type.
Return: data storage owner by node connected to this input pin. If pin is output pin, it returns data storage of pin owner.
Precondition: If pin is input, it must be plugged to some output pin.
function dataMut
cpp
Data & dataMut()Data & dataMut()function getLabel
cpp
const std::string & getLabel() constconst std::string & getLabel() constfunction getOutComponents
cpp
inline const std::vector< Pin * > & getOutComponents() constinline const std::vector< Pin * > & getOutComponents() constReturn: Input pins of connected nodes.
function getOwner
cpp
Ptr< Node > getOwner() constPtr< Node > getOwner() constfunction getParentPin
cpp
const Pin * getParentPin() constconst Pin * getParentPin() constReturn: nullptr if input is not plugged in.
function getSignature
cpp
std::string getSignature() conststd::string getSignature() const"pin {index} of {node signature}"
function isDisabled
cpp
inline bool isDisabled() constinline bool isDisabled() constfunction isPluggedIn
cpp
bool isPluggedIn() constbool isPluggedIn() constQuery if input of this object is plugged to any parent output.
Return: True if plugged to parent, false if not.
function isRendered
cpp
inline bool isRendered() constinline bool isRendered() constFalse in Camera P and V matrices ONLY.
Used to skip hidden values stored as pins.
function setDisabled
cpp
inline void setDisabled(
bool disabled
)inline void setDisabled(
bool disabled
)function setRendered
cpp
inline void setRendered(
bool value
)inline void setRendered(
bool value
)function isPlugCorrect
cpp
static ENodePlugResult isPlugCorrect(
const Pin & input,
const Pin & output
)static ENodePlugResult isPlugCorrect(
const Pin & input,
const Pin & output
)Public Attributes Documentation
variable Id
cpp
ID Id;ID Id;variable Index
cpp
const int Index = -1;const int Index = -1;Index within a node.
variable IsInput
cpp
const bool IsInput;const bool IsInput;Pin type.
variable Owner
cpp
Node & Owner;Node & Owner;variable ValueType
cpp
const EValueType ValueType = EValueType::Pulse;const EValueType ValueType = EValueType::Pulse;Friends
friend Node
cpp
friend class Node(
Node
);friend class Node(
Node
);Updated on 2025-09-07 at 16:13:51 +0000