VTK
vtkRenderState.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderState.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 =========================================================================*/
28 #ifndef vtkRenderState_h
29 #define vtkRenderState_h
30 
31 #include "vtkRenderingOpenGL2Module.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkRenderer;
35 class vtkProp;
37 class vtkInformation;
38 
40 {
41  public:
45  vtkRenderState(vtkRenderer *renderer);
46 
49  ~vtkRenderState();
50 
52  bool IsValid() const;
53 
57  vtkRenderer *GetRenderer() const;
58 
62  vtkFrameBufferObject *GetFrameBuffer() const;
63 
66  void SetFrameBuffer(vtkFrameBufferObject *fbo);
67 
69  void GetWindowSize(int size[2]) const;
70 
72  vtkProp **GetPropArray() const;
73 
76  int GetPropArrayCount() const;
77 
79 
88  void SetPropArrayAndCount(vtkProp **propArray,
89  int propArrayCount);
91 
95  vtkInformation *GetRequiredKeys() const;
96 
99  void SetRequiredKeys(vtkInformation *keys);
100 
101  protected:
104  vtkRenderer *Renderer;
105 
109  vtkFrameBufferObject *FrameBuffer;
110 
112 
117  vtkProp **PropArray;
118  int PropArrayCount;
120 
123  vtkInformation *RequiredKeys;
124 
125 private:
126  vtkRenderState(); // no default constructor.
127  vtkRenderState(const vtkRenderState &); // Not implemented.
128  void operator=(const vtkRenderState &); // Not implemented.
129 };
130 
131 #endif
132 // VTK-HeaderTest-Exclude: vtkRenderState.h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
Store vtkAlgorithm input/output information.
#define VTKRENDERINGOPENGL2_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:62
Context in which a vtkRenderPass will render.
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.