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 =========================================================================*/
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 :
35  public vtkViewNode
36 {
37 public:
38  static vtkWindowNode* New();
39  vtkTypeMacro(vtkWindowNode, vtkViewNode);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  virtual void Build(bool prepass) override;
46 
50  virtual void Synchronize(bool prepass) override;
51 
55  virtual int *GetSize() {
56  return this->Size; }
57 
62  { return this->ColorBuffer; }
63 
68  { return this->ZBuffer; }
69 
70 protected:
73 
74  //TODO: use a map with string keys being renderable's member name
75  //state
76  int Size[2];
77 
78  // stores the results of a render
81 
82 private:
83  vtkWindowNode(const vtkWindowNode&) = delete;
84  void operator=(const vtkWindowNode&) = delete;
85 };
86 
87 #endif
vtkWindowNode::ColorBuffer
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:79
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:42
vtkViewNode.h
vtkWindowNode::~vtkWindowNode
~vtkWindowNode()
vtkWindowNode::Build
virtual void Build(bool prepass) override
Build containers for our child nodes.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkWindowNode::GetColorBuffer
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:61
vtkViewNode
a node within a VTK scene graph
Definition: vtkViewNode.h:42
vtkWindowNode::ZBuffer
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:80
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::GetSize
virtual int * GetSize()
Return the size of the last rendered image.
Definition: vtkWindowNode.h:55
vtkWindowNode::vtkWindowNode
vtkWindowNode()
vtkWindowNode::Synchronize
virtual void Synchronize(bool prepass) override
Get state of my renderable.
vtkWindowNode::GetZBuffer
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbuffer buffer.
Definition: vtkWindowNode.h:67
vtkWindowNode
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:36