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
32class vtkFloatArray;
33
34class VTKRENDERINGSCENEGRAPH_EXPORT vtkWindowNode :
35 public vtkViewNode
36{
37public:
38 static vtkWindowNode* New();
39 vtkTypeMacro(vtkWindowNode, vtkViewNode);
40 void PrintSelf(ostream& os, vtkIndent indent);
41
45 virtual void Build(bool prepass);
46
50 virtual void Synchronize(bool prepass);
51
55 virtual int *GetSize() {
56 return this->Size; }
57
62 { return this->ColorBuffer; }
63
68 { return this->ZBuffer; }
69
70protected:
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
82private:
83 vtkWindowNode(const vtkWindowNode&) VTK_DELETE_FUNCTION;
84 void operator=(const vtkWindowNode&) VTK_DELETE_FUNCTION;
85};
86
87#endif
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
a simple class to control print indentation
Definition: vtkIndent.h:40
dynamic, self-adjusting array of unsigned char
a node within a VTK scene graph
Definition: vtkViewNode.h:42
vtkViewNode specialized for vtkRenderWindows
Definition: vtkWindowNode.h:36
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:79
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbufer buffer.
Definition: vtkWindowNode.h:67
static vtkWindowNode * New()
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:80
virtual void Build(bool prepass)
Build containers for our child nodes.
virtual int * GetSize()
Return the size of the last rendered image.
Definition: vtkWindowNode.h:55
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Synchronize(bool prepass)
Get state of my renderable.
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:61