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 
39 class VTKRENDERINGOPENGL2_EXPORT vtkRenderState
40 {
41  public:
46 
50 
52  bool IsValid() const;
53 
58 
63 
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 
96 
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
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
Definition: vtkFrameBufferObject.h:47
vtkRenderState::GetRenderer
vtkRenderer * GetRenderer() const
vtkRenderState::GetPropArray
vtkProp ** GetPropArray() const
vtkRenderState::GetWindowSize
void GetWindowSize(int size[2]) const
vtkRenderState::vtkRenderState
vtkRenderState(vtkRenderer *renderer)
vtkRenderState::SetFrameBuffer
void SetFrameBuffer(vtkFrameBufferObject *fbo)
vtkRenderState::SetRequiredKeys
void SetRequiredKeys(vtkInformation *keys)
vtkRenderState::SetPropArrayAndCount
void SetPropArrayAndCount(vtkProp **propArray, int propArrayCount)
vtkRenderState::~vtkRenderState
~vtkRenderState()
vtkObject.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderState::GetRequiredKeys
vtkInformation * GetRequiredKeys() const
vtkRenderState::GetFrameBuffer
vtkFrameBufferObject * GetFrameBuffer() const
vtkRenderState::IsValid
bool IsValid() const
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkRenderState::GetPropArrayCount
int GetPropArrayCount() const
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843