VTK
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 "vtkRenderingOSPRayModule.h" // For export macro
26 #include "vtkPolyDataMapperNode.h"
27 
28 class vtkOSPRayActorNode;
29 class vtkPolyData;
30 
31 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayPolyDataMapperNode :
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  virtual void Render(bool prepass) override;
43 
47  virtual void Invalidate(bool prepass) override;
48 
49 protected:
52 
53  void ORenderPoly(void *renderer, void *model,
54  vtkOSPRayActorNode *aNode, vtkPolyData * poly,
55  double *ambientColor,
56  double *diffuseColor,
57  double opacity,
58  std::string material);
59 
60  void *OSPMeshes;
61  void CreateNewMeshes();
62  void AddMeshesToModel(void *arg);
63 
64 private:
66  void operator=(const vtkOSPRayPolyDataMapperNode&) = delete;
67 };
68 #endif
vtkViewNode specialized for vtkPolyDataMappers
links vtkActor and vtkMapper to OSPRay
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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.
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkPolyDataMapperNode * New()
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:67
virtual void Invalidate(bool)
Clear any cached data.
Definition: vtkViewNode.h:72