VTK  9.2.6
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 =========================================================================*/
25 #ifndef vtkWindowNode_h
26 #define vtkWindowNode_h
27 
28 #include "vtkRenderingSceneGraphModule.h" // For export macro
29 #include "vtkViewNode.h"
30 
32 class vtkFloatArray;
33 
34 class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode : public vtkViewNode
35 {
36 public:
37  static vtkWindowNode* New();
38  vtkTypeMacro(vtkWindowNode, vtkViewNode);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  void Build(bool prepass) override;
45 
49  void Synchronize(bool prepass) override;
50 
54  virtual int* GetSize() { return this->Size; }
55 
59  virtual vtkUnsignedCharArray* GetColorBuffer() { return this->ColorBuffer; }
60 
64  virtual vtkFloatArray* GetZBuffer() { return this->ZBuffer; }
65 
66 protected:
67  vtkWindowNode();
68  ~vtkWindowNode() override;
69 
70  // TODO: use a map with string keys being renderable's member name
71  // state
72  int Size[2];
73 
74  // stores the results of a render
77 
78 private:
79  vtkWindowNode(const vtkWindowNode&) = delete;
80  void operator=(const vtkWindowNode&) = delete;
81 };
82 
83 #endif
virtual void Build(bool)
Builds myself.
Definition: vtkViewNode.h:57
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:75
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
virtual void Synchronize(bool)
Ensures that my state agrees with my Renderable's.
Definition: vtkViewNode.h:62
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:76
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:34
dynamic, self-adjusting array of unsigned char
virtual int * GetSize()
Return the size of the last rendered image.
Definition: vtkWindowNode.h:54
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
a node within a VTK scene graph
Definition: vtkViewNode.h:41
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
Definition: vtkWindowNode.h:64