VTK  9.1.0
vtkOSPRayPolyDataMapperNode.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOSPRayPolyDataMapperNode.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=========================================================================*/
22#ifndef vtkOSPRayPolyDataMapperNode_h
23#define vtkOSPRayPolyDataMapperNode_h
24
25#include "vtkOSPRayCache.h" // For common cache infrastructure
27#include "vtkRenderingRayTracingModule.h" // For export macro
28
30class vtkPolyData;
31
32class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPolyDataMapperNode : public vtkPolyDataMapperNode
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 void Render(bool prepass) override;
43
47 void Invalidate(bool prepass) override;
48
49protected:
52
53 void ORenderPoly(void* renderer, vtkOSPRayActorNode* aNode, vtkPolyData* poly,
54 double* ambientColor, double* diffuseColor, double opacity, std::string material);
55
56 std::vector<OSPGeometricModel> GeometricModels;
57 std::vector<OSPInstance> Instances;
59
64
65private:
67 void operator=(const vtkOSPRayPolyDataMapperNode&) = delete;
68};
69
70#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
links vtkActor and vtkMapper to OSPRay
links vtkActor and vtkMapper to OSPRay
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ORenderPoly(void *renderer, vtkOSPRayActorNode *aNode, vtkPolyData *poly, double *ambientColor, double *diffuseColor, double opacity, std::string material)
static vtkOSPRayPolyDataMapperNode * New()
void Invalidate(bool prepass) override
Invalidates cached rendering data.
std::vector< OSPGeometricModel > GeometricModels
~vtkOSPRayPolyDataMapperNode() override
void Render(bool prepass) override
Make ospray calls to render me.
std::vector< OSPInstance > Instances
void RenderGeometricModels()
add precomputed ospray geometries to renderer model.
vtkViewNode specialized for vtkPolyDataMappers
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195