Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/intern/abc_reader_object.h
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | struct ImportSettings { | ||||
| /* Length and frame offset of file sequences. */ | /* Length and frame offset of file sequences. */ | ||||
| int sequence_len; | int sequence_len; | ||||
| int sequence_offset; | int sequence_offset; | ||||
| /* From MeshSeqCacheModifierData.read_flag */ | /* From MeshSeqCacheModifierData.read_flag */ | ||||
| int read_flag; | int read_flag; | ||||
| /* From CacheFile and MeshSeqCacheModifierData */ | |||||
| std::string velocity_name; | |||||
| float velocity_scale; | |||||
| bool validate_meshes; | bool validate_meshes; | ||||
| bool always_add_cache_reader; | bool always_add_cache_reader; | ||||
| CacheFile *cache_file; | CacheFile *cache_file; | ||||
| ImportSettings() | ImportSettings() | ||||
| : do_convert_mat(false), | : do_convert_mat(false), | ||||
| from_up(0), | from_up(0), | ||||
| from_forward(0), | from_forward(0), | ||||
| scale(1.0f), | scale(1.0f), | ||||
| is_sequence(false), | is_sequence(false), | ||||
| set_frame_range(false), | set_frame_range(false), | ||||
| sequence_len(1), | sequence_len(1), | ||||
| sequence_offset(0), | sequence_offset(0), | ||||
| read_flag(0), | read_flag(0), | ||||
| velocity_name(""), | |||||
| velocity_scale(1.0f), | |||||
| validate_meshes(false), | validate_meshes(false), | ||||
| always_add_cache_reader(false), | always_add_cache_reader(false), | ||||
| cache_file(NULL) | cache_file(NULL) | ||||
| { | { | ||||
| } | } | ||||
| }; | }; | ||||
| template<typename Schema> static bool has_animations(Schema &schema, ImportSettings *settings) | template<typename Schema> static bool has_animations(Schema &schema, ImportSettings *settings) | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public: | ||||
| virtual bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, | virtual bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, | ||||
| const Object *const ob, | const Object *const ob, | ||||
| const char **err_str) const = 0; | const char **err_str) const = 0; | ||||
| virtual void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) = 0; | virtual void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) = 0; | ||||
| virtual struct Mesh *read_mesh(struct Mesh *mesh, | virtual struct Mesh *read_mesh(struct Mesh *mesh, | ||||
| const Alembic::Abc::ISampleSelector &sample_sel, | const Alembic::Abc::ISampleSelector &sample_sel, | ||||
| int read_flag, | const int read_flag, | ||||
| const char *velocity_name, | |||||
| const float velocity_scale, | |||||
| const char **err_str); | const char **err_str); | ||||
| virtual bool topology_changed(Mesh *existing_mesh, | virtual bool topology_changed(Mesh *existing_mesh, | ||||
| const Alembic::Abc::ISampleSelector &sample_sel); | const Alembic::Abc::ISampleSelector &sample_sel); | ||||
| /** Reads the object matrix and sets up an object transform if animated. */ | /** Reads the object matrix and sets up an object transform if animated. */ | ||||
| void setupObjectTransform(const float time); | void setupObjectTransform(const float time); | ||||
| void addCacheModifier(); | void addCacheModifier(); | ||||
| Show All 17 Lines | |||||