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