VTK  9.4.20241220
vtkOSPRayCompositePolyDataMapperNode.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 vtkOSPRayCompositePolyDataMapperNode_h
11#define vtkOSPRayCompositePolyDataMapperNode_h
12
13#include "vtkColor.h" // used for ivars
15#include "vtkRenderingRayTracingModule.h" // For export macro
16#include <stack> // used for ivars
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkDataObject;
22
23class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayCompositePolyDataMapperNode
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
34 void Render(bool prepass) override;
35
39 void Invalidate(bool prepass) override;
40
41protected:
44
46 {
47 public:
48 std::stack<bool> Visibility;
49 std::stack<double> Opacity;
50 std::stack<vtkColor3d> AmbientColor;
51 std::stack<vtkColor3d> DiffuseColor;
52 std::stack<vtkColor3d> SpecularColor;
53 std::stack<std::string> Material;
54 };
55
58 vtkDataObject* dobj, unsigned int& flat_index);
59
60private:
62 void operator=(const vtkOSPRayCompositePolyDataMapperNode&) = delete;
63};
64VTK_ABI_NAMESPACE_END
65#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
a class that renders hierarchical polygonal data
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(bool prepass) override
Make ospray calls to render me.
void Invalidate(bool prepass) override
Invalidates cached rendering data.
void RenderBlock(vtkOSPRayRendererNode *orn, vtkCompositePolyDataMapper *cpdm, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
static vtkOSPRayCompositePolyDataMapperNode * New()
links vtkActor and vtkMapper to OSPRay
links vtkRenderers to OSPRay