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();
264 void ResetCameraClippingRange(
double bounds[6] );
265 void ResetCameraClippingRange(
double xmin,
double xmax,
266 double ymin,
double ymax,
267 double zmin,
double zmax);
275 vtkSetClampMacro(NearClippingPlaneTolerance,
double,0,0.99);
276 vtkGetMacro(NearClippingPlaneTolerance,
double);
293 void ResetCamera(
double bounds[6]);
297 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
298 double zmin,
double zmax);
314 vtkSetMacro(BackingStore,
int);
315 vtkGetMacro(BackingStore,
int);
316 vtkBooleanMacro(BackingStore,
int);
323 vtkSetMacro(Interactive,
int);
324 vtkGetMacro(Interactive,
int);
325 vtkBooleanMacro(Interactive,
int);
331 vtkSetMacro(Layer,
int);
332 vtkGetMacro(Layer,
int);
338 vtkSetMacro(PreserveDepthBuffer,
int);
339 vtkGetMacro(PreserveDepthBuffer,
int);
340 vtkBooleanMacro(PreserveDepthBuffer,
int);
353 virtual void ViewToWorld(
double &wx,
double &wy,
double &wz);
357 virtual void WorldToView(
double &wx,
double &wy,
double &wz);
361 double GetZ (
int x,
int y);
368 vtkGetMacro( LastRenderTimeInSeconds,
double );
376 vtkGetMacro( NumberOfPropsRendered,
int );
387 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
390 double selectionX2,
double selectionY2);
402 double GetTiledAspectRatio();
408 int IsActiveCameraCreated()
409 {
return (this->ActiveCamera != NULL); }
421 vtkSetMacro(UseDepthPeeling,
int);
422 vtkGetMacro(UseDepthPeeling,
int);
423 vtkBooleanMacro(UseDepthPeeling,
int);
434 vtkSetClampMacro(OcclusionRatio,
double,0.0,0.5);
435 vtkGetMacro(OcclusionRatio,
double);
442 vtkSetMacro(MaximumNumberOfPeels,
int);
443 vtkGetMacro(MaximumNumberOfPeels,
int);
449 vtkGetMacro(LastRenderingUsedDepthPeeling,
int);
478 vtkGetObjectMacro(BackgroundTexture,
vtkTexture);
484 vtkSetMacro(TexturedBackground,
bool);
485 vtkGetMacro(TexturedBackground,
bool);
486 vtkBooleanMacro(TexturedBackground,
bool);
496 virtual void PickGeometry();
501 virtual void ExpandBounds(
double bounds[6],
vtkMatrix4x4 *matrix);
520 int BackingStoreSize[2];
554 double ComputedVisiblePropBounds[6];
577 virtual int UpdateGeometry(
void);
583 virtual int UpdateTranslucentPolygonalGeometry();
587 virtual int UpdateCamera(
void);
592 virtual int UpdateLightGeometry(
void);
600 vtkCamera *GetActiveCameraAndResetIfCreated();
625 #if !defined(VTK_LEGACY_REMOVE)
633 enum {NOT_SELECTING = 0, COLOR_BY_PROCESSOR, COLOR_BY_ACTOR,
638 vtkSetMacro(SelectMode,
int);
639 vtkSetMacro(SelectConst,
unsigned int);
646 virtual int UpdateGeometryForSelection(
void);
658 void SwapOutSelectablePainter(
vtkProp *,
682 { this->Selector = selector; this->
Modified(); }