25 #ifndef vtkOSPRayRendererNode_h
26 #define vtkOSPRayRendererNode_h
28 #include "vtkRenderingOSPRayModule.h"
61 virtual void Build(
bool prepass);
66 virtual void Render(
bool prepass);
76 virtual void WriteLayer(
unsigned char *buffer,
float *zbuffer,
77 int buffx,
int buffy,
int layer);
92 static void SetSamplesPerPixel(
int,
vtkRenderer *renderer);
93 static int GetSamplesPerPixel(
vtkRenderer *renderer);
104 static void SetMaxFrames(
int,
vtkRenderer *renderer);
128 static void SetAmbientSamples(
int,
vtkRenderer *renderer);
129 static int GetAmbientSamples(
vtkRenderer *renderer);
141 static void SetCompositeOnGL(
int,
vtkRenderer *renderer);
142 static int GetCompositeOnGL(
vtkRenderer *renderer);
151 this->Lights.push_back(light); }
157 return this->Buffer; }
163 return this->ZBuffer; }
167 virtual void Traverse(
int operation);
osp::Renderer * OSPRenderer
abstract specification for renderers
OSPFrameBuffer OFrameBuffer
osp::FrameBuffer * OSPFrameBuffer
virtual float * GetZBuffer()
Get the last rendered ZBuffer.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void AddLight(OSPLight light)
a simple class to control print indentation
osp::Texture2D * OSPTexture2D
std::vector< OSPLight > Lights
virtual void Render(bool)
Makes calls to make self visible.
vtkViewNode specialized for vtkRenderers
OSPRenderer GetORenderer()
virtual void Invalidate(bool)
Clear any cached data.
OSPModel GetOModel()
Methods for other nodes to access.
static vtkRendererNode * New()
virtual void Build(bool prepass)
Build containers for our child nodes.
virtual void Traverse(int operation)
links vtkRenderers to OSPRay
virtual unsigned char * GetBuffer()
Get the last rendered ColorBuffer.