VTK
vtkOptiXPolyDataMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOptiXPolyDataMapperNode.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 =========================================================================*/
23 #ifndef vtkOptiXPolyDataMapperNode_h
24 #define vtkOptiXPolyDataMapperNode_h
25 
26 #include "vtkRenderingOptiXModule.h" // For export macro
27 #include "vtkPolyDataMapperNode.h"
28 
29 class vtkOptiXActorNode;
31 class vtkPolyData;
32 
33 class VTKRENDERINGOPTIX_EXPORT vtkOptiXPolyDataMapperNode :
35 {
36 public:
37  class Geom;
38 
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
46  virtual void Render(bool prepass);
47 
48 protected:
49 
52 
53  void RenderPoly(
55  vtkOptiXActorNode* aNode,
56  vtkPolyData* poly,
57  double* ambientColor,
58  double* diffuseColor
59  );
60 
61  void CreateNewMeshes();
62  void AddGeomToGroup(vtkOptiXRendererNode* orn);
63 
64  Geom* MyGeom;
65 
66 private:
67 
69  void operator=(const vtkOptiXPolyDataMapperNode&) = delete;
70 };
71 #endif
vtkViewNode specialized for vtkPolyDataMappers
links vtkActor and vtkMapper to OptiX
links vtkActor and vtkMapper to OptiX
links vtkRenderers to OptiX
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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