25 #ifndef vtkOSPRayRendererNode_h 26 #define vtkOSPRayRendererNode_h 28 #include "vtkRenderingOSPRayModule.h" 32 #include "ospray/ospray.h" 40 class vtkOSPRayRendererNodeInternals;
55 virtual void Build(
bool prepass)
override;
60 virtual void Render(
bool prepass)
override;
65 virtual void Invalidate(
bool prepass)
override;
70 virtual void WriteLayer(
unsigned char *buffer,
float *zbuffer,
71 int buffx,
int buffy,
int layer);
86 static void SetSamplesPerPixel(
int,
vtkRenderer *renderer);
87 static int GetSamplesPerPixel(
vtkRenderer *renderer);
97 static void SetMaxFrames(
int,
vtkRenderer *renderer);
121 static void SetAmbientSamples(
int,
vtkRenderer *renderer);
122 static int GetAmbientSamples(
vtkRenderer *renderer);
134 static void SetCompositeOnGL(
int,
vtkRenderer *renderer);
135 static int GetCompositeOnGL(
vtkRenderer *renderer);
146 static void SetNorthPole(
double *,
vtkRenderer *renderer);
147 static double * GetNorthPole(
vtkRenderer *renderer);
158 static void SetEastPole(
double *,
vtkRenderer *renderer);
159 static double * GetEastPole(
vtkRenderer *renderer);
183 static void SetViewTime(
double ,
vtkRenderer *renderer);
195 static void SetTimeCacheSize(
int ,
vtkRenderer *renderer);
196 static int GetTimeCacheSize(
vtkRenderer *renderer);
205 this->Lights.push_back(light); }
211 return this->Buffer; }
217 return this->ZBuffer; }
221 virtual void Traverse(
int operation)
override;
represent and manipulate 4x4 transformation matrices
vtkTypeUInt32 vtkMTimeType
vtkOSPRayRendererNodeInternals * Internal
abstract specification for renderers
OSPFrameBuffer OFrameBuffer
vtkMatrix4x4 * AccumulateMatrix
virtual float * GetZBuffer()
Get the last rendered ZBuffer.
a collection of materials for vtk apps to draw from
void AddLight(OSPLight light)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
vtkMTimeType AccumulateTime
virtual void Build(bool prepass) override
Build containers for our child nodes.
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 Traverse(int operation)
links vtkRenderers to OSPRay
virtual unsigned char * GetBuffer()
Get the last rendered ColorBuffer.