Go to the documentation of this file.
41 #include "vtkRenderingCoreModule.h"
135 vtkGetMacro(TwoSidedLighting,
int);
155 vtkGetMacro(LightFollowCamera,
int);
168 vtkGetMacro(AutomaticLightCreation,
int);
217 vtkGetMacro(Erase,
int);
228 vtkGetMacro(Draw,
int);
264 vtkSetVector3Macro(Ambient,
double);
265 vtkGetVectorMacro(Ambient,
double,3);
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);
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);
458 vtkGetMacro(Layer,
int);
472 vtkGetMacro(PreserveColorBuffer,
int);
483 vtkGetMacro(PreserveDepthBuffer,
int);
526 vtkGetMacro( LastRenderTimeInSeconds,
double );
536 vtkGetMacro( NumberOfPropsRendered,
int );
549 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
552 double selectionX2,
double selectionY2);
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);
663 vtkGetMacro(TexturedBackground,
bool);
675 vtkGetMacro(UseFXAA,
bool)
693 vtkGetMacro(UseShadows,
int);
703 vtkGetMacro(UseHiddenLineRemoval,
int)
726 virtual
void PickGeometry();
744 double AllocatedRenderTime;
746 int TwoSidedLighting;
747 int AutomaticLightCreation;
749 unsigned char *BackingImage;
750 int BackingStoreSize[2];
753 double LastRenderTimeInSeconds;
755 int LightFollowCamera;
762 int NumberOfPropsRendered;
780 int PreserveColorBuffer;
781 int PreserveDepthBuffer;
785 double ComputedVisiblePropBounds[6];
794 double NearClippingPlaneTolerance;
800 double ClippingRangeExpansion;
827 virtual
int UpdateGeometry();
836 virtual
int UpdateTranslucentPolygonalGeometry();
843 virtual
int UpdateOpaquePolygonalGeometry();
849 virtual
int UpdateCamera(
void);
856 virtual
int UpdateLightGeometry(
void);
862 virtual
int UpdateLights(
void) {
return 0;}
934 { this->Selector = selector; this->
Modified(); }
954 void operator=(
const vtkRenderer&) VTK_DELETE_FUNCTION;
virtual void WorldToView(double &wx, double &wy, double &wz)
Convert world point coordinates to view coordinates.
virtual void SetBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the background.
virtual void Render()
CALLED BY vtkRenderWindow ONLY.
void WorldToView()
Convert world point coordinates to view coordinates.
int CaptureGL2PSSpecialProp(vtkProp *)
This function is called to capture an instance of vtkProp that requires special handling during vtkRe...
void SetLightCollection(vtkLightCollection *lights)
Set the collection of lights.
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
a virtual light for 3D rendering
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
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.
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
int IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
void RemoveVolume(vtkProp *p)
void AddVolume(vtkProp *p)
void ComputeVisiblePropBounds(double bounds[6])
Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange(...
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
virtual double GetAllocatedRenderTime()
record modification and/or execution time
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
virtual void ViewToWorld(double &wx, double &wy, double &wz)
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.
virtual void ReleaseGraphicsResources(vtkWindow *)
Configuration for FXAA implementations.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkActorCollection * GetActors()
Return any actors in this renderer.
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.
void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
a list of nodes that form an assembly path
void ViewToWorld()
Convert view point coordinates to world coordinates.
int Transparent()
Returns a boolean indicating if this renderer is transparent.
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
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 ResetCameraClippingRange(double bounds[6])
Reset the camera clipping range based on a bounding box.
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
vtkCamera * GetActiveCamera()
Get the current camera.
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
Render the props of a vtkRenderer.
handles properties associated with a texture map
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
virtual void DeviceRenderOpaqueGeometry()
Render opaque polygonal geometry.
virtual void DeviceRenderTranslucentPolygonalGeometry()
Render translucent polygonal geometry.
vtkCullerCollection * Cullers
manager for OpenGL-based selection.
vtkLightCollection * GetLights()
Return the collection of lights.
vtkRendererDelegate * Delegate
represents an object (geometry & properties) in a rendered scene
vtkMTimeType GetMTime()
Return the MTime of the renderer also considering its ivars.
a superclass for prop cullers
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void CreateLight(void)
Create and add a light to renderer.
vtkCamera * GetActiveCameraAndResetIfCreated()
Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
a virtual camera for 3D rendering
vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2)
Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
double GetZ(int x, int y)
Given a pixel location, return the Z value.
virtual void DeviceRender()=0
Create an image.
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
abstract specification for Viewports
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
void RemoveLight(vtkLight *)
Remove a light from the list of lights.
int LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
a actor that draws 2D data
void SetRenderWindow(vtkRenderWindow *)
Specify the rendering window in which to draw.
vtkHardwareSelector * Selector
vtkLightCollection * Lights
void RemoveCuller(vtkCuller *)
Remove an actor from the list of cullers.
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
void RemoveAllLights()
Remove all lights from the list of lights.
virtual void ResetCamera(double bounds[6])
Automatically set up the camera based on a specified bounding box (xmin,xmax, ymin,...
void AddLight(vtkLight *)
Add a light to the list of lights.
vtkAssemblyPath * PickProp(double selectionX, double selectionY)
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
void SetActiveCamera(vtkCamera *)
Specify the camera to use for this renderer.
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
int VisibleActorCount()
Returns the number of visible actors.
virtual void ResetCamera(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Alternative version of ResetCamera(bounds[6]);.
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
void ResetCameraClippingRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
create a window for renderers to draw into
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
virtual vtkWindow * GetVTKWindow()
Return the vtkWindow that owns this vtkViewport.
void RemoveActor(vtkProp *p)
vtkRenderWindow * GetRenderWindow()
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
double GetTiledAspectRatio()
Compute the aspect ratio of this renderer for the current tile.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
virtual int UpdateLightsGeometryToFollowCamera(void)
Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights tha...
vtkInformation * Information
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
Perform part of the rendering of a vtkRenderer.