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 namespace osp {
35  struct Texture2D;
36  struct Renderer;
37  struct Material;
38 }
39 
40 #include <map>
41 
42 class vtkImageData;
44 
46 
50  osp::Texture2D* VTKToOSPTexture(vtkImageData *vColorTextureMap);
51 
56  osp::Renderer *oRenderer,
57  std::map<std::string, osp::Material*> &mats);
58 
65  osp::Renderer *oRenderer,
66  std::string nickname);
67 
68 }
69 #endif
70 // VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
void MakeMaterials(vtkOSPRayRendererNode *orn, osp::Renderer *oRenderer, std::map< std::string, osp::Material * > &mats)
Construct a set of ospray materials for all of the material names.
osp::Material * MakeMaterial(vtkOSPRayRendererNode *orn, osp::Renderer *oRenderer, std::string nickname)
Construct one ospray material within the given renderer that corresponds to the visual characteristic...
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
links vtkRenderers to OSPRay
osp::Texture2D * VTKToOSPTexture(vtkImageData *vColorTextureMap)
Manufacture an ospray texture from a 2d vtkImageData.