VTK  9.0.1
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, size_t sizeOf);
51 
55 OSPTexture VTKToOSPTexture(RTW::Backend* backend, vtkImageData* vColorTextureMap);
56 
60 void MakeMaterials(
61  vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::map<std::string, OSPMaterial>& mats);
62 
69 
74 
75 }
76 #endif
77 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
#define OSPTexture
Definition: RTWrapper.h:21
#define OSPTextureFormat
Definition: RTWrapper.h:22
#define OSPMaterial
Definition: RTWrapper.h:23
OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial.
OSPTexture VTKToOSPTexture(RTW::Backend *backend, vtkImageData *vColorTextureMap)
Manufacture an ospray texture from a 2d vtkImageData.
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
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:15
OSPTexture NewTexture2D(RTW::Backend *backend, const osp::vec2i &size, const OSPTextureFormat type, void *data, const uint32_t _flags, size_t sizeOf)
Helper function to make a 2d OSPRay Texture.
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