VTK
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 
36 #include "ospray/ospray.h" // for ospray handle types
37 
38 class vtkImageData;
40 
42 
46  OSPTexture2D VTKToOSPTexture(vtkImageData *vColorTextureMap);
47 
52  OSPRenderer oRenderer,
53  std::map<std::string, OSPMaterial> &mats);
54 
60  OSPMaterial MakeMaterial(vtkOSPRayRendererNode *orn,
61  OSPRenderer oRenderer,
62  std::string nickname);
63 
67  OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn,
68  OSPRenderer oRenderer,
69  std::string ospMatName);
70 
71 }
72 #endif
73 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial or ospNewMaterial2, depending on OSPRay version.
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
OSPTexture2D VTKToOSPTexture(vtkImageData *vColorTextureMap)
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.
links vtkRenderers to OSPRay