VTK  9.1.0
vtkWindowNode.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkWindowNode.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
22#ifndef vtkWindowNode_h
23#define vtkWindowNode_h
24
25#include "vtkRenderingSceneGraphModule.h" // For export macro
26#include "vtkViewNode.h"
27
29class vtkFloatArray;
30
31class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode : public vtkViewNode
32{
33public:
34 static vtkWindowNode* New();
35 vtkTypeMacro(vtkWindowNode, vtkViewNode);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
41 void Build(bool prepass) override;
42
46 void Synchronize(bool prepass) override;
47
51 virtual int* GetSize() { return this->Size; }
52
56 virtual vtkUnsignedCharArray* GetColorBuffer() { return this->ColorBuffer; }
57
61 virtual vtkFloatArray* GetZBuffer() { return this->ZBuffer; }
62
63protected:
65 ~vtkWindowNode() override;
66
67 // TODO: use a map with string keys being renderable's member name
68 // state
69 int Size[2];
70
71 // stores the results of a render
74
75private:
76 vtkWindowNode(const vtkWindowNode&) = delete;
77 void operator=(const vtkWindowNode&) = delete;
78};
79
80#endif
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:113
dynamic, self-adjusting array of unsigned char
a node within a VTK scene graph
Definition: vtkViewNode.h:39
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:32
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:72
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
Definition: vtkWindowNode.h:61
static vtkWindowNode * New()
~vtkWindowNode() override
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:73
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.
Definition: vtkWindowNode.h:51
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:56