Go to the documentation of this file.
41 #include "vtkRenderingCoreModule.h"
101 void RemoveAllLights();
119 void CreateLight(
void);
135 vtkGetMacro(TwoSidedLighting,
int);
155 vtkGetMacro(LightFollowCamera,
int);
168 vtkGetMacro(AutomaticLightCreation,
int);
178 virtual int UpdateLightsGeometryToFollowCamera(
void);
217 vtkGetMacro(Erase,
int);
228 vtkGetMacro(Draw,
int);
236 int CaptureGL2PSSpecialProp(
vtkProp *);
264 vtkSetVector3Macro(Ambient,
double);
265 vtkGetVectorMacro(Ambient,
double,3);
274 virtual double GetAllocatedRenderTime();
283 virtual double GetTimeFactor();
291 virtual void Render();
296 virtual void DeviceRender() =0;
304 virtual void DeviceRenderOpaqueGeometry();
313 virtual void DeviceRenderTranslucentPolygonalGeometry();
329 int VisibleActorCount();
334 int VisibleVolumeCount();
340 void ComputeVisiblePropBounds(
double bounds[6] );
345 double *ComputeVisiblePropBounds();
351 void ResetCameraClippingRange();
360 void ResetCameraClippingRange(
double bounds[6] );
361 void ResetCameraClippingRange(
double xmin,
double xmax,
362 double ymin,
double ymax,
363 double zmin,
double zmax);
372 vtkSetClampMacro(NearClippingPlaneTolerance,
double,0,0.99);
373 vtkGetMacro(NearClippingPlaneTolerance,
double);
382 vtkSetClampMacro(ClippingRangeExpansion,
double,0,0.99);
383 vtkGetMacro(ClippingRangeExpansion,
double);
392 virtual void ResetCamera();
403 virtual void ResetCamera(
double bounds[6]);
408 virtual void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
409 double zmin,
double zmax);
430 vtkGetMacro(BackingStore,
int);
441 vtkGetMacro(Interactive,
int);
457 virtual void SetLayer(
int layer);
458 vtkGetMacro(Layer,
int);
472 vtkGetMacro(PreserveColorBuffer,
int);
483 vtkGetMacro(PreserveDepthBuffer,
int);
503 virtual void ViewToWorld(
double &wx,
double &wy,
double &wz);
509 virtual void WorldToView(
double &wx,
double &wy,
double &wz);
515 double GetZ (
int x,
int y);
526 vtkGetMacro( LastRenderTimeInSeconds,
double );
536 vtkGetMacro( NumberOfPropsRendered,
int );
549 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
552 double selectionX2,
double selectionY2);
568 double GetTiledAspectRatio();
576 {
return (this->ActiveCamera != NULL); }
591 vtkGetMacro(UseDepthPeeling,
int);
605 vtkSetClampMacro(OcclusionRatio,
double,0.0,0.5);
606 vtkGetMacro(OcclusionRatio,
double);
616 vtkGetMacro(MaximumNumberOfPeels,
int);
625 vtkGetMacro(LastRenderingUsedDepthPeeling,
int);
653 virtual void SetBackgroundTexture(
vtkTexture*);
654 vtkGetObjectMacro(BackgroundTexture,
vtkTexture);
663 vtkGetMacro(TexturedBackground,
bool);
668 virtual void ReleaseGraphicsResources(
vtkWindow *);
675 vtkGetMacro(UseFXAA,
bool)
693 vtkGetMacro(UseShadows,
int);
703 vtkGetMacro(UseHiddenLineRemoval,
int)
726 virtual void PickGeometry();
731 virtual void ExpandBounds(
double bounds[6],
vtkMatrix4x4 *matrix);
750 int BackingStoreSize[2];
785 double ComputedVisiblePropBounds[6];
827 virtual int UpdateGeometry();
836 virtual int UpdateTranslucentPolygonalGeometry();
843 virtual int UpdateOpaquePolygonalGeometry();
849 virtual int UpdateCamera(
void);
856 virtual int UpdateLightGeometry(
void);
869 vtkCamera *GetActiveCameraAndResetIfCreated();
934 { this->Selector = selector; this->
Modified(); }
954 void operator=(
const vtkRenderer&) VTK_DELETE_FUNCTION;
a virtual light for 3D rendering
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
represents a volume (data & properties) in a rendered scene
int UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
virtual void Clear()
Clear the image to the background color.
int IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
record modification and/or execution time
double AllocatedRenderTime
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
int UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
virtual void Modified()
Update the modification time for this object.
Configuration for FXAA implementations.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
virtual void SetRenderWindow(vtkRenderWindow *renwin)
Updates the extensions string.
virtual vtkAssemblyPath * PickProp(double selectionX, double selectionY)=0
Return the Prop that has the highest z value at the given x, y position in the viewport.
a list of nodes that form an assembly path
unsigned char * BackingImage
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
vtkRenderWindow * RenderWindow
window superclass for vtkRenderWindow
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
vtkTypeUInt64 vtkMTimeType
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
Render the props of a vtkRenderer.
handles properties associated with a texture map
double LastRenderTimeInSeconds
vtkVolumeCollection * Volumes
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkCullerCollection * Cullers
manager for OpenGL-based selection.
vtkLightCollection * GetLights()
Return the collection of lights.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRendererDelegate * Delegate
represents an object (geometry & properties) in a rendered scene
a superclass for prop cullers
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
int Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
a virtual camera for 3D rendering
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
abstract specification for Viewports
vtkActorCollection * Actors
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void ViewToWorld()
Convert view point coordinates to world coordinates.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
int AutomaticLightCreation
int LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
virtual vtkWindow * GetVTKWindow()=0
Return the vtkWindow that owns this vtkViewport.
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
a actor that draws 2D data
vtkHardwareSelector * Selector
vtkLightCollection * Lights
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
int UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
vtkTexture * BackgroundTexture
abstract specification for renderers
int Draw
When this flag is off, render commands are ignored.
vtkAssemblyPath * PickProp(double selectionX, double selectionY)
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
vtkAssemblyPath ** PathArray
create a window for renderers to draw into
vtkRenderWindow * GetRenderWindow()
virtual void WorldToView()
Convert world point coordinates to view coordinates.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
int NumberOfPropsRendered
vtkInformation * Information
Perform part of the rendering of a vtkRenderer.