40 #ifndef __vtkRenderer_h
41 #define __vtkRenderer_h
64 #if !defined(VTK_LEGACY_REMOVE)
97 void RemoveAllLights();
108 void CreateLight(
void);
120 vtkGetMacro(TwoSidedLighting,
int);
121 vtkSetMacro(TwoSidedLighting,
int);
122 vtkBooleanMacro(TwoSidedLighting,
int);
136 vtkSetMacro(LightFollowCamera,
int);
137 vtkGetMacro(LightFollowCamera,
int);
138 vtkBooleanMacro(LightFollowCamera,
int);
148 vtkGetMacro(AutomaticLightCreation,
int);
149 vtkSetMacro(AutomaticLightCreation,
int);
150 vtkBooleanMacro(AutomaticLightCreation,
int);
156 virtual int UpdateLightsGeometryToFollowCamera(
void);
182 vtkSetMacro(Erase,
int);
183 vtkGetMacro(Erase,
int);
184 vtkBooleanMacro(Erase,
int);
191 vtkSetMacro(Draw,
int);
192 vtkGetMacro(Draw,
int);
193 vtkBooleanMacro(Draw,
int);
207 vtkSetVector3Macro(Ambient,
double);
208 vtkGetVectorMacro(Ambient,
double,3);
214 vtkSetMacro(AllocatedRenderTime,
double);
215 virtual double GetAllocatedRenderTime();
222 virtual double GetTimeFactor();
228 virtual void Render();
232 virtual void DeviceRender() =0;
238 virtual void DeviceRenderTranslucentPolygonalGeometry();
244 int VisibleActorCount();
247 int VisibleVolumeCount();
251 void ComputeVisiblePropBounds(
double bounds[6] );
254 double *ComputeVisiblePropBounds();
258 void ResetCameraClippingRange();
263 void ResetCameraClippingRange(
double bounds[6] );
264 void ResetCameraClippingRange(
double xmin,
double xmax,
265 double ymin,
double ymax,
266 double zmin,
double zmax);
274 vtkSetClampMacro(NearClippingPlaneTolerance,
double,0,0.99);
275 vtkGetMacro(NearClippingPlaneTolerance,
double);
292 void ResetCamera(
double bounds[6]);
296 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
297 double zmin,
double zmax);
313 vtkSetMacro(BackingStore,
int);
314 vtkGetMacro(BackingStore,
int);
315 vtkBooleanMacro(BackingStore,
int);
322 vtkSetMacro(Interactive,
int);
323 vtkGetMacro(Interactive,
int);
324 vtkBooleanMacro(Interactive,
int);
330 vtkSetMacro(Layer,
int);
331 vtkGetMacro(Layer,
int);
337 vtkSetMacro(PreserveDepthBuffer,
int);
338 vtkGetMacro(PreserveDepthBuffer,
int);
339 vtkBooleanMacro(PreserveDepthBuffer,
int);
352 virtual void ViewToWorld(
double &wx,
double &wy,
double &wz);
356 virtual void WorldToView(
double &wx,
double &wy,
double &wz);
360 double GetZ (
int x,
int y);
367 vtkGetMacro( LastRenderTimeInSeconds,
double );
375 vtkGetMacro( NumberOfPropsRendered,
int );
386 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
389 double selectionX2,
double selectionY2);
401 double GetTiledAspectRatio();
407 int IsActiveCameraCreated()
408 {
return (this->ActiveCamera != NULL); }
420 vtkSetMacro(UseDepthPeeling,
int);
421 vtkGetMacro(UseDepthPeeling,
int);
422 vtkBooleanMacro(UseDepthPeeling,
int);
433 vtkSetClampMacro(OcclusionRatio,
double,0.0,0.5);
434 vtkGetMacro(OcclusionRatio,
double);
441 vtkSetMacro(MaximumNumberOfPeels,
int);
442 vtkGetMacro(MaximumNumberOfPeels,
int);
448 vtkGetMacro(LastRenderingUsedDepthPeeling,
int);
477 vtkGetObjectMacro(BackgroundTexture,
vtkTexture);
483 vtkSetMacro(TexturedBackground,
bool);
484 vtkGetMacro(TexturedBackground,
bool);
485 vtkBooleanMacro(TexturedBackground,
bool);
495 virtual void PickGeometry();
514 int BackingStoreSize[2];
548 double ComputedVisiblePropBounds[6];
571 virtual int UpdateGeometry(
void);
577 virtual int UpdateTranslucentPolygonalGeometry();
581 virtual int UpdateCamera(
void);
586 virtual int UpdateLightGeometry(
void);
594 vtkCamera *GetActiveCameraAndResetIfCreated();
619 #if !defined(VTK_LEGACY_REMOVE)
627 enum {NOT_SELECTING = 0, COLOR_BY_PROCESSOR, COLOR_BY_ACTOR,
632 vtkSetMacro(SelectMode,
int);
633 vtkSetMacro(SelectConst,
unsigned int);
640 virtual int UpdateGeometryForSelection(
void);
652 void SwapOutSelectablePainter(
vtkProp *,
676 { this->Selector = selector; this->
Modified(); }