 |
VTK
9.0.1
|
Go to the documentation of this file.
44 #include "vtkRenderingCoreModule.h"
105 void RemoveAllLights();
123 void CreateLight(
void);
174 vtkBooleanMacro(AutomaticLightCreation,
vtkTypeBool);
182 virtual vtkTypeBool UpdateLightsGeometryToFollowCamera(
void);
240 int CaptureGL2PSSpecialProp(
vtkProp*);
268 vtkSetVector3Macro(Ambient,
double);
269 vtkGetVectorMacro(Ambient,
double, 3);
277 vtkSetMacro(AllocatedRenderTime,
double);
278 virtual double GetAllocatedRenderTime();
287 virtual double GetTimeFactor();
295 virtual void Render();
335 int VisibleActorCount();
340 int VisibleVolumeCount();
346 void ComputeVisiblePropBounds(
double bounds[6]);
357 virtual
void ResetCameraClippingRange();
366 virtual
void ResetCameraClippingRange(
double bounds[6]);
367 virtual
void ResetCameraClippingRange(
368 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
377 vtkSetClampMacro(NearClippingPlaneTolerance,
double, 0, 0.99);
378 vtkGetMacro(NearClippingPlaneTolerance,
double);
387 vtkSetClampMacro(ClippingRangeExpansion,
double, 0, 0.99);
388 vtkGetMacro(ClippingRangeExpansion,
double);
397 virtual
void ResetCamera();
408 virtual
void ResetCamera(
double bounds[6]);
413 virtual
void ResetCamera(
414 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
462 virtual void SetLayer(
int layer);
463 vtkGetMacro(Layer,
int);
508 void ViewToWorld(
double& wx,
double& wy,
double& wz)
override;
514 void WorldToView(
double& wx,
double& wy,
double& wz)
override;
520 void WorldToPose(
double& wx,
double& wy,
double& wz)
override;
521 void PoseToWorld(
double& wx,
double& wy,
double& wz)
override;
522 void ViewToPose(
double& wx,
double& wy,
double& wz)
override;
523 void PoseToView(
double& wx,
double& wy,
double& wz)
override;
530 double GetZ(
int x,
int y);
541 vtkGetMacro(LastRenderTimeInSeconds,
double);
551 vtkGetMacro(NumberOfPropsRendered,
int);
564 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
567 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2)
override;
583 double GetTiledAspectRatio();
613 vtkSetMacro(UseDepthPeelingForVolumes,
bool);
614 vtkGetMacro(UseDepthPeelingForVolumes,
bool);
615 vtkBooleanMacro(UseDepthPeelingForVolumes,
bool);
627 vtkSetClampMacro(OcclusionRatio,
double, 0.0, 0.5);
628 vtkGetMacro(OcclusionRatio,
double);
637 vtkSetMacro(MaximumNumberOfPeels,
int);
638 vtkGetMacro(MaximumNumberOfPeels,
int);
647 vtkGetMacro(LastRenderingUsedDepthPeeling,
vtkTypeBool);
676 virtual void SetLeftBackgroundTexture(
vtkTexture*);
678 virtual void SetBackgroundTexture(
vtkTexture*);
679 vtkGetObjectMacro(BackgroundTexture,
vtkTexture);
687 virtual void SetRightBackgroundTexture(
vtkTexture*);
688 vtkGetObjectMacro(RightBackgroundTexture,
vtkTexture);
696 vtkSetMacro(TexturedBackground,
bool);
697 vtkGetMacro(TexturedBackground,
bool);
698 vtkBooleanMacro(TexturedBackground,
bool);
702 virtual void ReleaseGraphicsResources(
vtkWindow*);
708 vtkSetMacro(UseFXAA,
bool);
709 vtkGetMacro(UseFXAA,
bool);
710 vtkBooleanMacro(UseFXAA,
bool);
738 vtkBooleanMacro(UseHiddenLineRemoval,
vtkTypeBool);
761 vtkSetMacro(UseImageBasedLighting,
bool);
762 vtkGetMacro(UseImageBasedLighting,
bool);
763 vtkBooleanMacro(UseImageBasedLighting,
bool);
778 vtkGetObjectMacro(EnvironmentTexture,
vtkTexture);
779 virtual void SetEnvironmentTexture(
vtkTexture* texture,
bool isSRGB =
false);
786 vtkGetVector3Macro(EnvironmentUp,
double);
787 vtkSetVector3Macro(EnvironmentUp,
double);
794 vtkGetVector3Macro(EnvironmentRight,
double);
795 vtkSetVector3Macro(EnvironmentRight,
double);
805 virtual void ExpandBounds(
double bounds[6],
vtkMatrix4x4* matrix);
824 int BackingStoreSize[2];
855 double ComputedVisiblePropBounds[6];
906 virtual int UpdateTranslucentPolygonalGeometry();
913 virtual int UpdateOpaquePolygonalGeometry();
919 virtual int UpdateCamera(
void);
939 vtkCamera* GetActiveCameraAndResetIfCreated();
1011 this->Selector = selector;
1035 double EnvironmentUp[3];
1036 double EnvironmentRight[3];
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
an ordered list of volumes
vtkAssemblyPath * PickProp(double selectionX, double selectionY) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
a virtual light for 3D rendering
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
represents a volume (data & properties) in a rendered scene
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.
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
an ordered list of lights
double AllocatedRenderTime
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
virtual void WorldToPose(double &, double &, double &)
virtual void Modified()
Update the modification time for this object.
vtkTypeBool LightFollowCamera
Configuration for FXAA implementations.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
vtkTexture * EnvironmentTexture
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
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
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.
Render the props of a vtkRenderer.
handles properties associated with a texture map
vtkTypeBool PreserveColorBuffer
#define VTK_SIZEHINT(...)
double LastRenderTimeInSeconds
virtual void ViewToPose(double &, double &, double &)
vtkVolumeCollection * Volumes
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkCullerCollection * Cullers
vtkLightCollection * GetLights()
Return the collection of lights.
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
vtkTypeBool TwoSidedLighting
a virtual camera for 3D rendering
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 void PoseToWorld(double &, double &, double &)
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
abstract specification for Viewports
vtkActorCollection * Actors
virtual void ViewToWorld()
Convert view point coordinates to world coordinates.
abstract superclass for all actors, volumes and annotations
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
bool UseImageBasedLighting
vtkHardwareSelector * Selector
vtkLightCollection * Lights
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
vtkTexture * BackgroundTexture
abstract specification for renderers
an ordered list of actors
vtkTexture * RightBackgroundTexture
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
create a window for renderers to draw into
virtual void PoseToView(double &, double &, double &)
virtual void WorldToView()
Convert world point coordinates to view coordinates.
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.
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
int NumberOfPropsRendered
vtkInformation * Information
vtkTypeUInt32 vtkMTimeType
Perform part of the rendering of a vtkRenderer.