VTK
vtkOSPRayCompositePolyDataMapper2Node.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayCompositePolyDataMapper2Node.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 vtkOSPRayCompositePolyDataMapper2Node_h
23 #define vtkOSPRayCompositePolyDataMapper2Node_h
24 
25 #include "vtkRenderingOSPRayModule.h" // For export macro
27 #include "vtkColor.h" // used for ivars
28 #include <stack> // used for ivars
29 
30 class vtkDataObject;
33 
34 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayCompositePolyDataMapper2Node :
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  virtual void Render(bool prepass) override;
46 
50  virtual void Invalidate(bool prepass) override;
51 
52 protected:
55 
57  {
58  public:
59  std::stack<bool> Visibility;
60  std::stack<double> Opacity;
61  std::stack<vtkColor3d> AmbientColor;
62  std::stack<vtkColor3d> DiffuseColor;
63  std::stack<vtkColor3d> SpecularColor;
64  std::stack<std::string> Material;
65  };
66 
68  void RenderBlock(vtkOSPRayRendererNode *orn,
70  vtkActor *actor,
71  vtkDataObject *dobj,
72  unsigned int &flat_index);
73 
74 
75 private:
77  void operator=(const vtkOSPRayCompositePolyDataMapper2Node&) = delete;
78 };
79 #endif
virtual void Render(bool prepass) override
Make ospray calls to render me.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
mapper for composite dataset consisting of polygonal data.
links vtkActor and vtkMapper to OSPRay
static vtkOSPRayPolyDataMapperNode * New()
virtual void Invalidate(bool prepass) override
Invalidates cached rendering data.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
links vtkRenderers to OSPRay
general representation of visualization data
Definition: vtkDataObject.h:64