VTK  9.4.20241217
Functions
vtkOSPRayMaterialHelpers Namespace Reference

Functions

OSPTexture NewTexture2D (RTW::Backend *backend, const osp::vec2i &size, const OSPTextureFormat type, void *data, const uint32_t _flags)
 Helper function to make a 2d OSPRay Texture.
 
OSPTexture VTKToOSPTexture (RTW::Backend *backend, vtkImageData *vColorTextureMap, bool isSRGB=false)
 Manufacture an ospray texture from a 2d vtkImageData.
 
void MakeMaterials (vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::map< std::string, OSPMaterial > &mats)
 Construct a set of ospray materials for all of the material names.
 
OSPMaterial MakeMaterial (vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string nickname)
 Construct one ospray material within the given renderer that corresponds to the visual characteristics set out in the named material in the material library.
 
OSPMaterial NewMaterial (vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
 Wraps ospNewMaterial.
 

Function Documentation

◆ NewTexture2D()

OSPTexture vtkOSPRayMaterialHelpers::NewTexture2D ( RTW::Backend backend,
const osp::vec2i &  size,
const OSPTextureFormat  type,
void *  data,
const uint32_t  _flags 
)

Helper function to make a 2d OSPRay Texture.

Was promoted from OSPRay because of deprecation there.

◆ VTKToOSPTexture()

OSPTexture vtkOSPRayMaterialHelpers::VTKToOSPTexture ( RTW::Backend backend,
vtkImageData vColorTextureMap,
bool  isSRGB = false 
)

Manufacture an ospray texture from a 2d vtkImageData.

isSRGB can be set to true if the image is 8-bits and sRGB encoded.

◆ MakeMaterials()

void vtkOSPRayMaterialHelpers::MakeMaterials ( vtkOSPRayRendererNode orn,
OSPRenderer  oRenderer,
std::map< std::string, OSPMaterial > &  mats 
)

Construct a set of ospray materials for all of the material names.

◆ MakeMaterial()

OSPMaterial vtkOSPRayMaterialHelpers::MakeMaterial ( vtkOSPRayRendererNode orn,
OSPRenderer  oRenderer,
std::string  nickname 
)

Construct one ospray material within the given renderer that corresponds to the visual characteristics set out in the named material in the material library.

◆ NewMaterial()

OSPMaterial vtkOSPRayMaterialHelpers::NewMaterial ( vtkOSPRayRendererNode orn,
OSPRenderer  oRenderer,
std::string  ospMatName 
)

Wraps ospNewMaterial.