VTK  9.1.0
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
39class vtkImageData;
41
43{
44
49OSPTexture 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
63 vtkOSPRayRendererNode* orn, OSPRenderer oRenderer, std::map<std::string, OSPMaterial>& mats);
64
71
76
77}
78#endif
79// VTK-HeaderTest-Exclude: vtkOSPRayMaterialHelpers.h
#define OSPTextureFormat
Definition: RTWrapper.h:25
#define OSPRenderer
Definition: RTWrapper.h:16
#define OSPTexture
Definition: RTWrapper.h:24
#define OSPMaterial
Definition: RTWrapper.h:26
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
links vtkRenderers to OSPRay
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.
OSPTexture VTKToOSPTexture(RTW::Backend *backend, vtkImageData *vColorTextureMap, bool isSRGB=false)
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.
OSPMaterial NewMaterial(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, std::string ospMatName)
Wraps ospNewMaterial.
@ type
Definition: vtkX3D.h:522
@ size
Definition: vtkX3D.h:259
@ data
Definition: vtkX3D.h:321
@ string
Definition: vtkX3D.h:496