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

#include <hydra_scene_delegate.hh>

Inherits pxr::HdSceneDelegate.

Classes

struct  ShadingSettings
 

Public Member Functions

 HydraSceneDelegate (pxr::HdRenderIndex *parent_index, pxr::SdfPath const &delegate_id, bool use_materialx)
 
 ~HydraSceneDelegate () override=default
 
pxr::HdMeshTopology GetMeshTopology (pxr::SdfPath const &id) override
 
pxr::HdBasisCurvesTopology GetBasisCurvesTopology (pxr::SdfPath const &id) override
 
pxr::GfMatrix4d GetTransform (pxr::SdfPath const &id) override
 
pxr::VtValue Get (pxr::SdfPath const &id, pxr::TfToken const &key) override
 
pxr::VtValue GetLightParamValue (pxr::SdfPath const &id, pxr::TfToken const &key) override
 
pxr::HdPrimvarDescriptorVector GetPrimvarDescriptors (pxr::SdfPath const &id, pxr::HdInterpolation interpolation) override
 
pxr::SdfPath GetMaterialId (pxr::SdfPath const &rprim_id) override
 
pxr::VtValue GetMaterialResource (pxr::SdfPath const &material_id) override
 
bool GetVisible (pxr::SdfPath const &id) override
 
bool GetDoubleSided (pxr::SdfPath const &id) override
 
pxr::HdCullStyle GetCullStyle (pxr::SdfPath const &id) override
 
pxr::SdfPath GetInstancerId (pxr::SdfPath const &prim_id) override
 
pxr::SdfPathVector GetInstancerPrototypes (pxr::SdfPath const &instancer_id) override
 
pxr::VtIntArray GetInstanceIndices (pxr::SdfPath const &instancer_id, pxr::SdfPath const &prototype_id) override
 
pxr::GfMatrix4d GetInstancerTransform (pxr::SdfPath const &instancer_id) override
 
pxr::HdVolumeFieldDescriptorVector GetVolumeFieldDescriptors (pxr::SdfPath const &volume_id) override
 
void populate (Depsgraph *depsgraph, View3D *v3d)
 
void clear ()
 

Public Attributes

Depsgraph * depsgraph = nullptr
 
const View3Dview3d = nullptr
 
Mainbmain = nullptr
 
Scenescene = nullptr
 
ShadingSettings shading_settings
 
bool use_materialx = true
 

Detailed Description

Definition at line 36 of file hydra_scene_delegate.hh.

Constructor & Destructor Documentation

◆ HydraSceneDelegate()

blender::io::hydra::HydraSceneDelegate::HydraSceneDelegate ( pxr::HdRenderIndex * parent_index,
pxr::SdfPath const & delegate_id,
bool use_materialx )

Definition at line 35 of file hydra_scene_delegate.cc.

◆ ~HydraSceneDelegate()

blender::io::hydra::HydraSceneDelegate::~HydraSceneDelegate ( )
overridedefault

Member Function Documentation

◆ clear()

◆ Get()

pxr::VtValue blender::io::hydra::HydraSceneDelegate::Get ( pxr::SdfPath const & id,
pxr::TfToken const & key )
override

◆ GetBasisCurvesTopology()

pxr::HdBasisCurvesTopology blender::io::hydra::HydraSceneDelegate::GetBasisCurvesTopology ( pxr::SdfPath const & id)
override

◆ GetCullStyle()

pxr::HdCullStyle blender::io::hydra::HydraSceneDelegate::GetCullStyle ( pxr::SdfPath const & id)
override

◆ GetDoubleSided()

bool blender::io::hydra::HydraSceneDelegate::GetDoubleSided ( pxr::SdfPath const & id)
override

◆ GetInstanceIndices()

pxr::VtIntArray blender::io::hydra::HydraSceneDelegate::GetInstanceIndices ( pxr::SdfPath const & instancer_id,
pxr::SdfPath const & prototype_id )
override

◆ GetInstancerId()

pxr::SdfPath blender::io::hydra::HydraSceneDelegate::GetInstancerId ( pxr::SdfPath const & prim_id)
override

◆ GetInstancerPrototypes()

pxr::SdfPathVector blender::io::hydra::HydraSceneDelegate::GetInstancerPrototypes ( pxr::SdfPath const & instancer_id)
override

◆ GetInstancerTransform()

pxr::GfMatrix4d blender::io::hydra::HydraSceneDelegate::GetInstancerTransform ( pxr::SdfPath const & instancer_id)
override

◆ GetLightParamValue()

pxr::VtValue blender::io::hydra::HydraSceneDelegate::GetLightParamValue ( pxr::SdfPath const & id,
pxr::TfToken const & key )
override

◆ GetMaterialId()

pxr::SdfPath blender::io::hydra::HydraSceneDelegate::GetMaterialId ( pxr::SdfPath const & rprim_id)
override

◆ GetMaterialResource()

pxr::VtValue blender::io::hydra::HydraSceneDelegate::GetMaterialResource ( pxr::SdfPath const & material_id)
override

◆ GetMeshTopology()

pxr::HdMeshTopology blender::io::hydra::HydraSceneDelegate::GetMeshTopology ( pxr::SdfPath const & id)
override

Definition at line 44 of file hydra_scene_delegate.cc.

References CLOG_INFO, blender::io::hydra::LOG_HYDRA_SCENE, and m_data.

◆ GetPrimvarDescriptors()

pxr::HdPrimvarDescriptorVector blender::io::hydra::HydraSceneDelegate::GetPrimvarDescriptors ( pxr::SdfPath const & id,
pxr::HdInterpolation interpolation )
override

◆ GetTransform()

pxr::GfMatrix4d blender::io::hydra::HydraSceneDelegate::GetTransform ( pxr::SdfPath const & id)
override

◆ GetVisible()

bool blender::io::hydra::HydraSceneDelegate::GetVisible ( pxr::SdfPath const & id)
override

◆ GetVolumeFieldDescriptors()

pxr::HdVolumeFieldDescriptorVector blender::io::hydra::HydraSceneDelegate::GetVolumeFieldDescriptors ( pxr::SdfPath const & volume_id)
override

◆ populate()

void blender::io::hydra::HydraSceneDelegate::populate ( Depsgraph * depsgraph,
View3D * v3d )

Definition at line 205 of file hydra_scene_delegate.cc.

References bmain, DEG_get_bmain(), DEG_get_input_scene(), depsgraph, and view3d.

Member Data Documentation

◆ bmain

Main* blender::io::hydra::HydraSceneDelegate::bmain = nullptr

◆ depsgraph

◆ scene

Scene* blender::io::hydra::HydraSceneDelegate::scene = nullptr

◆ shading_settings

ShadingSettings blender::io::hydra::HydraSceneDelegate::shading_settings

◆ use_materialx

bool blender::io::hydra::HydraSceneDelegate::use_materialx = true

Definition at line 57 of file hydra_scene_delegate.hh.

Referenced by blender::io::hydra::MaterialData::init().

◆ view3d

const View3D* blender::io::hydra::HydraSceneDelegate::view3d = nullptr

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