VTK
|
Context in which a vtkRenderPass will render. More...
#include <vtkRenderState.h>
Public Member Functions | |
vtkRenderState (vtkRenderer *renderer) | |
Constructor. More... | |
~vtkRenderState () | |
Destructor. More... | |
bool | IsValid () const |
Tells if the RenderState is a valid one (Renderer is not null). More... | |
vtkRenderer * | GetRenderer () const |
Return the Renderer. More... | |
vtkFrameBufferObjectBase * | GetFrameBuffer () const |
Return the FrameBuffer. More... | |
void | SetFrameBuffer (vtkFrameBufferObjectBase *fbo) |
Set the FrameBuffer. More... | |
void | GetWindowSize (int size[2]) const |
Get the window size of the state. More... | |
vtkProp ** | GetPropArray () const |
Return the array of filtered props. More... | |
int | GetPropArrayCount () const |
Return the size of the array of filtered props. More... | |
void | SetPropArrayAndCount (vtkProp **propArray, int propArrayCount) |
Set the array of of filtered props and its size. More... | |
vtkInformation * | GetRequiredKeys () const |
Return the required property keys for the props. More... | |
void | SetRequiredKeys (vtkInformation *keys) |
Set the required property keys for the props. More... | |
Protected Attributes | |
vtkRenderer * | Renderer |
The renderer in which the render pass is performed. More... | |
vtkFrameBufferObjectBase * | FrameBuffer |
The framebuffer in use. More... | |
vtkInformation * | RequiredKeys |
It tells that the current render pass it supposed to render only props that have all the RequiredKeys in their property keys. More... | |
vtkProp ** | PropArray |
Subset of props to render. More... | |
int | PropArrayCount |
Subset of props to render. More... | |
Context in which a vtkRenderPass will render.
vtkRenderState is a ligthweight effective class which gather information used by a vtkRenderPass to perform its execution.
Definition at line 40 of file vtkRenderState.h.
vtkRenderState::vtkRenderState | ( | vtkRenderer * | renderer | ) |
Constructor.
All values are initialized to 0 or NULL.
vtkRenderState::~vtkRenderState | ( | ) |
Destructor.
As a vtkRenderState does not own any of its variables, the destructor does nothing.
bool vtkRenderState::IsValid | ( | ) | const |
Tells if the RenderState is a valid one (Renderer is not null).
vtkRenderer* vtkRenderState::GetRenderer | ( | ) | const |
Return the Renderer.
This is the renderer in which the render pass is performed. It gives access to the RenderWindow, to the props.
vtkFrameBufferObjectBase* vtkRenderState::GetFrameBuffer | ( | ) | const |
Return the FrameBuffer.
This is the framebuffer in use. NULL means it is the FrameBuffer provided by the RenderWindow (it can actually be an FBO in case the RenderWindow is in off screen mode).
void vtkRenderState::SetFrameBuffer | ( | vtkFrameBufferObjectBase * | fbo | ) |
void vtkRenderState::GetWindowSize | ( | int | size[2] | ) | const |
Get the window size of the state.
vtkProp** vtkRenderState::GetPropArray | ( | ) | const |
Return the array of filtered props.
int vtkRenderState::GetPropArrayCount | ( | ) | const |
Return the size of the array of filtered props.
Set the array of of filtered props and its size.
It is a subset of props to render. A renderpass might ignore this filtered list and access to all the props of the vtkRenderer object directly. For example, a render pass may filter props that are visible and not culled by the frustum, but a sub render pass building a shadow map may need all the visible props.
vtkInformation* vtkRenderState::GetRequiredKeys | ( | ) | const |
Return the required property keys for the props.
It tells that the current render pass it supposed to render only props that have all the RequiredKeys in their property keys.
void vtkRenderState::SetRequiredKeys | ( | vtkInformation * | keys | ) |
Set the required property keys for the props.
See GetRequiredKeys().
|
protected |
The renderer in which the render pass is performed.
It gives access to the RenderWindow, to the props.
Definition at line 131 of file vtkRenderState.h.
|
protected |
The framebuffer in use.
NULL means the FrameBuffer provided by the RenderWindow (it can actually be an FBO in case the RenderWindow is in off screen mode).
Definition at line 138 of file vtkRenderState.h.
|
protected |
Subset of props to render.
A renderpass might ignore this filtered list and access to all the props of the vtkRenderer object directly. For example, a render pass may filter props that are visible and not culled by the frustum, but a sub render pass building a shadow map may need all the visible props.
Definition at line 148 of file vtkRenderState.h.
|
protected |
Subset of props to render.
A renderpass might ignore this filtered list and access to all the props of the vtkRenderer object directly. For example, a render pass may filter props that are visible and not culled by the frustum, but a sub render pass building a shadow map may need all the visible props.
Definition at line 149 of file vtkRenderState.h.
|
protected |
It tells that the current render pass it supposed to render only props that have all the RequiredKeys in their property keys.
Definition at line 156 of file vtkRenderState.h.