|
Blender V5.0
|
#include <abc_reader_object.h>
Inherited by blender::io::alembic::AbcCameraReader, blender::io::alembic::AbcCurveReader, blender::io::alembic::AbcEmptyReader, blender::io::alembic::AbcMeshReader, blender::io::alembic::AbcNurbsReader, blender::io::alembic::AbcPointsReader, and blender::io::alembic::AbcSubDReader.
Public Types | |
| using | ptr_vector = std::vector<AbcObjectReader *> |
Public Member Functions | |
| AbcObjectReader (const Alembic::Abc::IObject &object, ImportSettings &settings) | |
| virtual | ~AbcObjectReader ()=default |
| const Alembic::Abc::IObject & | iobject () const |
| virtual Alembic::AbcGeom::IXform | xform () |
| Object * | object () const |
| void | object (Object *ob) |
| const std::string & | name () const |
| const std::string & | object_name () const |
| const std::string & | data_name () const |
| bool | inherits_xform () const |
| virtual bool | valid () const =0 |
| virtual bool | accepts_object_type (const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, const Object *const ob, const char **r_err_str) const =0 |
| virtual void | readObjectData (Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel)=0 |
| virtual void | read_geometry (bke::GeometrySet &geometry_set, const Alembic::Abc::ISampleSelector &sample_sel, int read_flag, const char *velocity_name, float velocity_scale, const char **r_err_str) |
| virtual bool | topology_changed (const Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel) |
| void | setupObjectTransform (chrono_t time) |
| void | addCacheModifier () |
| chrono_t | minTime () const |
| chrono_t | maxTime () const |
| int | refcount () const |
| void | incref () |
| void | decref () |
| void | read_matrix (float r_mat[4][4], chrono_t time, float scale, bool &is_constant) |
Public Attributes | |
| AbcObjectReader * | parent_reader |
Protected Member Functions | |
| void | determine_inherits_xform () |
Protected Attributes | |
| std::string | m_name |
| std::string | m_object_name |
| std::string | m_data_name |
| Object * | m_object |
| Alembic::Abc::IObject | m_iobject |
| ImportSettings * | m_settings |
| bool | m_is_reading_a_file_sequence = false |
| chrono_t | m_min_time |
| chrono_t | m_max_time |
| int | m_refcount |
| bool | m_inherits_xform |
Definition at line 68 of file abc_reader_object.h.
| using blender::io::alembic::AbcObjectReader::ptr_vector = std::vector<AbcObjectReader *> |
Definition at line 102 of file abc_reader_object.h.
|
explicit |
Definition at line 35 of file abc_reader_object.cc.
References determine_inherits_xform(), m_data_name, m_iobject, m_is_reading_a_file_sequence, m_max_time, m_min_time, m_name, m_object, m_object_name, m_refcount, m_settings, max, min, nullptr, object(), parent_reader, and blender::io::alembic::split().
Referenced by blender::io::alembic::AbcCameraReader::AbcCameraReader(), blender::io::alembic::AbcCurveReader::AbcCurveReader(), blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), blender::io::alembic::AbcMeshReader::AbcMeshReader(), blender::io::alembic::AbcNurbsReader::AbcNurbsReader(), blender::io::alembic::AbcPointsReader::AbcPointsReader(), and blender::io::alembic::AbcSubDReader::AbcSubDReader().
|
virtualdefault |
|
pure virtual |
Implemented in blender::io::alembic::AbcCameraReader, blender::io::alembic::AbcCurveReader, blender::io::alembic::AbcEmptyReader, blender::io::alembic::AbcMeshReader, blender::io::alembic::AbcNurbsReader, blender::io::alembic::AbcPointsReader, and blender::io::alembic::AbcSubDReader.
Referenced by get_abc_reader().
| void blender::io::alembic::AbcObjectReader::addCacheModifier | ( | ) |
Definition at line 266 of file abc_reader_object.cc.
References BKE_modifier_new(), BKE_modifiers_persistent_uid_init(), BLI_addtail(), MeshSeqCacheModifierData::cache_file, eModifierType_MeshSequenceCache, CacheFile::id, id_us_plus(), m_iobject, m_object, m_settings, MeshSeqCacheModifierData::object_path, and STRNCPY().
Referenced by blender::io::alembic::AbcCurveReader::readObjectData(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), and blender::io::alembic::AbcSubDReader::readObjectData().
|
inline |
Definition at line 121 of file abc_reader_object.h.
References m_data_name.
| void blender::io::alembic::AbcObjectReader::decref | ( | ) |
Definition at line 300 of file abc_reader_object.cc.
References BLI_assert, and m_refcount.
Referenced by ABC_CacheReader_free(), and import_endjob().
|
protected |
Determine whether we can inherit our parent's XForm.
Definition at line 60 of file abc_reader_object.cc.
References m_inherits_xform, and xform().
Referenced by AbcObjectReader().
| void blender::io::alembic::AbcObjectReader::incref | ( | ) |
Definition at line 295 of file abc_reader_object.cc.
References m_refcount.
Referenced by CacheReader_open_alembic_object(), and visit_object().
|
inline |
Definition at line 125 of file abc_reader_object.h.
References m_inherits_xform.
Referenced by import_file().
| const IObject & blender::io::alembic::AbcObjectReader::iobject | ( | ) | const |
Definition at line 89 of file abc_reader_object.cc.
References m_iobject.
Referenced by get_abc_reader().
| chrono_t blender::io::alembic::AbcObjectReader::maxTime | ( | ) | const |
Definition at line 285 of file abc_reader_object.cc.
References m_max_time.
Referenced by import_file().
| chrono_t blender::io::alembic::AbcObjectReader::minTime | ( | ) | const |
Definition at line 280 of file abc_reader_object.cc.
References m_min_time.
Referenced by import_file().
|
inline |
| Object * blender::io::alembic::AbcObjectReader::object | ( | ) | const |
Definition at line 94 of file abc_reader_object.cc.
References m_object.
Referenced by ABC_get_transform(), blender::io::alembic::AbcCameraReader::AbcCameraReader(), blender::io::alembic::AbcCurveReader::AbcCurveReader(), blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), blender::io::alembic::AbcMeshReader::AbcMeshReader(), blender::io::alembic::AbcNurbsReader::AbcNurbsReader(), AbcObjectReader(), blender::io::alembic::AbcPointsReader::AbcPointsReader(), blender::io::alembic::AbcSubDReader::AbcSubDReader(), CacheReader_open_alembic_object(), import_endjob(), and import_file().
| void blender::io::alembic::AbcObjectReader::object | ( | Object * | ob | ) |
Definition at line 99 of file abc_reader_object.cc.
References m_object.
|
inline |
Definition at line 117 of file abc_reader_object.h.
References m_object_name.
|
virtual |
Reimplemented in blender::io::alembic::AbcCurveReader, blender::io::alembic::AbcMeshReader, blender::io::alembic::AbcPointsReader, and blender::io::alembic::AbcSubDReader.
Definition at line 142 of file abc_reader_object.cc.
Referenced by ABC_read_geometry().
| void blender::io::alembic::AbcObjectReader::read_matrix | ( | float | r_mat[4][4], |
| chrono_t | time, | ||
| float | scale, | ||
| bool & | is_constant ) |
Definition at line 224 of file abc_reader_object.cc.
References blender::io::alembic::ABC_ZUP_FROM_YUP, axis_angle_to_mat4_single(), blender::io::alembic::convert_matrix_datatype(), blender::io::alembic::copy_m44_axis_swap(), blender::io::alembic::get_matrix(), m_inherits_xform, m_object, M_PI_2, mul_m4_m4m4(), OB_CAMERA, scale_m4_fl(), unit_m4(), and xform().
Referenced by ABC_get_transform(), and setupObjectTransform().
|
pure virtual |
Implemented in blender::io::alembic::AbcCameraReader, blender::io::alembic::AbcCurveReader, blender::io::alembic::AbcEmptyReader, blender::io::alembic::AbcMeshReader, blender::io::alembic::AbcNurbsReader, blender::io::alembic::AbcPointsReader, and blender::io::alembic::AbcSubDReader.
Referenced by import_file().
| int blender::io::alembic::AbcObjectReader::refcount | ( | ) | const |
Definition at line 290 of file abc_reader_object.cc.
References m_refcount.
Referenced by ABC_CacheReader_free(), and import_endjob().
| void blender::io::alembic::AbcObjectReader::setupObjectTransform | ( | chrono_t | time | ) |
Reads the object matrix and sets up an object transform if animated.
Definition at line 159 of file abc_reader_object.cc.
References axis_angle_to_mat4_single(), BKE_constraint_add_for_object(), BKE_object_apply_mat4(), BKE_object_to_mat4(), CONSTRAINT_TYPE_TRANSFORM_CACHE, bConstraint::data, data, id_us_plus(), m_iobject, m_object, M_PI_2, m_settings, OB_CAMERA, read_matrix(), and STRNCPY().
Referenced by import_file().
|
virtual |
Reimplemented in blender::io::alembic::AbcMeshReader.
Definition at line 151 of file abc_reader_object.cc.
Referenced by ABC_mesh_topology_changed().
|
pure virtual |
Implemented in blender::io::alembic::AbcCameraReader, blender::io::alembic::AbcCurveReader, blender::io::alembic::AbcEmptyReader, blender::io::alembic::AbcMeshReader, blender::io::alembic::AbcNurbsReader, blender::io::alembic::AbcPointsReader, and blender::io::alembic::AbcSubDReader.
Referenced by import_file().
|
virtual |
Returns the transform of this object. This can be the Alembic object itself (in case of an Empty) or it can be the parent Alembic object.
Definition at line 187 of file abc_reader_object.cc.
References m_iobject, and printf.
Referenced by blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), determine_inherits_xform(), and read_matrix().
|
protected |
Definition at line 72 of file abc_reader_object.h.
Referenced by AbcObjectReader(), data_name(), blender::io::alembic::AbcCameraReader::readObjectData(), blender::io::alembic::AbcCurveReader::readObjectData(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcNurbsReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), and blender::io::alembic::AbcSubDReader::readObjectData().
|
protected |
Definition at line 91 of file abc_reader_object.h.
Referenced by determine_inherits_xform(), inherits_xform(), and read_matrix().
|
protected |
Definition at line 74 of file abc_reader_object.h.
Referenced by blender::io::alembic::AbcCameraReader::AbcCameraReader(), blender::io::alembic::AbcCurveReader::AbcCurveReader(), blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), blender::io::alembic::AbcMeshReader::AbcMeshReader(), blender::io::alembic::AbcNurbsReader::AbcNurbsReader(), AbcObjectReader(), blender::io::alembic::AbcPointsReader::AbcPointsReader(), blender::io::alembic::AbcSubDReader::AbcSubDReader(), addCacheModifier(), iobject(), blender::io::alembic::AbcCurveReader::read_curves_sample(), blender::io::alembic::AbcPointsReader::read_geometry(), blender::io::alembic::AbcMeshReader::read_mesh(), blender::io::alembic::AbcNurbsReader::readObjectData(), setupObjectTransform(), blender::io::alembic::AbcMeshReader::topology_changed(), and xform().
|
protected |
Definition at line 82 of file abc_reader_object.h.
Referenced by AbcObjectReader(), and blender::io::alembic::AbcMeshReader::topology_changed().
|
protected |
Definition at line 85 of file abc_reader_object.h.
Referenced by blender::io::alembic::AbcCameraReader::AbcCameraReader(), blender::io::alembic::AbcCurveReader::AbcCurveReader(), blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), blender::io::alembic::AbcMeshReader::AbcMeshReader(), blender::io::alembic::AbcNurbsReader::AbcNurbsReader(), AbcObjectReader(), blender::io::alembic::AbcPointsReader::AbcPointsReader(), blender::io::alembic::AbcSubDReader::AbcSubDReader(), and maxTime().
|
protected |
Definition at line 84 of file abc_reader_object.h.
Referenced by blender::io::alembic::AbcCameraReader::AbcCameraReader(), blender::io::alembic::AbcCurveReader::AbcCurveReader(), blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), blender::io::alembic::AbcMeshReader::AbcMeshReader(), blender::io::alembic::AbcNurbsReader::AbcNurbsReader(), AbcObjectReader(), blender::io::alembic::AbcPointsReader::AbcPointsReader(), blender::io::alembic::AbcSubDReader::AbcSubDReader(), and minTime().
|
protected |
Definition at line 70 of file abc_reader_object.h.
Referenced by AbcObjectReader(), and name().
|
protected |
Definition at line 73 of file abc_reader_object.h.
Referenced by AbcObjectReader(), addCacheModifier(), object(), object(), read_matrix(), blender::io::alembic::AbcCameraReader::readObjectData(), blender::io::alembic::AbcCurveReader::readObjectData(), blender::io::alembic::AbcEmptyReader::readObjectData(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcNurbsReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), blender::io::alembic::AbcSubDReader::readObjectData(), and setupObjectTransform().
|
protected |
Definition at line 71 of file abc_reader_object.h.
Referenced by blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), AbcObjectReader(), object_name(), blender::io::alembic::AbcCameraReader::readObjectData(), blender::io::alembic::AbcCurveReader::readObjectData(), blender::io::alembic::AbcEmptyReader::readObjectData(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcNurbsReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), and blender::io::alembic::AbcSubDReader::readObjectData().
|
protected |
Definition at line 89 of file abc_reader_object.h.
Referenced by AbcObjectReader(), decref(), incref(), and refcount().
|
protected |
Definition at line 79 of file abc_reader_object.h.
Referenced by blender::io::alembic::AbcMeshReader::AbcMeshReader(), AbcObjectReader(), blender::io::alembic::AbcSubDReader::AbcSubDReader(), addCacheModifier(), blender::io::alembic::AbcCurveReader::readObjectData(), blender::io::alembic::AbcMeshReader::readObjectData(), blender::io::alembic::AbcPointsReader::readObjectData(), blender::io::alembic::AbcSubDReader::readObjectData(), and setupObjectTransform().
| AbcObjectReader* blender::io::alembic::AbcObjectReader::parent_reader |
Definition at line 94 of file abc_reader_object.h.
Referenced by AbcObjectReader(), and import_file().