Blender V5.3
abc_writer_attribute.h File Reference
#include "BLI_offset_indices.hh"
#include "BLI_string_ref.hh"
#include <Alembic/AbcGeom/OGeomParam.h>

Go to the source code of this file.

Classes

class  blender::io::alembic::AttributeParamMaps

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::io
namespace  blender::io::alembic

Macros

#define ENUMERATE_EXPORTED_TYPES(X)
#define DECLARE_MAPS(abc_type, map_name)
#define ENSURE_PARAM_FUNC(ParamType, map)

Functions

void blender::io::alembic::create_geom_param_for_attribute (const Alembic::Abc::OCompoundProperty &prop, AttributeParamMaps &param_maps, const bke::AttributeIter &attr, const int timesample_index, const OffsetIndices< int > faces, const StringRefNull object_name, const size_t num_geom_samples)

Macro Definition Documentation

◆ DECLARE_MAPS

#define DECLARE_MAPS ( abc_type,
map_name )
Value:
std::map<std::string, abc_type> map_name{};

Definition at line 44 of file abc_writer_attribute.h.

◆ ENSURE_PARAM_FUNC

#define ENSURE_PARAM_FUNC ( ParamType,
map )
Value:
void ensure_param(const Alembic::Abc::OCompoundProperty &prop, \
ParamType &param, \
const StringRefNull name, \
Alembic::AbcGeom::GeometryScope scope) \
{ \
param = map[name]; \
if (!param.valid()) { \
param = ParamType(prop, name, false, scope, 1); \
map[name] = param; \
} \
}

Definition at line 49 of file abc_writer_attribute.h.

◆ ENUMERATE_EXPORTED_TYPES

#define ENUMERATE_EXPORTED_TYPES ( X)
Value:
X(Alembic::AbcGeom::OBoolGeomParam, bool_params) \
X(Alembic::AbcGeom::OCharGeomParam, int8_params) \
X(Alembic::AbcGeom::OV2sGeomParam, short2_params) \
X(Alembic::AbcGeom::OInt32GeomParam, int32_params) \
X(Alembic::AbcGeom::OV2iGeomParam, int2_params) \
X(Alembic::AbcGeom::OFloatGeomParam, float_params) \
X(Alembic::AbcGeom::OV2fGeomParam, float2_params) \
X(Alembic::AbcGeom::OV3fGeomParam, float3_params) \
X(Alembic::AbcGeom::OC4fGeomParam, color_params) \
X(Alembic::AbcGeom::OC4cGeomParam, byte_color_params) \
X(Alembic::AbcGeom::OQuatfGeomParam, quat_params) \
X(Alembic::AbcGeom::OM44dGeomParam, float4x4_params) \
X(Alembic::AbcGeom::OStringGeomParam, string_params)
#define X(TYPE)

Definition at line 22 of file abc_writer_attribute.h.

Referenced by blender::io::alembic::AttributeParamMaps::write_empty_samples().