Blender V4.3
blender::io::hydra::CurvesData Class Reference

#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 ()
 
MaterialDataget_or_create_material (const Material *mat)
 

Protected Attributes

pxr::VtIntArray curve_vertex_counts_
 
pxr::VtVec3fArray vertices_
 
pxr::VtVec2fArray uvs_
 
pxr::VtFloatArray widths_
 
MaterialDatamat_data_ = nullptr
 
- Protected Attributes inherited from blender::io::hydra::IdData
HydraSceneDelegatescene_delegate_
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::io::hydra::ObjectData
static std::unique_ptr< ObjectDatacreate (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 IDid
 
pxr::SdfPath prim_id
 

Detailed Description

Definition at line 22 of file curves.hh.

Constructor & Destructor Documentation

◆ CurvesData()

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.

Member Function Documentation

◆ available_materials()

void blender::io::hydra::CurvesData::available_materials ( Set< pxr::SdfPath > & paths) const
overridevirtual

Reimplemented from blender::io::hydra::ObjectData.

Definition at line 106 of file io/usd/hydra/curves.cc.

References mat_data_, and blender::io::hydra::IdData::prim_id.

◆ get_data()

pxr::VtValue blender::io::hydra::CurvesData::get_data ( pxr::TfToken const & key) const
overridevirtual

◆ init()

void blender::io::hydra::CurvesData::init ( )
overridevirtual

◆ insert()

void blender::io::hydra::CurvesData::insert ( )
overridevirtual

◆ material_id()

pxr::SdfPath blender::io::hydra::CurvesData::material_id ( ) const
overridevirtual

Reimplemented from blender::io::hydra::ObjectData.

Definition at line 98 of file io/usd/hydra/curves.cc.

References mat_data_, and blender::io::hydra::IdData::prim_id.

◆ primvar_descriptors()

pxr::HdPrimvarDescriptorVector blender::io::hydra::CurvesData::primvar_descriptors ( pxr::HdInterpolation interpolation) const

◆ remove()

void blender::io::hydra::CurvesData::remove ( )
overridevirtual

◆ topology()

pxr::HdBasisCurvesTopology blender::io::hydra::CurvesData::topology ( ) const

◆ update()

◆ write_curves()

◆ write_materials()

void blender::io::hydra::CurvesData::write_materials ( )
overrideprotectedvirtual

Member Data Documentation

◆ curve_vertex_counts_

pxr::VtIntArray blender::io::hydra::CurvesData::curve_vertex_counts_
protected

Definition at line 24 of file curves.hh.

Referenced by topology(), write_curves(), and blender::io::hydra::HairData::write_curves().

◆ mat_data_

MaterialData* blender::io::hydra::CurvesData::mat_data_ = nullptr
protected

Definition at line 29 of file curves.hh.

Referenced by available_materials(), material_id(), and write_materials().

◆ uvs_

pxr::VtVec2fArray blender::io::hydra::CurvesData::uvs_
protected

◆ vertices_

pxr::VtVec3fArray blender::io::hydra::CurvesData::vertices_
protected

◆ widths_

pxr::VtFloatArray blender::io::hydra::CurvesData::widths_
protected

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