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