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 "ospray/ospray.h"
35 #include <map>
36 
37 class vtkImageData;
39 
41 
45  osp::Texture2D *VTKToOSPTexture(vtkImageData *vColorTextureMap);
46 
51  OSPRenderer oRenderer,
52  std::map<std::string, OSPMaterial> &mats);
53 
59  OSPMaterial MakeMaterial(vtkOSPRayRendererNode *orn,
60  OSPRenderer oRenderer,
61  std::string nickname);
62 
63 }
64 #endif
65 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
osp::Renderer * OSPRenderer
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
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
osp::Texture2D * VTKToOSPTexture(vtkImageData *vColorTextureMap)
Manufacture an ospray texture from a 2d vtkImageData.