Blender V5.3
node_socket_value.cc File Reference

Go to the source code of this file.

Classes

class  blender::bke::Field< T >
class  blender::bke::GField
class  blender::bke::GList
class  blender::bke::GListPtr
class  blender::bke::List< T >
class  blender::bke::ListPtr< T >

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::detail

Macros

#define SOCKET_VALUE_SINGLE_TYPES
#define SOCKET_VALUE_FIELD_AND_LIST_TYPES
#define DEFINE_TYPE(TYPE)
#define X(TYPE)
#define X(TYPE)
#define DEFINE_INIT_DEFAULT(TYPE)
#define X(TYPE)
#define X(TYPE)
#define X(TYPE)
#define X(TYPE)
#define X(TYPE)
#define X(TYPE)

Typedefs

using blender::bke::BundlePtr
using blender::bke::ClosurePtr

Macro Definition Documentation

◆ DEFINE_INIT_DEFAULT

#define DEFINE_INIT_DEFAULT ( TYPE)
Value:
template TYPE &SocketValueVariant::init_default<TYPE>(detail::SocketValueVariantAny & value);

Explicit instantiations.

Definition at line 406 of file node_socket_value.cc.

◆ DEFINE_TYPE

#define DEFINE_TYPE ( TYPE)
Value:
template bool SocketValueVariantTypeInfo::try_convert_fn<TYPE>(const CPPType &dst_type, \
SocketValueVariantAny &value); \
template bool SocketValueVariantTypeInfo::is_interpretable_as_fn<TYPE>( \
const CPPType &dst_type, const SocketValueVariantAny &value);

Definition at line 337 of file node_socket_value.cc.

◆ SOCKET_VALUE_FIELD_AND_LIST_TYPES

#define SOCKET_VALUE_FIELD_AND_LIST_TYPES
Value:
X(float) \
X(int) \
X(float2) \
X(float3) \
X(float4) \
X(int2) \
X(bool) \
X(int8_t) \
X(short2) \
X(ColorGeometry4f) \
X(ColorGeometry4b) \
X(math::Quaternion) \
X(nodes::MenuValue) \
X(std::string)
MatBase< 4, 4 > float4x4
VecBase< short, 2 > short2
#define X(TYPE)

The subset of SOCKET_VALUE_SINGLE_TYPES that also support Field<T> and ListPtr<T>.

Definition at line 80 of file node_socket_value.cc.

Referenced by blender::bke::SocketValueVariant::init_default().

◆ SOCKET_VALUE_SINGLE_TYPES

#define SOCKET_VALUE_SINGLE_TYPES
Value:
X(float) \
X(int) \
X(float2) \
X(float3) \
X(float4) \
X(int2) \
X(bool) \
X(int8_t) \
X(short2) \
X(ColorGeometry4f) \
X(ColorGeometry4b) \
X(math::Quaternion) \
X(nodes::MenuValue) \
X(std::string) \
X(BundlePtr) \
X(ClosurePtr) \
X(GeometrySet) \
X(Object *) \
X(Material *) \
X(Image *) \
X(VFont *) \
X(Scene *) \
X(bSound *) \
X(Collection *) \
X(Tex *) \
X(Text *) \
X(Mask *)
Definition scene.h:133

All types that can be stored as a "single" value in a #SocketValueVariant.

Definition at line 47 of file node_socket_value.cc.

Referenced by blender::bke::SocketValueVariant::allocate(), blender::bke::SocketValueVariant::init_default(), and blender::bke::SocketValueVariant::is_single().

◆ X [1/8]

#define X ( TYPE)
Value:
if (type->is<TYPE>()) { \
return true; \
}

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [2/8]

#define X ( TYPE)
Value:
if (type.is<TYPE>()) { \
return value.allocate<TYPE>(); \
}

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [3/8]

#define X ( TYPE)
Value:
if (type.is<Field<TYPE>>()) { \
return &SocketValueVariant::init_default<Field<TYPE>>(value); \
} \
if (type.is<ListPtr<TYPE>>()) { \
return &SocketValueVariant::init_default<ListPtr<TYPE>>(value); \
}

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [4/8]

#define X ( TYPE)
Value:
if (type.is<TYPE>()) { \
return &SocketValueVariant::init_default<TYPE>(value); \
}

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [5/8]

#define X ( TYPE)
Value:
DEFINE_INIT_DEFAULT(ListPtr<TYPE>)
#define DEFINE_INIT_DEFAULT(TYPE)

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [6/8]

#define X ( TYPE)
Value:

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [7/8]

#define X ( TYPE)
Value:
DEFINE_TYPE(ListPtr<TYPE>)
#define DEFINE_TYPE(TYPE)

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

◆ X [8/8]

#define X ( TYPE)
Value:

Even though Field<T>, ListPtr<T> and #VolumeGrid<T> are never stored directly (they are always redirected to their generic storage type, see #to_storage_type), #SocketValueVariant's templated accessors (#get_if, #try_convert, #ensure_type) still instantiate their function bodies for these compile-time types.

Definition at line 343 of file node_socket_value.cc.

Referenced by libmv::euclidean_resection::AbsoluteOrientation(), bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_shirley_sample(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_microfacet_eval(), bsdf_microfacet_sample(), btSoftBodyHelpers::CreateFromVtkFile(), libmv::CrossProductMatrix(), libmv::Depth(), libmv::Depth(), slim::doublearea_sort3(), libmv::EliminateRow(), ensure_valid_specular_reflection(), libmv::EuclideanIntersect(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), libmv::EuclideanToHomogeneous(), libmv::EuclideanToHomogeneous(), libmv::EuclideanToHomogeneous(), libmv::FundamentalFromProjections(), Freestyle::GenerateBezier(), libmv::HomogeneousToEuclidean(), libmv::HomogeneousToEuclidean(), libmv::HomogeneousToEuclidean(), libmv::EuclideanReconstruction::InsertPoint(), libmv::ProjectiveReconstruction::InsertPoint(), libmv::isInFrontOfCamera(), libmv::isInFrontOfCamera(), libmv::ModalSolver(), libmv::MotionFromEssentialChooseSolution(), blender::newPerlin(), noise_perlin(), noise_perlin(), noise_perlin(), noise_perlin(), libmv::NRealisticCamerasSparse(), libmv::NViewTriangulate(), libmv::NViewTriangulateAlgebraic(), KDL::Rotation::operator()(), blender::orthogonalize_m3_zero_axes_impl(), Freestyle::GeomUtils::overlapPlaneBox(), Freestyle::GeomUtils::overlapTriangleBox(), perlin_1d(), perlin_2d(), perlin_3d(), perlin_4d(), blender::noise::perlin_noise(), blender::noise::perlin_noise(), blender::noise::perlin_noise(), blender::noise::perlin_noise(), MD5Hash::process(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::Project(), libmv::ProjectiveIntersect(), libmv::resection::Resection(), KDL::Vector::Set2DZX(), libmv::TEST(), TEST(), to_global(), to_global(), to_local(), to_local(), to_local(), KDL::Rotation::UnitX(), KDL::Rotation::UnitY(), KDL::Rotation::UnitZ(), blender::update_duplicate_transform_constraint_settings(), xyY_to_xyz(), and xyY_to_xyz().