VTK: Rendering/SceneGraph/vtkWindowNode.h Source File

| VTK 9.3.1

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
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkUnsignedCharArray;
21 class vtkFloatArray;
22
23 class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode : public vtkViewNode
24 {
25 public:
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
55 protected:
56 vtkWindowNode();
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
64 vtkUnsignedCharArray* ColorBuffer;
65 vtkFloatArray* ZBuffer;
66
67 private:
68 vtkWindowNode(const vtkWindowNode&) = delete;
69 void operator=(const vtkWindowNode&) = delete;
70 };
71
72 VTK_ABI_NAMESPACE_END
73 #endif
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:40
vtkViewNode
a node within a VTK scene graph
Definition: vtkViewNode.h:31
vtkWindowNode
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:24
vtkWindowNode::ColorBuffer
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:64
vtkWindowNode::GetColorBuffer
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:48
vtkWindowNode::~vtkWindowNode
~vtkWindowNode() override
vtkWindowNode::ZBuffer
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:65
vtkWindowNode::Build
void Build(bool prepass) override
Build containers for our child nodes.
vtkWindowNode::vtkWindowNode
vtkWindowNode()
vtkWindowNode::Synchronize
void Synchronize(bool prepass) override
Get state of my renderable.
vtkWindowNode::GetSize
virtual int * GetSize()
Return the size of the last rendered image.
Definition: vtkWindowNode.h:43
vtkWindowNode::New
static vtkWindowNode * New()
vtkWindowNode::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWindowNode::GetZBuffer
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
Definition: vtkWindowNode.h:53
vtkViewNode.h