VTK  9.3.20240424
vtkWindowNode.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
13#ifndef vtkWindowNode_h
14#define vtkWindowNode_h
15
16#include "vtkRenderingSceneGraphModule.h" // For export macro
17#include "vtkViewNode.h"
18
19VTK_ABI_NAMESPACE_BEGIN
21class vtkFloatArray;
22
23class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode : public vtkViewNode
24{
25public:
26 static vtkWindowNode* New();
27 vtkTypeMacro(vtkWindowNode, vtkViewNode);
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
33 void Build(bool prepass) override;
34
38 void Synchronize(bool prepass) override;
39
43 virtual int* GetSize() { return this->Size; }
44
48 virtual vtkUnsignedCharArray* GetColorBuffer() { return this->ColorBuffer; }
49
53 virtual vtkFloatArray* GetZBuffer() { return this->ZBuffer; }
54
55protected:
57 ~vtkWindowNode() override;
58
59 // TODO: use a map with string keys being renderable's member name
60 // state
61 int Size[2];
62
63 // stores the results of a render
66
67private:
68 vtkWindowNode(const vtkWindowNode&) = delete;
69 void operator=(const vtkWindowNode&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of unsigned char
a node within a VTK scene graph
Definition vtkViewNode.h:31
vtkViewNode specialized for vtkRenderWindows
vtkUnsignedCharArray * ColorBuffer
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
static vtkWindowNode * New()
~vtkWindowNode() override
vtkFloatArray * ZBuffer
void Build(bool prepass) override
Build containers for our child nodes.
void Synchronize(bool prepass) override
Get state of my renderable.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int * GetSize()
Return the size of the last rendered image.
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.