VTK  9.4.20241218
vtkOSPRayMaterialHelpers.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
19#ifndef vtkOSPRayMaterialHelpers_h
20#define vtkOSPRayMaterialHelpers_h
21
22#include <map>
23#include <string>
24
25#include "RTWrapper/RTWrapper.h" // for handle types
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkImageData;
30VTK_ABI_NAMESPACE_END
31
33{
34VTK_ABI_NAMESPACE_BEGIN
35
40OSPTexture NewTexture2D(RTW::Backend* backend, const osp::vec2i& size, const OSPTextureFormat type,
41 void* data, const uint32_t _flags);
42
48 RTW::Backend* backend, vtkImageData* vColorTextureMap, bool isSRGB = false);
49
54 vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::map<std::string, OSPMaterial>& mats);
55
61OSPMaterial MakeMaterial(vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::string nickname);
62
66OSPMaterial NewMaterial(vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::string ospMatName);
67
68VTK_ABI_NAMESPACE_END
69}
70#endif
71// VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
#define OSPTextureFormat
Definition RTWrapper.h:28
#define OSPRenderer
Definition RTWrapper.h:19
#define OSPTexture
Definition RTWrapper.h:27
#define OSPMaterial
Definition RTWrapper.h:29
topologically and geometrically regular array of data
links vtkRenderers to OSPRay
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.
OSPMaterial MakeMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string nickname)
Construct one ospray material within the given renderer that corresponds to the visual characteristic...
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 NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial.