Blender V5.3
blender::io::alembic::AbcObjectReader Class Referenceabstract

#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 AbcReaderConstructorArgs &args)
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
bool has_visibility_keyframes () 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, const AbcReadGeometryParams &read_params, const char **r_err_str)
virtual bool topology_changed (const Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel)
void getKeyFramingHelpers (Vector< std::unique_ptr< FCurveCreationHelper > > &keyframing_helpers)
virtual std::unique_ptr< FCurveCreationHelper > getKeyFramingHelper ()
void setupObjectTransform (chrono_t time)
void addCacheModifier ()
void readVisibility ()
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
int m_refcount
bool m_inherits_xform
bool m_has_visibility_keyframes = false

Detailed Description

Definition at line 90 of file abc_reader_object.h.

Member Typedef Documentation

◆ ptr_vector

Constructor & Destructor Documentation

◆ AbcObjectReader()

◆ ~AbcObjectReader()

virtual blender::io::alembic::AbcObjectReader::~AbcObjectReader ( )
virtualdefault

References iobject().

Member Function Documentation

◆ accepts_object_type()

virtual bool blender::io::alembic::AbcObjectReader::accepts_object_type ( const Alembic::AbcCoreAbstract::ObjectHeader & alembic_header,
const Object *const ob,
const char ** r_err_str ) const
pure virtual

◆ addCacheModifier()

◆ data_name()

const std::string & blender::io::alembic::AbcObjectReader::data_name ( ) const
inline

Definition at line 143 of file abc_reader_object.h.

References m_data_name.

◆ decref()

void blender::io::alembic::AbcObjectReader::decref ( )

◆ determine_inherits_xform()

void blender::io::alembic::AbcObjectReader::determine_inherits_xform ( )
protected

Determine whether we can inherit our parent's XForm.

Definition at line 78 of file abc_reader_object.cc.

References m_inherits_xform, and xform().

Referenced by AbcObjectReader(), and readObjectData().

◆ getKeyFramingHelper()

std::unique_ptr< FCurveCreationHelper > blender::io::alembic::AbcObjectReader::getKeyFramingHelper ( )
virtual

Reimplemented in blender::io::alembic::AbcCameraReader.

Definition at line 256 of file abc_reader_object.cc.

Referenced by getKeyFramingHelpers(), and readObjectData().

◆ getKeyFramingHelpers()

void blender::io::alembic::AbcObjectReader::getKeyFramingHelpers ( Vector< std::unique_ptr< FCurveCreationHelper > > & keyframing_helpers)

◆ has_visibility_keyframes()

bool blender::io::alembic::AbcObjectReader::has_visibility_keyframes ( ) const
inline

Definition at line 151 of file abc_reader_object.h.

References m_has_visibility_keyframes.

Referenced by blender::import_endjob().

◆ incref()

void blender::io::alembic::AbcObjectReader::incref ( )

◆ inherits_xform()

bool blender::io::alembic::AbcObjectReader::inherits_xform ( ) const
inline

Definition at line 147 of file abc_reader_object.h.

References m_inherits_xform.

Referenced by blender::import_file().

◆ iobject()

const IObject & blender::io::alembic::AbcObjectReader::iobject ( ) const

Definition at line 107 of file abc_reader_object.cc.

References m_iobject.

Referenced by blender::get_abc_reader(), and ~AbcObjectReader().

◆ name()

const std::string & blender::io::alembic::AbcObjectReader::name ( ) const
inline

Definition at line 135 of file abc_reader_object.h.

References m_name.

Referenced by blender::import_file().

◆ object() [1/2]

Object * blender::io::alembic::AbcObjectReader::object ( ) const

◆ object() [2/2]

void blender::io::alembic::AbcObjectReader::object ( Object * ob)

Definition at line 117 of file abc_reader_object.cc.

References m_object.

◆ object_name()

const std::string & blender::io::alembic::AbcObjectReader::object_name ( ) const
inline

Definition at line 139 of file abc_reader_object.h.

References m_object_name.

◆ read_geometry()

void blender::io::alembic::AbcObjectReader::read_geometry ( bke::GeometrySet & geometry_set,
const Alembic::Abc::ISampleSelector & sample_sel,
const AbcReadGeometryParams & read_params,
const char ** r_err_str )
virtual

◆ read_matrix()

◆ readObjectData()

◆ readVisibility()

void blender::io::alembic::AbcObjectReader::readVisibility ( )

◆ refcount()

int blender::io::alembic::AbcObjectReader::refcount ( ) const

◆ setupObjectTransform()

◆ topology_changed()

bool blender::io::alembic::AbcObjectReader::topology_changed ( const Mesh * existing_mesh,
const Alembic::Abc::ISampleSelector & sample_sel )
virtual

◆ valid()

◆ xform()

Alembic::AbcGeom::IXform blender::io::alembic::AbcObjectReader::xform ( )
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 289 of file abc_reader_object.cc.

References CLOG_WARN, blender::io::alembic::LOG, and m_iobject.

Referenced by blender::io::alembic::AbcEmptyReader::AbcEmptyReader(), determine_inherits_xform(), and read_matrix().

Member Data Documentation

◆ m_data_name

◆ m_has_visibility_keyframes

bool blender::io::alembic::AbcObjectReader::m_has_visibility_keyframes = false
protected

Definition at line 112 of file abc_reader_object.h.

Referenced by getKeyFramingHelpers(), and has_visibility_keyframes().

◆ m_inherits_xform

bool blender::io::alembic::AbcObjectReader::m_inherits_xform
protected

Definition at line 110 of file abc_reader_object.h.

Referenced by determine_inherits_xform(), inherits_xform(), and read_matrix().

◆ m_iobject

◆ m_is_reading_a_file_sequence

bool blender::io::alembic::AbcObjectReader::m_is_reading_a_file_sequence = false
protected

◆ m_name

std::string blender::io::alembic::AbcObjectReader::m_name
protected

Definition at line 92 of file abc_reader_object.h.

Referenced by AbcObjectReader(), and name().

◆ m_object

◆ m_object_name

◆ m_refcount

int blender::io::alembic::AbcObjectReader::m_refcount
protected

Definition at line 108 of file abc_reader_object.h.

Referenced by AbcObjectReader(), decref(), incref(), and refcount().

◆ m_settings

◆ parent_reader

AbcObjectReader* blender::io::alembic::AbcObjectReader::parent_reader

Definition at line 115 of file abc_reader_object.h.

Referenced by AbcObjectReader(), and blender::import_file().


The documentation for this class was generated from the following files: