VTK
9.4.20241217
|
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. | |
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.
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.
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.
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.
OSPMaterial vtkOSPRayMaterialHelpers::NewMaterial | ( | vtkOSPRayRendererNode * | orn, |
OSPRenderer | oRenderer, | ||
std::string | ospMatName | ||
) |
Wraps ospNewMaterial.