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 =========================================================================*/
29 #ifndef vtkRenderState_h
30 #define vtkRenderState_h
31 
32 #include "vtkRenderingCoreModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class vtkRenderer;
36 class vtkProp;
38 class vtkInformation;
39 
40 class VTKRENDERINGCORE_EXPORT vtkRenderState
41 {
42  public:
49  vtkRenderState(vtkRenderer *renderer);
50 
55  ~vtkRenderState();
56 
60  bool IsValid() const;
61 
67  vtkRenderer *GetRenderer() const;
68 
74  vtkFrameBufferObjectBase *GetFrameBuffer() const;
75 
80  void SetFrameBuffer(vtkFrameBufferObjectBase *fbo);
81 
85  void GetWindowSize(int size[2]) const;
86 
90  vtkProp **GetPropArray() const;
91 
97  int GetPropArrayCount() const;
98 
110  void SetPropArrayAndCount(vtkProp **propArray,
111  int propArrayCount);
112 
118  vtkInformation *GetRequiredKeys() const;
119 
124  void SetRequiredKeys(vtkInformation *keys);
125 
126  protected:
132 
139 
141 
151 
157 
158 private:
159  vtkRenderState(); // no default constructor.
160  vtkRenderState(const vtkRenderState &) = delete;
161  void operator=(const vtkRenderState &) = delete;
162 };
163 
164 #endif
165 // VTK-HeaderTest-Exclude: vtkRenderState.h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
Store vtkAlgorithm input/output information.
vtkFrameBufferObjectBase * FrameBuffer
The framebuffer in use.
vtkProp ** PropArray
Subset of props to render.
vtkRenderer * Renderer
The renderer in which the render pass is performed.
abstract specification for renderers
Definition: vtkRenderer.h:63
int PropArrayCount
Subset of props to render.
Context in which a vtkRenderPass will render.
abstract interface to OpenGL FBOs
vtkInformation * RequiredKeys
It tells that the current render pass it supposed to render only props that have all the RequiredKeys...