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);
38 
42  virtual void Render(bool prepass);
43 
47  virtual void Invalidate(bool prepass);
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 
59  void *OSPMeshes;
60  void CreateNewMeshes();
61  void AddMeshesToModel(void *arg);
62 
63 private:
64  vtkOSPRayPolyDataMapperNode(const vtkOSPRayPolyDataMapperNode&) VTK_DELETE_FUNCTION;
65  void operator=(const vtkOSPRayPolyDataMapperNode&) VTK_DELETE_FUNCTION;
66 };
67 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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
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