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;
a actor that draws 2D data
represents an object (geometry & properties) in a rendered scene
a list of nodes that form an assembly path
a virtual camera for 3D rendering
a superclass for prop cullers
Configuration for FXAA implementations.
manager for OpenGL-based selection.
a simple class to control print indentation
a virtual light for 3D rendering
represent and manipulate 4x4 transformation matrices
virtual void Modified()
Update the modification time for this object.
abstract superclass for all actors, volumes and annotations
Perform part of the rendering of a vtkRenderer.
create a window for renderers to draw into
Render the props of a vtkRenderer.
abstract specification for renderers
virtual void ResetCamera(double bounds[6])
Automatically set up the camera based on a specified bounding box (xmin,xmax, ymin,...
void RemoveVolume(vtkProp *p)
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
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.
virtual vtkWindow * GetVTKWindow()
Return the vtkWindow that owns this vtkViewport.
void WorldToView()
Convert world point coordinates to view coordinates.
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
void ResetCameraClippingRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
double GetTiledAspectRatio()
Compute the aspect ratio of this renderer for the current tile.
vtkCamera * GetActiveCameraAndResetIfCreated()
Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
void AddLight(vtkLight *)
Add a light to the list of lights.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
int UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
int UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
virtual void ViewToWorld(double &wx, double &wy, double &wz)
vtkActorCollection * GetActors()
Return any actors in this renderer.
int Transparent()
Returns a boolean indicating if this renderer is transparent.
int VisibleActorCount()
Returns the number of visible actors.
vtkRenderWindow * GetRenderWindow()
void RemoveLight(vtkLight *)
Remove a light from the list of lights.
void RemoveActor(vtkProp *p)
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkMTimeType GetMTime()
Return the MTime of the renderer also considering its ivars.
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
void RemoveCuller(vtkCuller *)
Remove an actor from the list of cullers.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
vtkAssemblyPath * PickProp(double selectionX, double selectionY)
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
int LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
int CaptureGL2PSSpecialProp(vtkProp *)
This function is called to capture an instance of vtkProp that requires special handling during vtkRe...
void ResetCameraClippingRange(double bounds[6])
Reset the camera clipping range based on a bounding box.
virtual void DeviceRenderTranslucentPolygonalGeometry()
Render translucent polygonal geometry.
vtkRendererDelegate * Delegate
void SetLightCollection(vtkLightCollection *lights)
Set the collection of lights.
virtual void ResetCamera(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Alternative version of ResetCamera(bounds[6]);.
void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
virtual void ReleaseGraphicsResources(vtkWindow *)
void ViewToWorld()
Convert view point coordinates to world coordinates.
int UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
void RemoveAllLights()
Remove all lights from the list of lights.
vtkTexture * BackgroundTexture
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkCullerCollection * Cullers
vtkCamera * GetActiveCamera()
Get the current camera.
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
vtkHardwareSelector * Selector
virtual void WorldToView(double &wx, double &wy, double &wz)
Convert world point coordinates to view coordinates.
vtkLightCollection * Lights
void CreateLight(void)
Create and add a light to renderer.
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
void SetActiveCamera(vtkCamera *)
Specify the camera to use for this renderer.
virtual void Render()
CALLED BY vtkRenderWindow ONLY.
vtkLightCollection * GetLights()
Return the collection of lights.
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
void SetRenderWindow(vtkRenderWindow *)
Specify the rendering window in which to draw.
virtual void DeviceRenderOpaqueGeometry()
Render opaque polygonal geometry.
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
virtual void SetBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the background.
void AddVolume(vtkProp *p)
virtual double GetAllocatedRenderTime()
virtual void Clear()
Clear the image to the background color.
void ComputeVisiblePropBounds(double bounds[6])
Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange(...
int IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
virtual void DeviceRender()=0
Create an image.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformation * Information
virtual int UpdateLightsGeometryToFollowCamera(void)
Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights tha...
handles properties associated with a texture map
record modification and/or execution time
abstract specification for Viewports
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.
represents a volume (data & properties) in a rendered scene
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType