VTK  9.3.20240623
vtkOSPRayCompositePolyDataMapper2Node.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10#ifndef vtkOSPRayCompositePolyDataMapper2Node_h
11#define vtkOSPRayCompositePolyDataMapper2Node_h
12
13#include "vtkColor.h" // used for ivars
14#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_3_0
16#include "vtkRenderingRayTracingModule.h" // For export macro
17#include <stack> // used for ivars
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkDataObject;
23
24class VTK_DEPRECATED_IN_9_3_0("Use vtkOSPRayCompositePolyDataMapperNode instead")
25 VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayCompositePolyDataMapper2Node
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
36 void Render(bool prepass) override;
37
41 void Invalidate(bool prepass) override;
42
43protected:
46
48 {
49 public:
50 std::stack<bool> Visibility;
51 std::stack<double> Opacity;
52 std::stack<vtkColor3d> AmbientColor;
53 std::stack<vtkColor3d> DiffuseColor;
54 std::stack<vtkColor3d> SpecularColor;
55 std::stack<std::string> Material;
56 };
57
60 vtkDataObject* dobj, unsigned int& flat_index);
61
62private:
64 void operator=(const vtkOSPRayCompositePolyDataMapper2Node&) = delete;
65};
66VTK_ABI_NAMESPACE_END
67#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
mapper for composite dataset consisting of polygonal data.
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
void Render(bool prepass) override
Make ospray calls to render me.
static vtkOSPRayCompositePolyDataMapper2Node * New()
void PrintSelf(ostream &os, vtkIndent indent) override
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)
void Invalidate(bool prepass) override
Invalidates cached rendering data.
links vtkActor and vtkMapper to OSPRay
links vtkRenderers to OSPRay
#define VTK_DEPRECATED_IN_9_3_0(reason)