40 return this->affected;
90 return this->x || this->y || this->z;
116 return {{
true}, {
true}, {
true}};
130 operator bool()
const
132 return this->euler || this->axis || this->angle;
169 operator bool()
const
171 return this->translation || this->rotation || this->scale || this->any_non_transform;
179 this->translation, this->rotation, this->scale, this->any_non_transform);
209 std::variant<BoolElem, FloatElem, IntElem, VectorElem, RotationElem, MatrixElem>
elem;
211 operator bool()
const
213 return std::visit([](
const auto &value) {
return bool(value); }, this->elem);
218 return std::visit([](
auto &value) {
return value.hash(); }, this->elem);
226 using T = std::decay_t<
decltype(value)>;
227 value.merge(std::get<T>(other.
elem));
237 using T = std::decay_t<
decltype(value)>;
238 value.intersect(std::get<T>(other.
elem));
247 using T = std::decay_t<
decltype(value)>;
257 using T = std::decay_t<
decltype(value)>;
std::optional< ElemVariant > get_elem_variant_for_socket_type(const eNodeSocketDatatype type)
std::optional< ElemVariant > convert_socket_elem(const bNodeSocket &old_socket, const bNodeSocket &new_socket, const ElemVariant &old_elem)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
std::variant< BoolElem, FloatElem, IntElem, VectorElem, RotationElem, MatrixElem > elem
void merge(const ElemVariant &other)
void intersect(const ElemVariant &other)
friend bool operator==(const ElemVariant &a, const ElemVariant &b)=default
void merge(const MatrixElem &other)
friend bool operator==(const MatrixElem &a, const MatrixElem &b)=default
void intersect(const MatrixElem &other)
FloatElem any_non_transform
friend bool operator==(const PrimitiveValueElem &a, const PrimitiveValueElem &b)=default
void intersect(const PrimitiveValueElem &other)
void merge(const PrimitiveValueElem &other)
friend bool operator==(const RotationElem &a, const RotationElem &b)=default
static RotationElem all()
void intersect(const RotationElem &other)
void merge(const RotationElem &other)
friend bool operator==(const SocketElem &a, const SocketElem &b)=default
const bNodeSocket * socket
friend bool operator==(const ValueNodeElem &a, const ValueNodeElem &b)=default
void merge(const VectorElem &other)
friend bool operator==(const VectorElem &a, const VectorElem &b)=default
void intersect(const VectorElem &other)