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);
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 
70 protected:
71  vtkWindowNode();
72  ~vtkWindowNode();
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&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkWindowNode&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
virtual void Build(bool)
Builds myself.
Definition: vtkViewNode.h:57
vtkUnsignedCharArray * ColorBuffer
Definition: vtkWindowNode.h:79
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
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkFloatArray * ZBuffer
Definition: vtkWindowNode.h:80
virtual vtkUnsignedCharArray * GetColorBuffer()
Get the most recent color buffer RGBA.
Definition: vtkWindowNode.h:61
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:55
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:40
virtual vtkFloatArray * GetZBuffer()
Get the most recent zbufer buffer.
Definition: vtkWindowNode.h:67