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);
41 
45  virtual void Render(bool prepass);
46 
50  virtual void Invalidate(bool prepass);
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  };
65 
67  void RenderBlock(vtkOSPRayRendererNode *orn,
69  vtkActor *actor,
70  vtkDataObject *dobj,
71  unsigned int &flat_index);
72 
73 
74 private:
76  void operator=(const vtkOSPRayCompositePolyDataMapper2Node&) VTK_DELETE_FUNCTION;
77 };
78 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
virtual void Invalidate(bool prepass)
Invalidates cached rendering data.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
mapper for composite dataset consisting of polygonal data.
links vtkActor and vtkMapper to OSPRay
static vtkOSPRayPolyDataMapperNode * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
links vtkRenderers to OSPRay
virtual void Render(bool prepass)
Make ospray calls to render me.
general representation of visualization data
Definition: vtkDataObject.h:64