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();
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(); }
abstract superclass for all actors, volumes and annotations
represents a volume (data & properties) in a rendered scene
represents an object (geometry & properties) in a rendered scene
vtkProp ** PropsSelectedFrom
abstract specification for Viewports
vtkRenderWindow * RenderWindow
virtual int UpdateLights(void)
a actor that draws 2D data
record modification and/or execution time
abstract specification for renderers
double AllocatedRenderTime
vtkRendererDelegate * Delegate
DEPRECATED A vtkPolyDataPainter that colors each polygon with a color coded integer.
double LastRenderTimeInSeconds
window superclass for vtkRenderWindow
vtkVolumeCollection * Volumes
vtkCullerCollection * Cullers
virtual vtkAssemblyPath * PickProp(double selectionX, double selectionY)=0
vtkIdentColoredPainter * IdentPainter
void SetSelector(vtkHardwareSelector *selector)
void PrintSelf(ostream &os, vtkIndent indent)
a list of nodes that form an assembly path
unsigned char * BackingImage
virtual unsigned long GetMTime()
a superclass for prop cullers
a simple class to control print indentation
virtual void StereoMidpoint()
a virtual camera for 3D rendering
a virtual light for 3D rendering
vtkLightCollection * GetLights()
int PropsSelectedFromCount
handles properties associated with a texture map
vtkLightCollection * Lights
vtkActorCollection * Actors
vtkHardwareSelector * Selector
double NearClippingPlaneTolerance
create a window for renderers to draw into
A helper that orchestrates color buffer visible cell selection. This is deprecated. Refer to vtkHardwareSelector instead.
Abstract class for drawing poly data.
virtual void ViewToWorld()
int LastRenderingUsedDepthPeeling
void SetIdentPainter(vtkIdentColoredPainter *)
Render the props of a vtkRenderer.
manager for OpenGL-based selection.
vtkTexture * BackgroundTexture
vtkRenderWindow * GetRenderWindow()
int AutomaticLightCreation
vtkCullerCollection * GetCullers()
Perform part of the rendering of a vtkRenderer.
virtual vtkWindow * GetVTKWindow()=0
vtkAssemblyPath ** PathArray
int NumberOfPropsRendered
virtual void WorldToView()
vtkAssemblyPath * PickProp(double selectionX, double selectionY)
int IsActiveCameraCreated()