VTK
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 
29 class vtkFloatArray;
30 
31 class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode :
32  public vtkViewNode
33 {
34 public:
35  static vtkWindowNode* New();
36  vtkTypeMacro(vtkWindowNode, vtkViewNode);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  virtual void Build(bool prepass) override;
43 
47  virtual void Synchronize(bool prepass) override;
48 
52  virtual int *GetSize() {
53  return this->Size; }
54 
59  { return this->ColorBuffer; }
60 
65  { return this->ZBuffer; }
66 
67 protected:
68  vtkWindowNode();
69  ~vtkWindowNode();
70 
71  //TODO: use a map with string keys being renderable's member name
72  //state
73  int Size[2];
74 
75  // stores the results of a render
78 
79 private:
80  vtkWindowNode(const vtkWindowNode&) = delete;
81  void operator=(const vtkWindowNode&) = delete;
82 };
83 
84 #endif
virtual void Build(bool)
Builds myself.
Definition: vtkViewNode.h:54
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:76
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
virtual void Synchronize(bool)
Ensures that my state agrees with my Renderable's.
Definition: vtkViewNode.h:59
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:77
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:58
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:31
dynamic, self-adjusting array of unsigned char
virtual int * GetSize()
Return the size of the last rendered image.
Definition: vtkWindowNode.h:52
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:37
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
Definition: vtkWindowNode.h:64