VTK  9.3.20240418
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. More...
 
OSPTexture VTKToOSPTexture (RTW::Backend *backend, vtkImageData *vColorTextureMap, bool isSRGB=false)
 Manufacture an ospray texture from a 2d vtkImageData. More...
 
void MakeMaterials (vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::map< std::string, OSPMaterial > &mats)
 Construct a set of ospray materials for all of the material names. More...
 
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. More...
 
OSPMaterial NewMaterial (vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
 Wraps ospNewMaterial. More...
 

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.