VTK  9.2.6
vtkOSPRayMaterialHelpers.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayMaterial.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkOSPRayMaterialHelpers_h
32 #define vtkOSPRayMaterialHelpers_h
33 
34 #include <map>
35 #include <string>
36 
37 #include "RTWrapper/RTWrapper.h" // for handle types
38 
39 class vtkImageData;
41 
43 {
44 
49 OSPTexture NewTexture2D(RTW::Backend* backend, const osp::vec2i& size, const OSPTextureFormat type,
50  void* data, const uint32_t _flags);
51 
57  RTW::Backend* backend, vtkImageData* vColorTextureMap, bool isSRGB = false);
58 
62 void MakeMaterials(
63  vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::map<std::string, OSPMaterial>& mats);
64 
71 
76 
77 }
78 #endif
79 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
#define OSPTexture
Definition: RTWrapper.h:24
#define OSPTextureFormat
Definition: RTWrapper.h:25
#define OSPMaterial
Definition: RTWrapper.h:26
OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial.
OSPTexture VTKToOSPTexture(RTW::Backend *backend, vtkImageData *vColorTextureMap, bool isSRGB=false)
Manufacture an ospray texture from a 2d vtkImageData.
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
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.
OSPMaterial MakeMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string nickname)
Construct one ospray material within the given renderer that corresponds to the visual characteristic...
#define OSPRenderer
Definition: RTWrapper.h:16
void MakeMaterials(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::map< std::string, OSPMaterial > &mats)
Construct a set of ospray materials for all of the material names.
links vtkRenderers to OSPRay