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

#include <mesh.hh>

Inherits blender::io::hydra::ObjectData.

Classes

struct  SubMesh
 

Public Member Functions

 MeshData (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::VtValue get_data (pxr::SdfPath const &id, pxr::TfToken const &key) const override
 
pxr::SdfPath material_id (pxr::SdfPath const &id) const override
 
void available_materials (Set< pxr::SdfPath > &paths) const override
 
pxr::HdMeshTopology topology (pxr::SdfPath const &id) const
 
pxr::HdPrimvarDescriptorVector primvar_descriptors (pxr::HdInterpolation interpolation) const
 
pxr::HdCullStyle cull_style (pxr::SdfPath const &id) const
 
bool double_sided (pxr::SdfPath const &id) const
 
void update_double_sided (MaterialData *mat_data)
 
pxr::SdfPathVector submesh_paths () const
 
- Public Member Functions inherited from blender::io::hydra::ObjectData
 ObjectData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id)
 
virtual pxr::SdfPath material_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
 
- Protected Member Functions inherited from blender::io::hydra::ObjectData
virtual void write_transform ()
 
MaterialDataget_or_create_material (const Material *mat)
 

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
 
- Protected Attributes inherited from blender::io::hydra::IdData
HydraSceneDelegatescene_delegate_
 

Detailed Description

Definition at line 19 of file mesh.hh.

Constructor & Destructor Documentation

◆ MeshData()

blender::io::hydra::MeshData::MeshData ( HydraSceneDelegate * scene_delegate,
const Object * object,
pxr::SdfPath const & prim_id )

Definition at line 28 of file io/usd/hydra/mesh.cc.

Member Function Documentation

◆ available_materials()

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

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

Definition at line 121 of file io/usd/hydra/mesh.cc.

◆ cull_style()

pxr::HdCullStyle blender::io::hydra::MeshData::cull_style ( pxr::SdfPath const & id) const

◆ double_sided()

bool blender::io::hydra::MeshData::double_sided ( pxr::SdfPath const & id) const

◆ get_data() [1/2]

pxr::VtValue blender::io::hydra::MeshData::get_data ( pxr::SdfPath const & id,
pxr::TfToken const & key ) const
overridevirtual

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

Definition at line 97 of file io/usd/hydra/mesh.cc.

References get_data(), and blender::io::hydra::usdtokens::st().

◆ get_data() [2/2]

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

Implements blender::io::hydra::IdData.

Definition at line 92 of file io/usd/hydra/mesh.cc.

Referenced by get_data().

◆ init()

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

◆ insert()

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

Implements blender::io::hydra::IdData.

Definition at line 50 of file io/usd/hydra/mesh.cc.

References ID_LOGN.

◆ material_id()

pxr::SdfPath blender::io::hydra::MeshData::material_id ( pxr::SdfPath const & id) const
overridevirtual

◆ primvar_descriptors()

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

Definition at line 139 of file io/usd/hydra/mesh.cc.

References blender::io::hydra::usdtokens::st().

◆ remove()

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

Implements blender::io::hydra::IdData.

Definition at line 56 of file io/usd/hydra/mesh.cc.

References ID_LOG.

◆ submesh_paths()

pxr::SdfPathVector blender::io::hydra::MeshData::submesh_paths ( ) const

Definition at line 189 of file io/usd/hydra/mesh.cc.

References ret.

◆ topology()

pxr::HdMeshTopology blender::io::hydra::MeshData::topology ( pxr::SdfPath const & id) const

◆ update()

◆ update_double_sided()

void blender::io::hydra::MeshData::update_double_sided ( MaterialData * mat_data)

Definition at line 177 of file io/usd/hydra/mesh.cc.

References ID_LOGN, and blender::io::hydra::IdData::scene_delegate_.

◆ write_materials()

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

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