VTK: Rendering/RayTracing/vtkOSPRayMaterialHelpers.h Source File

| VTK 9.3.1

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
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkImageData;
29 class vtkOSPRayRendererNode;
30 VTK_ABI_NAMESPACE_END
31
32 namespace vtkOSPRayMaterialHelpers
33 {
34 VTK_ABI_NAMESPACE_BEGIN
35
40 OSPTexture NewTexture2D(RTW::Backend* backend, const osp::vec2i& size, const OSPTextureFormat type,
41 void* data, const uint32_t _flags);
42
47 OSPTexture VTKToOSPTexture(
48 RTW::Backend* backend, vtkImageData* vColorTextureMap, bool isSRGB = false);
49
53 void MakeMaterials(
54 vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::map<std::string, OSPMaterial>& mats);
55
61 OSPMaterial MakeMaterial(vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::string nickname);
62
66 OSPMaterial NewMaterial(vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::string ospMatName);
67
68 VTK_ABI_NAMESPACE_END
69 }
70 #endif
71 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
RTWrapper.h
OSPTextureFormat
#define OSPTextureFormat
Definition: RTWrapper.h:28
OSPRenderer
#define OSPRenderer
Definition: RTWrapper.h:19
OSPTexture
#define OSPTexture
Definition: RTWrapper.h:27
OSPMaterial
#define OSPMaterial
Definition: RTWrapper.h:29
RTW::Backend
Definition: Backend.h:11
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkOSPRayRendererNode
links vtkRenderers to OSPRay
Definition: vtkOSPRayRendererNode.h:42
vtkOSPRayMaterialHelpers
Definition: vtkOSPRayMaterialHelpers.h:33
vtkOSPRayMaterialHelpers::NewTexture2D
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.
vtkOSPRayMaterialHelpers::VTKToOSPTexture
OSPTexture VTKToOSPTexture(RTW::Backend *backend, vtkImageData *vColorTextureMap, bool isSRGB=false)
Manufacture an ospray texture from a 2d vtkImageData.
vtkOSPRayMaterialHelpers::MakeMaterial
OSPMaterial MakeMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string nickname)
Construct one ospray material within the given renderer that corresponds to the visual characteristic...
vtkOSPRayMaterialHelpers::MakeMaterials
void MakeMaterials(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::map< std::string, OSPMaterial > &mats)
Construct a set of ospray materials for all of the material names.
vtkOSPRayMaterialHelpers::NewMaterial
OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial.
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkX3D::string
@ string
Definition: vtkX3D.h:490