 |
VTK
9.0.1
|
Go to the documentation of this file.
35 #include "vtkRenderingCoreModule.h"
259 vtkSetVector3Macro(Ambient,
double);
260 vtkGetVectorMacro(Ambient,
double, 3);
268 vtkSetMacro(AllocatedRenderTime,
double);
348 virtual
void ResetCameraClippingRange();
357 virtual
void ResetCameraClippingRange(
double bounds[6]);
358 virtual
void ResetCameraClippingRange(
359 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
368 vtkSetClampMacro(NearClippingPlaneTolerance,
double, 0, 0.99);
369 vtkGetMacro(NearClippingPlaneTolerance,
double);
378 vtkSetClampMacro(ClippingRangeExpansion,
double, 0, 0.99);
379 vtkGetMacro(ClippingRangeExpansion,
double);
388 virtual
void ResetCamera();
399 virtual
void ResetCamera(
double bounds[6]);
404 virtual
void ResetCamera(
405 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
454 vtkGetMacro(Layer,
int);
513 void ViewToPose(
double& wx,
double& wy,
double& wz)
override;
514 void PoseToView(
double& wx,
double& wy,
double& wz)
override;
532 vtkGetMacro(LastRenderTimeInSeconds,
double);
542 vtkGetMacro(NumberOfPropsRendered,
int);
555 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
558 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2)
override;
604 vtkSetMacro(UseDepthPeelingForVolumes,
bool);
605 vtkGetMacro(UseDepthPeelingForVolumes,
bool);
606 vtkBooleanMacro(UseDepthPeelingForVolumes,
bool);
618 vtkSetClampMacro(OcclusionRatio,
double, 0.0, 0.5);
619 vtkGetMacro(OcclusionRatio,
double);
628 vtkSetMacro(MaximumNumberOfPeels,
int);
629 vtkGetMacro(MaximumNumberOfPeels,
int);
687 vtkSetMacro(TexturedBackground,
bool);
688 vtkGetMacro(TexturedBackground,
bool);
689 vtkBooleanMacro(TexturedBackground,
bool);
699 vtkSetMacro(UseFXAA,
bool);
700 vtkGetMacro(UseFXAA,
bool);
701 vtkBooleanMacro(UseFXAA,
bool);
752 vtkSetMacro(UseImageBasedLighting,
bool);
753 vtkGetMacro(UseImageBasedLighting,
bool);
754 vtkBooleanMacro(UseImageBasedLighting,
bool);
777 vtkGetVector3Macro(EnvironmentUp,
double);
778 vtkSetVector3Macro(EnvironmentUp,
double);
785 vtkGetVector3Macro(EnvironmentRight,
double);
786 vtkSetVector3Macro(EnvironmentRight,
double);
815 int BackingStoreSize[2];
846 double ComputedVisiblePropBounds[6];
1002 this->Selector = selector;
1026 double EnvironmentUp[3];
1027 double EnvironmentRight[3];
virtual int UpdateOpaquePolygonalGeometry()
Ask all props to update and draw any opaque polygonal geometry.
virtual int UpdateCamera(void)
Ask the active camera to do whatever it needs to do prior to rendering.
an ordered list of volumes
virtual void SetBackgroundTexture(vtkTexture *)
vtkAssemblyPath * PickProp(double selectionX, double selectionY) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
virtual void Render()
CALLED BY vtkRenderWindow ONLY.
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 DeviceRenderOpaqueGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render opaque polygonal geometry.
a virtual light for 3D rendering
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
vtkTypeBool PreserveDepthBuffer
virtual vtkTypeBool UpdateLightGeometry(void)
Update the geometry of the lights in the scene that are not in world space (for instance,...
represents a volume (data & properties) in a rendered scene
virtual void SetInformation(vtkInformation *)
vtkTypeBool IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
virtual void Clear()
Clear the image to the background color.
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
void WorldToView(double &wx, double &wy, double &wz) override
Convert world point coordinates to view coordinates.
virtual void SetLeftBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the monocular or stereo left eye background.
void RemoveVolume(vtkProp *p)
void AddVolume(vtkProp *p)
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
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
vtkMTimeType GetMTime() override
Return the MTime of the renderer also considering its ivars.
an ordered list of lights
double AllocatedRenderTime
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
virtual void Modified()
Update the modification time for this object.
vtkTypeBool LightFollowCamera
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...
void ViewToWorld(double &wx, double &wy, double &wz) override
vtkTexture * EnvironmentTexture
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int VisibleVolumeCount()
Returns the number of visible volumes.
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
vtkActorCollection * GetActors()
Return any actors in this renderer.
vtkTypeBool Draw
When this flag is off, render commands are ignored.
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
int Transparent()
Returns a boolean indicating if this renderer is transparent.
unsigned char * BackingImage
abstract interface to OpenGL FBOs
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
vtkRenderWindow * RenderWindow
window superclass for vtkRenderWindow
vtkTypeBool AutomaticLightCreation
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
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.
vtkTypeBool PreserveColorBuffer
virtual void SetEnvironmentTexture(vtkTexture *texture, bool isSRGB=false)
#define VTK_SIZEHINT(...)
double LastRenderTimeInSeconds
void PoseToWorld(double &wx, double &wy, double &wz) override
vtkVolumeCollection * Volumes
vtkCullerCollection * Cullers
virtual void SetFXAAOptions(vtkFXAAOptions *)
vtkLightCollection * GetLights()
Return the collection of lights.
vtkRendererDelegate * Delegate
represents an object (geometry & properties) in a rendered scene
virtual vtkTypeBool UpdateLightsGeometryToFollowCamera(void)
Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights tha...
a superclass for prop cullers
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void CreateLight(void)
Create and add a light to renderer.
vtkTypeBool TwoSidedLighting
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) override
Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
virtual int UpdateGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Ask all props to update and draw any opaque and translucent geometry.
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
an ordered list of Cullers
virtual int UpdateTranslucentPolygonalGeometry()
Ask all props to update and draw any translucent polygonal geometry.
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
virtual void SetRightBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the right eye background.
abstract specification for Viewports
void SetPass(vtkRenderPass *p)
void WorldToView() override
Convert world point coordinates to view coordinates.
vtkActorCollection * Actors
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
abstract superclass for all actors, volumes and annotations
vtkWindow * GetVTKWindow() override
Return the vtkWindow that owns this vtkViewport.
void RemoveLight(vtkLight *)
Remove a light from the list of lights.
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
a actor that draws 2D data
bool UseImageBasedLighting
vtkHardwareSelector * Selector
vtkLightCollection * Lights
void PoseToView(double &wx, double &wy, double &wz) override
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
void RemoveCuller(vtkCuller *)
Remove an actor from the list of cullers.
vtkTexture * BackgroundTexture
abstract specification for renderers
void RemoveAllLights()
Remove all lights from the list of lights.
void AddLight(vtkLight *)
Add a light to the list of lights.
void ViewToWorld() override
Convert view point coordinates to world coordinates.
vtkTexture * GetLeftBackgroundTexture()
an ordered list of actors
vtkTexture * RightBackgroundTexture
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 DeviceRenderTranslucentPolygonalGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render translucent polygonal geometry.
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
virtual void ExpandBounds(double bounds[6], vtkMatrix4x4 *matrix)
create a window for renderers to draw into
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
void RemoveActor(vtkProp *p)
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
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.
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
virtual void DeviceRender()
Create an image.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
void ViewToPose(double &wx, double &wy, double &wz) override
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
int NumberOfPropsRendered
vtkInformation * Information
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
vtkTypeUInt32 vtkMTimeType
Perform part of the rendering of a vtkRenderer.