|
Blender V5.0
|
#include <curves.hh>
Inherits blender::io::hydra::ObjectData.
Inherited by blender::io::hydra::HairData.
Public Member Functions | |
| CurvesData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| void | init () override |
| void | insert () override |
| void | remove () override |
| void | update () override |
| pxr::VtValue | get_data (pxr::TfToken const &key) const override |
| pxr::SdfPath | material_id () const override |
| void | available_materials (Set< pxr::SdfPath > &paths) const override |
| pxr::HdBasisCurvesTopology | topology () const |
| pxr::HdPrimvarDescriptorVector | primvar_descriptors (pxr::HdInterpolation interpolation) const |
| Public Member Functions inherited from blender::io::hydra::ObjectData | |
| ObjectData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| virtual pxr::VtValue | get_data (pxr::SdfPath const &id, pxr::TfToken const &key) const |
| virtual pxr::SdfPath | material_id (pxr::SdfPath const &id) const |
| virtual pxr::VtValue | get_data (pxr::TfToken const &key) const=0 |
| Public Member Functions inherited from blender::io::hydra::IdData | |
| IdData (HydraSceneDelegate *scene_delegate, const ID *id, pxr::SdfPath const &prim_id) | |
| virtual | ~IdData ()=default |
Protected Member Functions | |
| void | write_materials () override |
| virtual void | write_curves () |
| Protected Member Functions inherited from blender::io::hydra::ObjectData | |
| virtual void | write_transform () |
| MaterialData * | get_or_create_material (const Material *mat) |
Protected Attributes | |
| pxr::VtIntArray | curve_vertex_counts_ |
| pxr::VtVec3fArray | vertices_ |
| pxr::VtVec2fArray | uvs_ |
| pxr::VtFloatArray | widths_ |
| MaterialData * | mat_data_ = nullptr |
| Protected Attributes inherited from blender::io::hydra::IdData | |
| HydraSceneDelegate * | scene_delegate_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from blender::io::hydra::ObjectData | |
| static std::unique_ptr< ObjectData > | create (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) |
| static bool | is_supported (const Object *object) |
| static bool | is_mesh (const Object *object) |
| static bool | is_visible (HydraSceneDelegate *scene_delegate, const Object *object, int mode=OB_VISIBLE_SELF) |
| Public Attributes inherited from blender::io::hydra::ObjectData | |
| pxr::GfMatrix4d | transform |
| bool | visible = true |
| Public Attributes inherited from blender::io::hydra::IdData | |
| const ID * | id |
| pxr::SdfPath | prim_id |
| blender::io::hydra::CurvesData::CurvesData | ( | HydraSceneDelegate * | scene_delegate, |
| const Object * | object, | ||
| pxr::SdfPath const & | prim_id ) |
Definition at line 30 of file io/usd/hydra/curves.cc.
References blender::io::hydra::ObjectData::ObjectData(), and blender::io::hydra::IdData::prim_id.
Referenced by blender::io::hydra::HairData::HairData().
|
overridevirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 106 of file io/usd/hydra/curves.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), and mat_data_.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 84 of file io/usd/hydra/curves.cc.
References blender::io::hydra::usdtokens::st(), uvs_, vertices_, and widths_.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 37 of file io/usd/hydra/curves.cc.
References ID_LOGN, write_curves(), write_materials(), and blender::io::hydra::ObjectData::write_transform().
Referenced by update(), and blender::io::hydra::HairData::update().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 46 of file io/usd/hydra/curves.cc.
References ID_LOGN, blender::io::hydra::IdData::prim_id, and blender::io::hydra::IdData::scene_delegate_.
|
overridevirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 98 of file io/usd/hydra/curves.cc.
References mat_data_.
| pxr::HdPrimvarDescriptorVector blender::io::hydra::CurvesData::primvar_descriptors | ( | pxr::HdInterpolation | interpolation | ) | const |
Definition at line 122 of file io/usd/hydra/curves.cc.
References blender::io::hydra::usdtokens::st(), uvs_, vertices_, and widths_.
Referenced by blender::io::hydra::HydraSceneDelegate::GetPrimvarDescriptors().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 53 of file io/usd/hydra/curves.cc.
References ID_LOG, blender::io::hydra::IdData::prim_id, and blender::io::hydra::IdData::scene_delegate_.
| pxr::HdBasisCurvesTopology blender::io::hydra::CurvesData::topology | ( | ) | const |
Definition at line 113 of file io/usd/hydra/curves.cc.
References curve_vertex_counts_.
Referenced by blender::io::hydra::HydraSceneDelegate::GetBasisCurvesTopology().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Reimplemented in blender::io::hydra::HairData.
Definition at line 59 of file io/usd/hydra/curves.cc.
References Object::data, blender::io::hydra::IdData::id, ID_LOGN, ID_RECALC_GEOMETRY, ID_RECALC_SHADING, ID_RECALC_TRANSFORM, init(), blender::io::hydra::IdData::prim_id, blender::io::hydra::IdData::scene_delegate_, write_materials(), and blender::io::hydra::ObjectData::write_transform().
|
protectedvirtual |
Reimplemented in blender::io::hydra::HairData.
Definition at line 154 of file io/usd/hydra/curves.cc.
References blender::bke::CurvesGeometry::attributes(), blender::Span< T >::cast(), blender::MutableSpan< T >::copy_from(), blender::offset_indices::copy_group_sizes(), curve_vertex_counts_, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), Object::data, Curves::geometry, i, blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::points_range(), blender::bke::CurvesGeometry::positions(), blender::bke::CurvesGeometry::surface_uv_coords(), uvs_, vertices_, and widths_.
Referenced by init().
|
overrideprotectedvirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 143 of file io/usd/hydra/curves.cc.
References BKE_object_material_count_eval(), BKE_object_material_get_eval(), blender::io::hydra::ObjectData::get_or_create_material(), and mat_data_.
|
protected |
Definition at line 21 of file curves.hh.
Referenced by topology(), write_curves(), and blender::io::hydra::HairData::write_curves().
|
protected |
Definition at line 26 of file curves.hh.
Referenced by available_materials(), material_id(), and write_materials().
|
protected |
Definition at line 23 of file curves.hh.
Referenced by get_data(), primvar_descriptors(), write_curves(), and blender::io::hydra::HairData::write_curves().
|
protected |
Definition at line 22 of file curves.hh.
Referenced by get_data(), primvar_descriptors(), write_curves(), and blender::io::hydra::HairData::write_curves().
|
protected |
Definition at line 24 of file curves.hh.
Referenced by get_data(), primvar_descriptors(), write_curves(), and blender::io::hydra::HairData::write_curves().